Questions tagged [node.js]

Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript engine. Node.js is commonly used for heavy client-server JavaScript applications. NOTE: Please read the Tag-Wiki before asking questions.

Filter by
Sorted by
Tagged with
0 votes
2 answers
154 views

Google Cloud Platform authentication - unable to list projects or set project

I had previously authenticated with Google Cloud Platform and everything was working correctly, however all of a sudden, today I started receiving errors mentioning google-gax in a Node app: 2023-09-...
Mike's user avatar
  • 689
-1 votes
0 answers
14 views

Nodejs in direct admin web control panel

I have the domain isync.in on which I want to run a node server but whenever I login there is nodejs option Image
divyansh undley's user avatar
0 votes
1 answer
44 views

Apache Cannot See PM2 Node Process

I have Apache running on Ubuntu 20 and I keep getting this error in /var/logs/apache2/error.log: [proxy:error] [pid 7064] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:4000 (...
Clifton Labrum's user avatar
0 votes
0 answers
13 views

Whenever I tried to connect mongodb with my nodeproject in docker this error is showing

enter image description here Whenever I tried to connect my nodejs project with mongodb in docker. This started to show .
Mohit Verma's user avatar
0 votes
0 answers
26 views

migrate pm2 services to new server

In order to support the most recent versions of NodeJS, we need to migrate our web servers from Amazon Linux 2 to Amazon Linux 2023. Making this move precludes us from doing the usual spin-up/down ...
philolegein's user avatar
0 votes
0 answers
33 views

Can't run a blockchain application based on Node.js and Hyperledger Fabric 2.1

What I want to do (the short part of the post) I want run a project below successfuly The problem I installed a blockchain project from GitHub,which is built with Node.js and HyperlederFabric V2.1....
try it's user avatar
  • 1
0 votes
1 answer
103 views

How to setup Nginx and Varnish reverse proxy for Node.js?

My website on the Astro framework (Node.js SSR adapter) is deployed on 1 shared-cpu-1x@256MB fly.io instance in the Amsterdam region, which automatically handling gzip, TSL termination. Initial setup ...
Predaytor's user avatar
0 votes
0 answers
39 views

Exposing ports on VPS

I'm running some services inside Docker and been having some issues with it: I have a NodeJS app (TLS stream communication) running on a custom port (let's say 2321). I exposed the port from my ...
Matic's user avatar
  • 1
0 votes
0 answers
181 views

Intermittent errors fetching from raw.githubusercontent.com using mingw curl and nodejs on Windows, but not in PowerShell or Linux VM

This started happening a month or two ago. I have a node script which fetches from: https://raw.githubusercontent.com/glowbuzzer/gbr/master/package.json This has started failing about one in three ...
jugglingcats's user avatar
1 vote
0 answers
168 views

AWS CloudFront 404 error on web root only - node.js with express and pug

The Setup I have a web site built on node.js, express.js, and pug.js running on an AMI Linux instance in AWS. I've given the instance an Elastic IP and if I browse directly to the generated DNS record ...
Todd Wilcox's user avatar
  • 2,851
0 votes
0 answers
31 views

Where do I store web server login credentials?

I am building a web server that will accept requests from mobile devices and route to 2 different SQL Server instances. For extra security, I want the mobile devices to have to log in twice - log in ...
TheMortiestMorty's user avatar
0 votes
0 answers
127 views

NodeJS https server returns http 0 and SSL error:14094412 ERR_SSL_SSLV3_ALERT_BAD_CERTIFICATE

I have a nodejs https server running on my Raspberry Pi. It responses to ajax requests. When open the webpage with a desktop/laptop or an iPhone (Safari), the ajax call returns the proper result with ...
BogisW's user avatar
  • 101
0 votes
1 answer
281 views

IIS URL rewrite troubleshooting

