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.
1,038
questions
-3
votes
1
answer
38
views
Making production-ready + securing a server (Ubuntu 22.04, NodeJS, nginx)
I started working for a startup as a full stack developer. The product is a SaaS that has been developed by an external company, and they take care of the hosting as well. My boss wants the app on our ...
0
votes
0
answers
35
views
EC2 micro instance randomly uses 100% of CPU and stays there
I am running a node.js service and a docker postgres image on an EC2 micro instance. Usually it runs fine for weeks / months but randomly the instance goes up to 100% CPU usage and stays there, ...
0
votes
0
answers
38
views
how to grant network access to mongo atlas to a EKS deployment
problem:
I have an app running on a EKS cluster that needs to connect with a mongodb atlas database.
I must grant the app running on the EKS cluster network access by entering its IP address.
I do not ...
0
votes
0
answers
9
views
How to fetch all files totally from MonGo DB using query without any filtering in NestJs
Tried with different codes , but not able to fetch all the files from MongoDB
0
votes
0
answers
31
views
AWS: access private API from public web application
I have:
Private API running on an ECS cluster behind an internal load balancer. This API is used by other services inside the VPC.
A public Next.js web application.
What I need:
Give private API ...
0
votes
0
answers
76
views
How to allow full use of all available swap space, when a process is running inside a Docker container
I have written a test Node app which eats memory (in 100MB chunks). I am trying to get it to continue allocating memory beyond the physical memory limit of 8GB by using the swap space which is ...
0
votes
2
answers
63
views
Quasar (VueJs), nodeJs, Nginx certbox Too many requests
I have following nginx conf for my quasar(VueJs app) and nodejs (as API) app
As you can see my nodejs app is in /api location, the rest of config is for my Quasar (vuejs) app...
The problem I have is ...
0
votes
1
answer
178
views
Is it the OS or Samba that is restricting access to systemd on a shared folder?
I have two Rocky Linux 9 servers that we can call svr1 and svr2.
svr1 has Samba service installed and share the folder /home/rocky/shared_folder with this configuration:
[global]
# workgroup = ...
0
votes
1
answer
63
views
Is it possible to bind a port with HTTPS in nginx
I have a graphql api that works when accessed with http://example.com:4001/graphql but does not work with https://example.com:4001/graphql which is obvious as https takes the port 443 and here I am ...
0
votes
0
answers
14
views
How can I initiate a file transfer between two remote VMs on Google Cloud using nodejs?
I need to automate a process such that when a nodejs function is fired a remote source sends certain files to a remote destination VM. I’ve been looking everywhere but can’t find any easy solution.
0
votes
1
answer
148
views
Local nginx server requires reload every time dev server restarts
I have 2 local dev servers in node. One is a basic nextjs server and the other a very simple nodejs websocket server. I wanted to proxy both to get the both under the same port. I have the following ...
0
votes
0
answers
23
views
Choosing a hosting a reactjs, nodejs application
I have application built with reactjs, nodejs and mysql db, currently I am hosting it on godaddy VPS. The main reason why we had to go for their VPS, because we already had a legacy app on their ...
0
votes
0
answers
84
views
Unable to create SSL for Ubuntu VPS NextJS application
I am trying to get an SSL for my websites hosted on Ubuntu VPS. I am receiving the following error upon running sudo certbot --nginx -v
Certbot failed to authenticate some domains (authenticator: ...
0
votes
0
answers
722
views
ERROR: gcloud.run.deploy Revision is not ready and cannot serve traffic
I am new with GoogleCloud & GoogleCloudRun, I have deployed two applications at my Google active Project -
Next.JS app running at 3000 port
Express.js app running at 8080 port
When I tried to ...
0
votes
1
answer
56
views
Securing a secret key on a linux server to be consumed by a software running on the server
I'm not an expert in server security and I have a question regarding a situation where server is being compromised. I have a nodejs app which is a bot that only have https connection to read from some ...
0
votes
0
answers
43
views
I am running nodejs App in my main domain in the plesk does any one know how to allow the subdomain to host the nodejs app as well?
does any one know how to allow the subdomain to host the nodejs app as well ? currently I have main domain that is hosting nodejs application on the plesk , but I want to create subdomain under that ...
1
vote
1
answer
112
views
Is there a tool like ClamAV to scan PHP and JS files?
We're offering a shared web hosting service, where many websites live on the same server.
Since a lot of people don't update their stuff, they get pirated all the time. Now, the websites are ...
0
votes
0
answers
51
views
Is it possible to disallow external IPs from accessing a page of a React site?
I'm currently learning React to host a personal website (on an Ubuntu server) and am port forwarding it to allow access from the internet.
However, for security reasons, I'd like one or more pages to ...
0
votes
1
answer
683
views
PHP openssl encryption aes-256-cbc and decryption using NODEJS
I have a PHP script used to encrypt data with openssl_encrypt() and the aes-256-cbc algo.
Encryption/Decryption works well using PHP, it's an old script.
I've been trying to decrypt the datas using ...
0
votes
1
answer
397
views
pm2 process kill the server by running pm2 update multiple times
We stumbled upon a very strange problem while running any pm2 command. While running
pm2 list
we got this result inside console
[PM2] Spawning PM2 daemon with pm2_home=/root/.pm2
[PM2] PM2 ...
0
votes
1
answer
83
views
PM2 + apache2 Optimization
I am running a Node.js application with PM2 as a reverse proxy through Apache on my Centos 7 server. The website experiences very slow loading times, and its performance is quite poor. Can anyone ...
2
votes
1
answer
3k
views
Install nodejs 20 on Debian Bullseye in Docker
I have Debian in a Docker container, and was installing NodeJS like this:
RUN curl -sL https://deb.nodesource.com/setup_18.x | bash ;\
apt-get update; \
apt-get install -y nodejs
It worked ...
0
votes
1
answer
756
views
Is it possible to use HTTP/3 with NGINX-Node.js combination already?
NGINX supports HTTP/3 since 1.25.0. Node.js currently does not support HTTP/3 or QUIC out-of-the-box but it seems there are some C++ addons implementations, like FAILS'.
HTTP/3 (more specifically, ...
0
votes
0
answers
383
views
pm2 in systemd not actually starting processes
I'm having an issue where I'm running pm2 as pm2-root under systemd (this is on Amazon Linux2023). The daemon runs fine, and if a process dies, it restarts it fine. However, if the server reboots, pm2-...
0
votes
2
answers
549
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-...
0
votes
1
answer
253
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 (...
0
votes
0
answers
108
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 ...
0
votes
0
answers
71
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....
0
votes
1
answer
473
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 ...
0
votes
0
answers
162
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 ...
0
votes
1
answer
454
views
Intermittent connection reset errors on multiple sites using chrome, 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 ...
1
vote
0
answers
570
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 ...
0
votes
0
answers
37
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 ...
0
votes
0
answers
286
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 ...
0
votes
1
answer
2k
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 ...
0
votes
0
answers
256
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 ...
0
votes
0
answers
85
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 ...
0
votes
1
answer
315
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. ...
0
votes
0
answers
487
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 ...
-1
votes
1
answer
2k
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 ...
5
votes
5
answers
5k
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: ...
0
votes
0
answers
158
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 ...
0
votes
1
answer
1k
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....
0
votes
0
answers
249
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 ...
0
votes
0
answers
102
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 ...
0
votes
0
answers
130
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 ...
0
votes
0
answers
308
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
...
0
votes
0
answers
289
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 ...
0
votes
0
answers
83
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 ...
0
votes
0
answers
2k
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 ...