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,039 questions
Score of 0
0 answers
18 views
Node.js + PostgreSQL job board on Hetzner VPS – realistic scaling journey from 5k to 1M monthly users?
We're building a job board on Node.js + PostgreSQL, hosted on Hetzner VPS in Central Europe. Text-only listings, no media. Core features: job listings, search, filtering, employer/candidate messaging.
...
Score of 0
0 answers
50 views
Control panel like Plesk or cPanel vs manual Nginx and Apache setup on EC2 for high traffic PHP and Node.js performance and security
I am planning to deploy a high traffic application on AWS EC2. The backend includes both PHP and Node.js. For PHP I need Apache compatibility due to .htaccess and existing behavior, while Node.js ...
Score of 0
0 answers
63 views
How can I know which system libraries managed by Ubuntu apt an npm build using node-gyp depends on?
I have a nodejs-based project running on my Ubuntu server, using the usual node_modules folder of dependencies. Some of them where (eg. "ws" in this case) where automatically compiled using ...
Score of 0
0 answers
61 views
What kind of garbage is been accumulated when execute the Docker repeatedly? (Node.js, "ENOSPC: no space left on device" error) [duplicate]
My VPS has Ubuntu 22.04.4 LTS.
I got the message from the Docker container when installed the npm dependencies inside this container:
> [front_server 4/4] RUN npm install --no-package-lock:
36.78 ...
Score of 0
0 answers
193 views
WebAssembly 'Out of Memory' Crash in PM2 – Resource Limits Set to Unlimited But Still Failing
I am facing an issue with PM2 while running a Node application. I am seeing this error in the PM2 logs.
1|abc | RangeError: WebAssembly.instantiate(): Out of memory: Cannot allocate Wasm memory for ...
Score of 0
1 answer
227 views
Npm run build for NextJS app runs out of memory on new Lightsail server but works fine on old one
First, some backstory:
I currently have my personal website (I know Server Fault is supposed to be for business environments, but it seemed like the best place to ask this question) hosted on an ...
Score of 0
1 answer
97 views
Serve requests with AWS EC2 and Lambda on the same endpoint
I reduced my problem to the following example. We have two XML request types: <data1>some-data</data1> and <data2>other-data</data2> coming to the same endpoint something like ...
Score of 1
1 answer
1267 views
Failing to use node in alpine-powered docker container
I'm failing to run my webapp project in a fresh arch linux install. It uses docker and docker-compose.yaml to create DB, nginx server etc. This project is already running in multiple PCs and cloud ...
Score of 2
2 answers
442 views
Nginx configuration unable to serve Node.js app not located a web root
Goal
With a Nginx web server, run a standalone Node.js app which server dynamic pages in response to API calls (e.g. ../tempestvue/.next/standalone/.next/server/app/api/weather/route.js).
Issue/...
Score of 1
0 answers
737 views
VM Integrity Validation Failed
I am running a Node.js project on a Google Cloud Platform (GCP) VM. The following issue has occurred for the past several days:
VM Integrity Validation Failed
What I’ve Tried:
Checked VM Logs: Looked ...
Score of 0
1 answer
259 views
Apache2 - How to execute CGI script with .json file-extension?
THE PROBLEM
I have an Apache2 server with scripts in /cgi-bin/ working for various languages. It appears to be currently working for any file-type extension... Except .json . .json files fail, ...
Score of 1
0 answers
178 views
pm2 frontend process restarts how to debug
We have a server running on CENTOS and as stack we use VUE3 with Nodejs, NUXT and EXPRESS js
Pm2 is also used for process management
The server has been running for a couple of years but lately we've ...
Score of 0
1 answer
727 views
Unable to Resolve DNS for api.huggingface.co on Ubuntu 24.04 - Node.js Application Issue
I'm working on a Node.js application hosted on Ubuntu 24.04, integrating with Hugging Face's API for fine-tuning models. However, I’ve encountered a persistent DNS resolution issue when trying to ...
Score of 0
0 answers
144 views
How do I grant a script the ability to read certificates in a directory and only that directory without the whole process running as sudo?
I'm building a node.js (18.19.1) web server on Ubuntu 22.04 and using PM2 process manager to daemonize.
The main script requires read and execute access to two certificate files stored in a separate ...
Score of 0
2 answers
710 views
Why does my Digital Ocean server sometimes hang when running Node.js, NPM or Docker
I am running server-side software on Digital Ocean servers. These include Docker, NPM, Node.js, and others. The server is running Ubuntu 22.04.
Sometimes, the server hangs randomly for several minutes....