I'm using IIS to reverse proxy HTTP requests to a nodejs app running in the same machine. URL rewrite and ARR modules are installed and the proxy setting checked. The URL matching seems good: if I ...
Bruno Tavares's user avatar
0 votes
0 answers
107 views

Error: Request aborted - can't send 20MB .mp3 files using Node.js + Express?

I'm making a game using a Node.js + Express app on Heroku. When the page loads, the soundtrack (music) is fetched in 5 20MB .mp3 files. But sometimes, the request hangs and then throws error 'Request ...
Lubos Chlebicki's user avatar
0 votes
0 answers
61 views

Seemly NodeJS restart | Docker vs PM2 vs Both?

I have a NodeJS application that wraps a large obfuscated JavaScript file and utilizes it to run computations. The issue is the JavaScript file has a memory leak, and required fairly frequent restart ...
Nick W.'s user avatar
  • 167
0 votes
1 answer
157 views

Lost Local Connection to MySQL DB that resides in AWS RDS

The MySQL DB residing in AWS RDS was made to connect with resources in the same VPC. I always had to make it publicly accessible in order to connect to it through MySQL Workbench 8.0 CE in Windows 11. ...
Learning Equals Success's user avatar
0 votes
0 answers
99 views

Apache Proxypass with SSL extremely slow

We have a server with the spec 8 vCore and 16GB RAM. At its peak, the server uses only 15 to 25% CPU and around 40% of RAM. The issue that we face is once the number of users start increasing, the ...
nXn's user avatar
  • 101
-1 votes
1 answer
353 views

Nginx yielding 499 status due to upstream connection reset

Have read other posts; they do not yield much light. Situation: Kubernetes cluster with ingress points to Several nginx containers that proxy-pass to a Node application on a specific URI via location ...
peteisace's user avatar
4 votes
2 answers
2k views

How can I get node18 on amazonlinux2?

I'm currently trying to install node18 on a amazoncorretto:11 base image. I'm getting the error #6 11.04 Error: Package: 2:nodejs-18.16.0-1nodesource.x86_64 (nodesource) #6 11.04 Requires: ...
kilseic's user avatar
  • 41
0 votes
0 answers
90 views

access.log of Nginx filling up space (Ubuntu 22 Server)

Recently I have deployed my website using node.js server and using Nginx as reverse proxy, also nginx handles SSL, and forwards the HTTPS to HTTP server of node.js running at specific port. I am using ...
Albert Einstein's user avatar
0 votes
1 answer
194 views

How to configure Apache to handle two reverse proxies one one domain/server name?

I've got a node-react app on port 3000, and a node/express API running on port 3001 (localhost:3001/api). I need a reverse proxy setup in Apache that will put the React app on https://example.domain....
MidPiedmont's user avatar
0 votes
0 answers
100 views

CosmosDB with private endpoint causes 'request originated from VNET through service endpoint' error?

I have a Node Js app which interacts with CosmosDB and which is deployed to a private AKS cluster. I was able to connect to Cosmos DB through a service endpoint in the Cluster VNET/subnet for Cosmos ...
floaty39's user avatar
0 votes
0 answers
41 views

