All Questions

Tagged with
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
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
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
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
1 answer
30 views

How to create folders and files with ' and / in Linux (node)

In the system I developed for the company where I work we have a kind of file drive. However, an old rule that I put is the prohibition of / and ' in the name of folders and files because of the rules ...
Caio Silva's user avatar
1 vote
0 answers
39 views

Using Tunnelbroker to load balance Node.JS web scraper

I was wondering if I could assign my Linux VPS that is hosting my Node.JS app (puppeteer) for web scraping with a block of IPv6 addresses from Tunnelbroker to achieve IP rotation and load-balance my ...
Hackel's user avatar
  • 11
0 votes
0 answers
643 views

When calling script from jenkins it is not working as expected

we have one react application and start it using pm2 with pm2 start manually. We have written one script to run it, it is working as expected when we run script manually on server. But when calling ...
Satish Lamak's user avatar
0 votes
1 answer
4k views

Configure nginx to serve query string parameter

We have one NextJs site, with next export we get one out folder which we want to serve from Nginx. In out/login there is one '[[...parameter]].html'. When we deploy site using pm2 it is working if we ...
Satish Lamak's user avatar
0 votes
0 answers
6k views

NodeJS can't find python: gyp ERR! find Python

I'm trying to run a script but nodejs can't find python for some reason. I have tried reinstalling python, reinstalling nodejs, reinstalling my OS, running (and rebooting afterwards): export PYTHON=&...
tired's user avatar
  • 1
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
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
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
260 views

Why is my ubuntu service timing out when I can clearly see it started properly?

Here is my log : Feb 10 10:19:25 ip-172-31-47-29 systemd[1]: Starting TNR Photo Download Service... Feb 10 10:19:26 ip-172-31-47-29 tnr-photos[67938]: Server running on port 2200 Feb 10 10:20:56 ip-...
Chapo's user avatar
  • 71
1 vote
0 answers
137 views

Cannot perform command as a different User - even from root user

I have pm2 node modules installed in a user called otheruser. I need to run the program from root user. If I normally logged to otheruser and perform any action its working fine. otheruser@bubble-...
The Keeper's user avatar
0 votes
2 answers
942 views

Program installed for one user cannot be accessed from other user even full path is provided

