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
2k views

How to pass the chromedriver path to nodejs selenium-webdriver in Docker

Here is my docker file. FROM node:17.2.0 USER root WORKDIR /LT RUN apt-get update RUN apt-get install git --yes COPY /LT . COPY /LT/test . COPY ["/LT/package.json", "."] # ...
Jay's user avatar
  • 103
0 votes
1 answer
2k views

docker - nodejs - selenium-webdriver - Error: Server terminated early with status 127

I am a novice in a docker container. I am trying to create a docker file that has npm, node js, chromedriver and selenium-chromedriver and run my javascript file. In my local , I run the script in the ...
Jay's user avatar
  • 103
0 votes
2 answers
622 views

High availability with round robin - rsync and DB replication or a cluster?

I have one machine (centos7) with Apache, PHP, MariaDB and Nginx, Nodejs, MongoDB installed and being used by many different domains. I'd like to create a working mirror and can't decide between 2 ...
knm's user avatar
  • 5
1 vote
0 answers
738 views

iOS saying ssl is invalid from letsencrypt

I’m using letsencrypt for a few sub domains one of which is chat.mydomain.com which is setup as an alias of the main domain in Apache because it uses a socket on specific port and doesn’t require a ...
MMMWeirdo's user avatar
0 votes
1 answer
2k views

How to deploy a server side rendering (SSR) react application (bundled by webpack) on windows server 2016 / IIS

Just a heads up: This is the first time I try to deploy a react application on a custom built Windows server, but I’ve managed to do it successfully on Heroku and Linux (PM2), so I know that the ...
Jorge Mauricio's user avatar
2 votes
0 answers
7k views

Apache reverse proxy to Node - Connection refused: AH00957

I am trying to get a brand new cloud based server working with a default version of 20.04 server ubuntu working with apache and node. The node server appears to be running without issues reporting ...
Jamie Hutber's user avatar
0 votes
1 answer
351 views

Nginx rewrite with proxypass

I have an Nginx running in the front of a node js server (next.js). I'm trying to write my Nginx config in order to achieve this behavior, I want to add the hostname as the first part in the path ...
Amir Saadallah's user avatar
1 vote
1 answer
3k views

User agents not trusting web server due to Let's Encrypt DST Root CA X3 root certificate expiration

I handle a NodeJS server with an SSL certificate issued by Let's Encrypt. It works on some clients (Safari and Firefox on my macOS) and not others (curl on my macOS, Safari on iOS). The notice on iOS ...
miguelmorin's user avatar
0 votes
0 answers
35 views

Access Node-TS app running in Windows server 2019 from any computer

I've a Node-TS based Opensource ERP Gauzy deployed and running in a Windows server 2019 and I want to allow access and connect a domain to this app so that it can be accessed from anywhere by any ...
Lalit Fauzdar's user avatar
0 votes
0 answers
96 views

How could a request be dropped when sending a request to NodeJS?

I have an AWS ALB that load balances requests round-robin to four servers. Each server uses pm2 to round-robin those requests to six CPUs. NodeJS processes (react NextJS) are running on each of those ...
tunesmith's user avatar
  • 101
0 votes
1 answer
2k views

Passenger Apache - Forbidden You don't have permission to access this resource

I'm stuck with Apache with Passenger configuration. I spent a few days looking for a solution. I follow this instructions. I'm getting this message in the browser: Forbidden You don't have permission ...
neuroine's user avatar
0 votes
0 answers
106 views

Installing Node on a server with no internet, with ansible/nvm?

I have a little puzzle. I'm trying to get Ansible to deploy NodeJS to a server(s) that do not have access to download Node from the official website. Really, no access to the web (And enabling isn't ...
Charlie's user avatar
  • 103
0 votes
0 answers
1k views

Google App Engine Start program Failed

I have a very basic NodeJS application hosted on Google App Engine that executes an async function on 15 second intervals. The deployment is successful and the app starts and runs fine, but stops ...
Tyler Pashigian's user avatar
0 votes
0 answers
217 views

How do I get a graceful shutdown of Node.js running on Apache/CentOS/Plesk?

Hopefully this question has an answer that's generic to Apache and Node.js, and not specific to Plesk ('cause I know how you feel about Plesk-specific questions!). I recently decided to add some text ...
kshetline's user avatar
  • 129
0 votes
1 answer
1k views

Nginx return 500 Internal Server Error