Node.js: Bad gateway on HTTPS server (unable to get the server's files?)

So, I have a Node.js server on render.com. It has only 2 files (server.js and index.html). But, when I load myservername.onrender.com/index.html, the request for file index.html fails and throws 502 ...
Lubos Chlebicki's user avatar
0 votes
0 answers
82 views

Mixed content error nginx+docker container

I have an EC2 with Nginx setup & there are a few containers running inside. There's a Node JS gateway which is serving some of the requests in a webpage hosting in this Nginx server. Nginx is not ...
serverstackqns's user avatar
0 votes
0 answers
190 views

Docker container can't find express even though it is installed and the Dockerfile compiles fine

When I try to run a docker container from an image I just built using "docker run" Node.js can't find express even though it is installed and the Dockerfile compiles fine. Here is the output ...
Hassam Dauhoo's user avatar
0 votes
0 answers
196 views

PM2 Cluster Mode - All Clusters restarting on error

I am running a NodeJS application in Cluster mode: pm2 start server.js -i max Assume I have 2 clusters (0 and 1)... Our application is a simple NodeJS backend app running Express. However, there is ...
Collin Stiner's user avatar
0 votes
0 answers
65 views

NGINX waiting 60 seconds before processing request for NodeJS application

I have a NodeJS (ExpressJS) application containerized on Docker that is exposed through an NGINX reverse proxy also containerized on Docker. Sometimes, a request sent to NGINX takes 60 seconds before ...
mwryl's user avatar
  • 101
0 votes
0 answers
594 views

Different port forwarding for https and wss (Websocket) using firewalld

Currently I setup port forwarding for a nodejs server such that all http requests (using tcp protocol) get redirected from port 80 to 3000, and all https requests (using tcp) get redirected from port ...
VIVEK's user avatar
  • 63
1 vote
1 answer
524 views

how to run next.js using NODE and react.js at the same time on apache server

I have to run 2 different apps on the same domain at the same time. I want to forward all requests to localhost:3000, if url contains /presscenter, if not, default should be my react.js application. ...
Y U K I M U R A's user avatar
0 votes
0 answers
27 views

Why cant I get any kind of traffic from my AWS EC2 instance with a public IP?

Complete beginner to networking and im trying to deploy a simple express app on a windows instance of ec2 and I cannot find a single resource that explains the steps I need to take to make it happen ...
Thugsy49's user avatar
0 votes
0 answers
52 views

Linux / NodeJS get exitcode of process runned by "exec"

I need to run g++ compiled program and get exit status. My code in nodejs: import pty from "node-pty"; ... ptyProcess.write("exec /var/www/a.out\r\n'"); What I found: $! is the ...
EvaldasL's user avatar
0 votes
0 answers
79 views

pm2 crash after this command pm2 restart all

I have a nodejs app sometimes I want to restart the app . but when I write "pm2 restart all" pm2 crached and pm2's list is removed. also I've written a cron-start into pm2 beacuse the app ...
farshid.chegini's user avatar
1 vote
1 answer
885 views

nodejs installation error in ubuntu

I am trying to install nodejs on a newly built Ubuntu VM(Ubuntu 22.04.1 LTS), but getting the below error. Preparing to unpack .../nodejs_16.19.1-deb-1nodesource1_amd64.deb ... Unpacking nodejs (16.19....
Aryasindhu Sahu's user avatar
0 votes
0 answers
68 views

CORS handling for an external host serving source that connects to local socketServer

tldr; The idea is for a server to host javascript that connects to the connected-device's socketServer. MyDevice's Browser > http://myserver.local > socket.io().connect('http://myDeviceIp:5000');...
Kevin Biesbrock's user avatar
0 votes
1 answer
1k views

How to configure AWS Application Load Balancer to point to multiple ports on the same server

I cannot get access to the second port that I want to have to. So, here are the listeners I have in my ALB: HTTP:80 - that does not have security policy or SSL cert but it is always redirecting to ...
Vitomir's user avatar
  • 103
0 votes
0 answers
47 views

Does Laravel tend to be much more slower than Node JS?

Does Laravel tend to be much more slower than Node JS? Or is it just me that doesn't know that Laravel have certain limiter or anything when runs in local machine (even though using production ...
Azvya Erstevan's user avatar
-2 votes
1 answer
36 views

Server with scalability for real-time collaboration and editing [closed]

I am here, to ask for absolute input. I have setup a local Apache Server with PHP 7.2 (currently), I am aware newer PHP exists. I know PHP and Python, I also know Node.js (server/back-end). With Node....
Alix Blaine's user avatar
0 votes
1 answer
403 views

Node.js backend with simple frontend on same server

i have /var/www/html/ with index.html i have /var/www/ai_backend with server.js server.js is running on port 5000. so if i curl from this machine http://localhost:5000 i get response. but if i send ...
Gia Nebieridze's user avatar
0 votes
1 answer
329 views

What (low priority thread) is causing 100% CPU usage in my node alpine container?

I have a node alpine docker container (hosted on Azure) which periodically reaches 100% CPU usage. However, running the top or htop command shows no threads having high CPU usage. How do I find out ...
zapdev's user avatar
  • 1
2 votes
1 answer
332 views

Is it better to generate "UUID" and "TIMESTAMP" within the NodeJS application or using the database built-in functions?

I am writing a TypeScript-NodeJS application and want to handle object ids and created_at TIMESTAMP within the NodeJS application, instead of using MySQL or Cassandra built-in UUID or TIMESTAMP ...
best_of_man's user avatar
0 votes
0 answers
57 views

How create automatic deployement and allow my customer dynamic create and access my app on subdomains?

I have created an nodejs app and i want my customer to be able to dynamic create an instance of my app with automatic deployement on subdomains for example ‘customer1.mydomain.com’. I know i can ...
rach's user avatar
  • 1
0 votes
1 answer
332 views

my nginx server was working perfectly fine and now shows a 502 error

I'm deploying my project, I had no problem until i decided to buy a domain for my digital ocean droplet i added the records from my namecheap domain to my droplet i was working on it then suddenly ...
Harkayn's user avatar
  • 101
0 votes
0 answers
57 views

Where to install yarn on a mastodon server [mastodon]

I am on my way to install mastodon. The installation guide says: be root sudo su - [do some other stuff] set up yarn: yarn set version classic This gives the following output: Resolving classic to a ...
archygriswald's user avatar
1 vote
1 answer
149 views

NGINX Hosting multiple servers in same domain

I have a website being served by Nginx and I'm trying to do something that I don't know if it's possible the way I'm trying to do but the case is: I have Application A and B made with React / Node. ...
Henrique Hefler's user avatar
0 votes
1 answer
2k views

Install with apt an old version of Node on Ubuntu 22.04

I'm getting crazy installing Node 16.x on Ubuntu. I use curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - And then sudo apt-get install -y nodejs But the version installed is the 18....
Roberto Pezzali's user avatar
0 votes
0 answers
686 views

Localhost not working with vue.js

Im new using vue.js, so I just installed vue.cli and I tried localhost:8080 and it worked perfectly showing the vue welcome page. Then, 2 minutes later, localhost is not showing the page anymore (...
NdeNoob's user avatar
1 vote
1 answer
1k views

Nginx + Socket.io + Nodejs: How to configure socket.io on custom path

Ubuntu 22.04 Nginx: 1.23.2 Nodejs: 12.22.9 Socket.io: 2.0.3 I had a basic Node.js chat room built in Apache2, but I migrated everything over to Ngnix and I'm having problems trying to get the chat ...
peppy's user avatar
  • 73
1 vote
1 answer
42 views

System architecture for storing sensitive data separately without single point of access

We're building a SaSS platform with support for integrations. Each client has multiple integrations. We'd prefer not to store these integration tokens in a centralized location, where there's a single ...
Max Hudson's user avatar
0 votes
0 answers
204 views

Restarting PM2 when the latency of the API it's serving becomes high

I have an EC2 instance running which is housing a nodeJS/GraphQL based API application. The application is managed via PM2. I want to have a setup/configuration which can continuously ping one ...
beNerd's user avatar
  • 117
1 vote
1 answer
641 views

Node on Nginx - proxy_request_buffering off doesn't work with https? Super slow https image uploads

I have a node server running on nginx as a reverse proxy, which is supposed to handle image uploads. Its ssl cert and domain are configured through cloudflare. Aside from setting the proxy_pass to ...
intern3t-us3r's user avatar

1
2 3 4 5
21