I have all the npm pacakages installed for a particular user (i.e) not root (/home/otheruser/*) I am using monit to see whether to check the program is running. In this case its pm2, which is in /home/...
The Keeper's user avatar
0 votes
1 answer
722 views

Correct Way to Install Node.js in a Multiuser Server? [duplicate]

I have to acknowledge being an old timer U*ix system administrator. Software to be used by everybody had two possible locations: /usr/bin /usr/local/bin The best example is gcc and family. Now I find ...
David Alarcon's user avatar
0 votes
1 answer
99 views

What Prevents a Server Owned by a Non-Priviledged User to be Reached by Apache?

There is a popular Open Source application written in Javascript Node.js that listens to port localhost:1234 under my regular, non privileged account. When connecting from localhost everything works ...
David Alarcon's user avatar
4 votes
3 answers
21k views

How to configure Systemd service unit to start Node app with "npm start" instead of "app.js"

Environment: CentOS 8, Node.js, Digital Ocean Droplet My Systemd setup starts a node app with the following command. It works as expected. $ sudo systemctl start myapp File 1: /etc/systemd/system/...
myNewAccount's user avatar
0 votes
1 answer
2k views

Nginx Config For React and Node App Proxying to Wrong Path

I've setup a server with an Nginx config for a React frontend and Node backend. The Node app serves as an API for the react app. The node routes for /api/... are getting passed to the following path: ...
jFasaJr's user avatar
  • 121
2 votes
0 answers
6k views

Dockerfile 'COPY' command not copying files

I am running into a frustrating problem when trying to create and run a new docker container. When I upload my code to a Github repository and then use Docker Hub to build it, the build completes ...
xthursdayx's user avatar
0 votes
0 answers
46 views

Unable to get response from server on port other than 80

I'm currently using AWS EC2 instance My server built on node.js is running perfectly on port 80 and I get a response from API but if I switched to other port e.g. 8001 then I get no response from API....
Karthik Ashokkumar's user avatar
1 vote
0 answers
2k views

Removing "MaxListenersExceededWarning: Possible EventEmitter memory leak detected" nodejs

I'm using WebTorrent-hybrid (https://github.com/webtorrent/webtorrent-hybrid) on my linux ubuntu server (32GB Ram / Intel i7) and I want seed a lot of files. I'm using this command: webtorrent-...
mitrik's user avatar
  • 23
2 votes
2 answers
955 views

Why is my bash script terminating?

I have a node app running on my Linux hosting server. Sometimes the app crashes and I need to restart it, so I log in and type these commands: pkill node cd public_html/n49900_dpndev node server.js &...
Edward Tanguay's user avatar
1 vote
1 answer
2k views

Can you send console commands to a node-based systemd service?

I have a simple node.js script that accepts console commands using readline. I've set it up to run as a systemd service (on Debian 9): [Unit] Description=Web Game Server [Service] ExecStart=/usr/bin/...
user2145184's user avatar
0 votes
1 answer
2k views

Nodejs/Apache config for proxy pass

I want to use Nodejs/Apache proxy pass to serve my APIs, but after add below apache(httpd) config, it seems that config not working. OS: CentOS 6 /etc/httpd/conf/httpd.conf: ... <VirtualHost *:...
Milad Jafari's user avatar
0 votes
1 answer
81 views

issues configuring nginx with node.js app

Trying to get nginx to proxy my node.js app and use a domain with it. I'm going to have many domains mapped to the server so i'm using separate .conf files for each server block. The issue i'm having ...
Shan Robertson's user avatar
1 vote
0 answers
24 views

What is the best way of testing million concurrent requests? [duplicate]

I have currently set up a Docker Swarm that has containers with node.js servers running in it. I am going to try different setups with different amount of node.js containers and see how long it takes ...
kaaleppi3's user avatar
0 votes
1 answer
2k views

Static HTML/CSS/JS not getting served with NGINX config

So I am using my nginx with node to reverse proxy a few of my sites on a virtual host. Three of my apps have their own express servers and the sites are working as they should. However, I am now ...
Sharkboots's user avatar
1 vote
1 answer
839 views

How to install Node.js and NPM on Unix server so that no users require sudo to install or read global packages?

Is this really such an uncommon situation that I can't find answers anywhere? Anyway. I have a Ubuntu VM server on DigitalOcean and I am running Jenkins on this server to do build, test and local ...
Megakoresh's user avatar
1 vote
1 answer
2k views

nodejs overwritten /usr/bin/which, how to fix?

I have a newly installed centos 7 with only some nodejs projects. Then I found which command is not working properly. # which ls which: illegal option -- - usage: which [-as] program ... # echo $...
Reed's user avatar
  • 287
0 votes
1 answer
309 views

Ubuntu 16.04 32 or 64 bit which is best for MEAN + NGINX?

Okay, I'm kind of lost here guys. I'm working on a web app and I'm expecting to have quite a bit of web traffic. I am planning to use Node.JS with express and MongoDB for a database all hosted on the ...
Devontrae Marqualius Walls's user avatar
0 votes
1 answer
284 views

ReactJS, Express application self hosting on internal dedicated IP server

I know we can host our ReactJS application on Amazon, Microsoft Azure, Heroku etc. But what are the important steps and security precautions required to do in order to setup on an internal hosting ...
Nah's user avatar
  • 123
-3 votes
1 answer
884 views

Is it possible to set same port work with http and https?

I've nodejs application which port number is 3001 and this app working with http but not work with https. On apache server, set the revers proxy for 80 or 443 to 5001 and set revers proxy for 3001 ...
rgg's user avatar
  • 45
2 votes
1 answer
821 views

Allowing node.js applications to run libpcap without sudo ("Symlink" issue )

I want to use the following command to allow usage of the libpcap package without to sudo (on a debian system): sudo setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/nodejs I'm getting this error:...
Bastl's user avatar
  • 121
0 votes
3 answers
1k views

Configure nginx with proxy_pass and crowlers with nodejs

I had a problem with my configuration, everything works great except of my crowler proxy_pass, the traffic never touch that server. Is there anyone that know how to get it working with two proxy_pass ...
mikael karlsson's user avatar
3 votes
1 answer
5k views

Node-sass error during installation of node modules

I'm trying to install Laravel on my Debian server, but it fails during installation of node-sass. I have had this setup for a long time and never experienced issues before. Maybe node-sass or npm ...
Emil Moe's user avatar
  • 209
1 vote
1 answer
49 views

Setting Up Node on Production Server

I Really need some help. I have this centos 6 or 7 server. I have set up my nodejs app and run on the server on port 8080. netstat also output it weshop@host [~]# netstat -an | grep "LISTEN " | grep ...
Snippet's user avatar
  • 113
-1 votes
2 answers
2k views

(Ubuntu Server) Why does /usr/bin/node --version show v6.0.0 when /usr/bin/nodejs --version show v4.3.3?

I recently had nodejs v6.0.0 installed. I ran sudo apt-get remove nodejs and reinstalled the LTS version using curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - sudo apt-get ...
David Polly's user avatar
1 vote
0 answers
256 views

Meteor app 403 forbidden

I have a meteor app which runs locally but on my linux ubuntu with nginx and passenger webserver it gives a 403 error. I have changed the permission for the meteor and followed this simple guide ...
Sithelo Ngwenya's user avatar
5 votes
3 answers
12k views

How to use nohup to continue to run a command after the user logout?

nohup <command> <arg> & When I SSH into a Linux server, if I want to run a command and make sure that it will continue to run in the background after I logout from SSH, I will use the ...
userpal's user avatar
  • 613
-2 votes
1 answer
59 views

Staging architecture on AWS

We are using AWS (EC2-classic) and I will migrate our servers to AWS VPC, we will use AuroraDB, too. Staging ENV has 8servers (Linux Ubuntu 14.04), and on these servers are running RoR & node.js ...
nex.cz's user avatar
  • 1
0 votes
1 answer
2k views

How to config nginx reverse proxy to accept HTTPS client with private key connection

I got problem in Nginx reverse proxy configuration, the problem is complex, please read the story. Our company have a internal infrastructure, in the old architecture the client (In fact, they are ...
K K's user avatar
  • 1
1 vote
1 answer
2k views

Heavy load (100% ni) and CPU load average is 42.61, 42.24, 42.23

Machine: 8 Core processor with Centos 6.7 top command result I am using node.js, PHP-FPM, NGINX, Redis, MongoDB. I have checked with stopping all services created my me and PHP-FPM, NGINX, Redis, ...
Sham's user avatar
  • 13
1 vote
1 answer
75 views

Setting up Node App along with nginx server

I am trying to set up a new node all along with my previous PHP app. Scenario The php app runs on www.xyz.com. It is served using nginx. The node app is served via NodeJs server on port 8142. I ...
Ateev Chopra's user avatar
1 vote
1 answer
114 views

How to check what is causing performance issue

[Edit] This question is different than what is suggested by the moderator, I am trying to find out what could have caused the API to become slow because of the few lines of codes. I am not trying to ...
forestclown's user avatar
1 vote
0 answers
1k views

Node.js w/ Apache, same IP, different ports. Virtual Host config breaks normal Apache (Site on 80) access?

We have clients who don’t want to open port 3000 on their firewall and our app uses that port for Node.js. Been trying to find a way to redirect port 3000 (node.js) traffic so we can bring our site ...
Patrice Otrava's user avatar
0 votes
1 answer
1k views

Compile Node with GCC v4.9.2

I can't seem to be able to compile Node.js on CentOS 6.6 (64 bits) GCC v4.9.2 $ ./configure Node.js configure error: No acceptable C compiler found! Please make sure you have a C compiler ...
Mick's user avatar
  • 203
2 votes
1 answer
2k views

Install Node 0.12.x binaries on Centos 7

As of this post, there don't appear to be any yum or rpm options for available for installing NodeJS 0.12.x. Even Node's semi-official yum repo (nodesource.com) is still on 0.10.x for RHEL distros. ...
Jake Wilson's user avatar
  • 8,884
0 votes
1 answer
150 views

Got blocked by server after starting TCP nodejs sever. Why?

I recently installed node on my VPS, and tried to complete a tutorial. I saved this code into server.js and hit node server.js in putty. I got instant "ban" from my VPS, I can't access it, however on ...
Tamás's user avatar
  • 9
16 votes
4 answers
14k views

Allowing node.js applications to run on port 80

I'm following a walkthrough that guides you through setting up node on an ubuntu machine. I'm at the step where you configure the system to allow node to run on port 80. It (as well as a few other ...
ThinkingInBits's user avatar