Last night I was trying to upload photo on my website and I get error I trying to do console.log but they didn`t show anything.After some re-search I notice that disk usage of my server is full so I ...
mawerick_1's user avatar
2 votes
1 answer
14k views

how to fix the npm install fails with 'An unknown git error occurred' in one folder but works in a another folder

My Server runs on Centos 8 and I installed nodejs latest (v14.17.5) and NPM (v7.21.0), both dont have a .git folder in there. I have a very very strange issue, If I goto folder example1.com, and run ...
mahen3d's user avatar
  • 4,382
0 votes
1 answer
1k views

pm2 Multiple God Daemons and node process Spawning

I Have node apps unning using pm2.And it is spawning multiple pm2 daemon instead of one which is eating up all the memory. When I run ps aux | grep pm2 Command I see multiple God daemons for the pm2 ...
Sterina Pen's user avatar
0 votes
1 answer
3k views

AWS Load Balancer 502 Bad Gateway

I have multiple node web servers hosted on EC2 with a Load Balancer, and some users are getting a 502 even before the request reaches the server. I don't have the logs of those requests inside the ...
soltex's user avatar
  • 101
0 votes
0 answers
1k views

Nginx + django +nodejs : Uncaught SyntaxError: Unexpected token '<'

This is first time using nginx and nodejs. I have two apps one is built using django and other is built using nodejs (expressjs +openvidu). I am trying to configure nginx, django app works fine, I am ...
Raviteja Sutrave's user avatar
0 votes
0 answers
956 views

htop does not show the real memory usage

I'm having a server running around 250 docker containers. Once they are all up and running, htop shows a 32-33% RAM usage as shown below: I've also installed netdata for a more granular monitoring, ...
Vincent Teyssier's user avatar
0 votes
1 answer
200 views

Nginx: unable to proxy some paths to Node.js server (between dwo docker containers)

So my current setup is the following: I am using docker (rootless install) and want to use Cryptpad (which uses Node.js) with Nginx as a reverse Proxy (disclaimer: I never worked with Nginx before). ...
Max.-F.'s user avatar
  • 101
0 votes
1 answer
2k views

Using Reverse Proxy Nginx in a docker container

So trying to setting Nginx as a reverse proxy using docker - I have three node js containers (one frontend and two backend services) the frontend service calls the two backend services. So I want ...
Reuben deVries's user avatar
0 votes
2 answers
11k views

PM2 - Process or Namespace not found when deploying with GitLab CI

When deploying from CI, as the user who started PM2, pm2 restart appname always results in [PM2][ERROR] Process or Namespace appname not found whoami/who on deployment shows the correct user. Tried ...
Klav's user avatar
  • 101
0 votes
2 answers
1k views

How do I debug crashing application from inside docker and prevent it from terminating?

I need to debug an application that is crashing inside a docker, how do I achieve that the docker does not stop when the app crashes, allowing me to -it inside and try starting the app manually?
Qwerty's user avatar
  • 105
2 votes
1 answer
7k views

How to fix ws and socket.io memory leak?

I have read that there is a memory leak occurring in both node.js websocket modules ws and socket.io. It has existed for years and am wondering how to fix it. It is mentioned in the following, to name ...
Normajean's user avatar
  • 131
0 votes
0 answers
2k views

how to connect to mongodb server via ssh tunnel with Proxy Jump (ProxyCommand)

I have an ssh config file like this. I have a proxy jump to host1 from test2. Host host1 Hostname xxxxxx.us-east-1.elb.amazonaws.com Port 2222 User xxxx IdentityFile ~/.ssh/cert ...
Pradeep Charan's user avatar
0 votes
1 answer
832 views

Nginx reverse proxy to a node express fullstack app not working

I have a fullstack node express which serve static files and the api running on port 5000. my nginx config is : server { listen 80 default_server; listen [::]:80 default_server; ...
aestheticsData's user avatar
0 votes
2 answers
1k views

How to Proxy Rest API endpoint on Apache HTTPd. React Frontend and NodeJS Rest Endpoints

Ive been trying to figure how to proxy my REST API endpoints in in Apache HTTPD. Apache HTTPD 2.4.6 (Centos) Front End - React Appliction (create-react-app) Node JS API Endpoints via port 9000. Im ...
Tiesto 's user avatar
0 votes
1 answer
2k views

Now to find the lasted version of Node/Alpine Docker image

How do I find the lasted version of Node/Alpine Docker image? In a Dockerfile I borrowed, I have FROM node:13.12.0-alpine, but on DockerHub at https://hub.docker.com/_/node, I don't find that version ...
BBaysinger's user avatar
0 votes
1 answer
320 views

Serving multiple nodejs sites with nginx which ports should I be starting apps on

I have multiple nodejs apps from different domains that I am serving from the same server with nginx. I am currently starting each app on a different port say 5000, 5001, 5002 ect. Then using nginx ...
Steve K's user avatar
  • 135
2 votes
1 answer
1k views

My Node.JS program running on an internet-facing server is printing impossible text to the stdout log. Have I been compromised?

(EDIT: Turns out the "strange behavior" is explained by a simple oversight. Keeping this question here in case anyone else overlooks it) I hope I am asking this question right. I have a ...
majneeds2chill's user avatar
0 votes
1 answer
2k views

Slow external API request on NodeJS using Docker

I am trying to have a NodeJS server respond with data from an external API. Consider the index.js file: const express = require('express'); const axios = require('axios'); const app = express(); app....
pymekrolimus's user avatar
0 votes
2 answers
439 views

Persist server on AWS EC2 instance

I am able to run my node server on an EC2 instance by SSH-ing into the server and running the command node index.js when inside of the src file. The server works fine, but the issue is that I have to ...
Cameron Honis's user avatar
2 votes
0 answers
250 views

Facilitating arbitrary code execution on AWS Lambda

I am developing a SaaS where a user will be able to upload a custom JavaScript function that runs when an event happens. In order to preserve the integrity of the system, I am using AWS Lambda to run ...
Nexuist's user avatar
  • 121
0 votes
1 answer
2k views

Socket hangs up when request takes more than 10 mins to respond

We are sending an axios request to python (which is running in cloud RUN) from node js application (hosted in Google app engine), python (flask) app takes more time to respond in some cases. When it (...
Akshita's user avatar
-1 votes
1 answer
1k views

Nginx reverse proxy not working

I know this is a very common problem, but I can't seem to find the solution to it, and I'm new to Node JS and Nginx. I'm trying to run my Node JS app on port 80 of my site at example.com using a nginx ...
coderpr0grammer's user avatar
0 votes
0 answers
158 views

Efficient lookup from file in nodejs?

I am wanting to write a node application that looks up a bunch of blacklists from plain text files. Basically are all under directories representing different categories, and in each there is a file ...
jusschwa's user avatar
1 vote
0 answers
76 views

Deploying two applications on the same instance with clustering

I am trying to deploy two applications listening on different ports on the same instance (a Next.js application along with a Node.js API server). I will use a reverse proxy to route traffic to them ...
Marnix.hoh's user avatar
1 vote
1 answer
468 views

google compute engine instance creation error. Resource is not ready

Sometimes when creating a Google Compute Engine instance we get an error like: GaxiosError: The resource 'projects/zoocorder/zones/us-central1-c/disks/job1617338480855vm' is not ready at Gaxios....
Samuel Hammer's user avatar
0 votes
0 answers
468 views

Nginx - NodeJS not able to reach subdomains

I have a smalle project that I created an my Raspberry Pi. On the Pi I have a added Nginx and NodeJs in order to create a small Express server. My Express server has a sub path called /api/ip where I ...
Stephen's user avatar
  • 101
0 votes
1 answer
83 views

Running node.js app on Nginx

I have a node.js app which running nginx, which is working smoothly but the problem is that, when a user enters with IP address and port (ex:5.188.56.20:8010), he can observe the services that are ...
ali's user avatar
  • 1
0 votes
0 answers
695 views

Proper way to package a NodeJS application with rpmbuild

I have created my first rpm package for a NodeJS app which is ran as a systemd service. Since I do not want to package the node_modules folder with the rpm (AFAIK npm install is system/node version ...
HomeIsWhereThePcIs's user avatar
1 vote
1 answer
264 views

How do ProxyPass from Apache to node.js so I can drop the port number in my local URL?

I'm trying to use a domain name for local development of a next.js app. Normally, it fires up at localhost:3000 but I'd like to use site1.local (and no port). I've edited my hosts files to point the ...
paintedbicycle's user avatar
0 votes
0 answers
49 views

Connect Nodejs app to MongoDB Via Azure

I have a nodejs application and my organization is using mongodb but via azure which I'm not too familiar with. I usually just go on the mongodb website and then go to the 'connect you application' ...
Mark's user avatar
  • 1
0 votes
0 answers
440 views

Installation of Angular on Windows for multiple users

We are setting up a server that will be used by all application developers for our organization. One of the things I'm told we need, is nodejs, and then an Angular installation. It seems that ...
Dennis 's user avatar
  • 188
0 votes
1 answer
748 views

Nginx fails to proxy to Node

I have a running Node app that is live and works fine on http and https. I setup Nginx and it is also running fine, tested with an sshtunnel, and it is getting a correct response from static files (...
jlanssie's user avatar
1 vote
1 answer
1k views

Apache config for frontend https + Backend http

I have a server running on Linode that has 3 subdomains. Every subdomain is a diferent Angular 8 Application and have it´s own backend. xyz.example.com xyz.example.com:8080 abc.example.com abc....
Renato Azevedo Zoppei's user avatar
3 votes
1 answer
2k views

Should I be concerned about attackers spraying for vulnerabilities on our webserver?

I'm running a webserver with monitoring software (Sentry.io) and I can see (failed) hits to the following endpoints: GET /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php GET /console/ POST /api/...
deeBo's user avatar
  • 133
0 votes
0 answers
57 views

Google App Engine based Node Js server does not work on Reliance Jio network in India

Requests to my node server deployed on GAE ends in DNS_PROBE_FINISHED_NXDOMAIN on a particular ISP (Reliance JIO in India). The same app works fine on any other network . If deployed on Heroku or on ...
ordy's user avatar
  • 9
1 vote
1 answer
12k views

Nginx what is the right configuration for Socket.io?

If I have a node express server running on port 5003 import express from 'express' import { createServer } from 'http' import { Server } from 'socket.io' const app = express() const prod = process....
Álvaro's user avatar
  • 117

1 2
3
4 5
21