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
0 answers
8 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 ...
Brijesh Gurung's user avatar
1 vote
1 answer
24 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 ...
leftcursor's user avatar
0 votes
0 answers
31 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 ...
user avatar
0 votes
1 answer
132 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 ...
Givre's user avatar
  • 59
0 votes
1 answer
62 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 ...
Milos's user avatar
  • 101
-1 votes
0 answers
24 views

Apache Error with authorisation?

Afternoon all I am using apache to host a node.js application. It suddenly stopped working. I am using a virtual host for the port. I have been debugging through errors but now I have this error ...
jitsujoseph's user avatar
0 votes
1 answer
55 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 ...
Shivam Ahuja's user avatar
1 vote
1 answer
1k 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 ...
Lee Goddard's user avatar
0 votes
1 answer
287 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, ...
Levi Pesin's user avatar
0 votes
0 answers
130 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-...
philolegein's user avatar
0 votes
2 answers
357 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
0 votes
1 answer
135 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
56 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
44 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
238 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
87 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
302 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
337 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,861
0 votes
0 answers
32 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
197 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
855 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
178 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
73 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
228 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
236 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
956 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
5 votes
5 answers
4k 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
  • 51
0 votes
0 answers
122 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
538 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
177 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
62 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
102 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
234 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
238 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
75 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
1k 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
  • 83
1 vote
1 answer
704 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
29 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
64 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
88 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
1k 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
77 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
55 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
38 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
472 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
380 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
400 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
63 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
500 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

1
2 3 4 5
21