All Questions

Tagged with
Filter by
Sorted by
Tagged with
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
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
0 votes
0 answers
237 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
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
3k views

Install with apt an old version of Node on Ubuntu 22.04

I'm getting crazy installing Node 16.x on Ubuntu. I use curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - And then sudo apt-get install -y nodejs But the version installed is the 18....
Roberto Pezzali's user avatar
0 votes
1 answer
280 views

Ubuntu 20.04 VM Corrupted Javascript files when installing NPM packages

I'm experiencing something weird on Ubuntu server 20.04, Its virtual machine running on XCP-NG 8. I tried several versions of nodejs 14, 16, 18 but nothing solves the issue I can't even install nodejs ...
Xsmael's user avatar
  • 185
0 votes
0 answers
479 views

Nginx configuration with NodeJS application on Ubuntu 20.04

I've been attempting to configure a backend NodeJS server (ExpressJS) to use with Nginx, but there have been some difficulties. I am currently running a DigitalOcean droplet with Ubuntu 20.04 ...
Jeremy Marino'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
-3 votes
1 answer
4k views

Can't connect to my localhost server with my public IP [duplicate]

I have created a local node server on my laptop. And I can access it using the private IP (like 192.168.1.9:8080) on same network on my other devices like phone and other PC. I have disabled firewall. ...
Vikas's user avatar
  • 97
-1 votes
1 answer
658 views

~90% error rate with Stripe webhooks, unpredictable response. Server issue?

I'm setting up Stripe webhooks for the first time. I've made hundreds of test requests and I've had an error rate of around 90%. It's unpredictable as to why the failures occur. The failure responses ...
Joseph's user avatar
  • 1
2 votes
1 answer
3k views

How to serve 2 react apps on nginx with same ip and port

I have two applications one is public and another one is admin, I want to serve these two apps on same port but it is not working, below is my configuration file: build folder for both apps is saved ...
Satish Lamak's user avatar
0 votes
1 answer
569 views

Error connection refused MERN APP on EC2

I have MERN app on ec2 i am getting an error ERR connection refused when connecting localhost:8080/api/auth/sign with node api. Cannot make post calls. What should I do?
Tanya maheshwari's user avatar
0 votes
0 answers
1k views

Nginx 413 - Client intended to send too large body - Node app

I am runing a node app on nginx under Ubuntu and I am having problems uploading a 200M json file. On my local I use nginx on a Mac and I am not having this limit issue. I have set the nginx.conf http ...
Álvaro's user avatar
  • 117
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
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
-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
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
0 votes
1 answer
246 views

Unbearably slow redis connection when using openvpn

I have an OpenVPN config file like the following: client proto udp explicit-exit-notify remote SOME_REMOTE_SERVER 1194 dev tun resolv-retry infinite nobind persist-key persist-tun remote-cert-tls ...
Tri Nguyen's user avatar
0 votes
1 answer
504 views

Cannot setup a reverse proxy with Nginx

I'm trying to display my NodeJS application when the user type a specific domain. I already pointed the domain on the server, then I've installed Nginx and I have created a configuration file into: /...
sfarzoso's user avatar
  • 103
0 votes
0 answers
2k views

Client sends "FIN, ACK" instead of "Client Hello" | Connection closed during SSL handshake | Haproxy

I am trying to establish SSL connection between the .NET WebSocket Client and my server by calling "wss://domain.xyz". Haproxy is handling the SSL handshake and once that is done it connect ...
Panays's user avatar
  • 1
1 vote
1 answer
3k views

Exposing or listening to a http port on google cloud instance

I have a google cloud instance (Ubuntu 20.04) where I tried to run a nodejs app and expose it to port 80. Here my server.js code: var express = require('express'), app = express(), http = require('...
Syed Arefinul Haque's user avatar
3 votes
3 answers
1k views

How to set Amazon Route53 for multiple distinct domains on the same IP address?

I have two different domain names with completely different websites. This is how my nginx configuration looks like: server { listen 80; server_name domainnameone.com; location / { ...
Dong's user avatar
  • 135
0 votes
1 answer
110 views

Apache seems to redirect to domain name ever when not running

I'll preface this by saying I don't have a lot of experience with Apache. But currently I am running a Node process that's listening on port 8080. However, when I access that port via 'ipaddress:8080'...
Anthony's user avatar
  • 211
-2 votes
1 answer
363 views

Options for a web application to send emails

I have a VPS server running Ubuntu OS. A developer is creating a NODEJS website and suggests to use a third party service to send emails. Such as Sendgrid. I'm sure years back there were other ways ...
Orange Juice Jones's user avatar
1 vote
2 answers
107 views

Can an HTTP request to an HTTPS server be forced to encrypt? [closed]

I have an Unbuntu server running NodeJS, where I want to upload some files. Some of the files contain some data that I would prefer would not to be leaked, but it wouldn't be a massive issue if ...
Asgeir's user avatar
  • 111
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
1 vote
0 answers
10 views

node.js app on ubuntu linux with postgresql on virtual box on windows client [duplicate]

I set up, ubuntu linux on virtual box. Then I installed postgresql and node.js So basically I made a clean installation and i want that ubuntu handles my requests. When i run node server.js , a ...
Federico Fioravanti's user avatar
3 votes
1 answer
65 views

node js app issues after AWS Instance snapshot

I had a node.js app with nginx running totally fine on a domain i purchased. It was run on an ubuntu server and all was well. I accidentally clicked "create image" on the aws site and ever since then ...
helpimlost's user avatar
0 votes
0 answers
223 views

My Ubuntu server keeps "turning off" after some time

I'm new to server administration and whatever I know comes from my amateurish knowledge of linux and guides I followed online to setup an ubuntu 16.04 server for a production node app being served via ...
ThisIsNotAnId's user avatar
1 vote
1 answer
3k views

nginx set different document root for a proxypass

I'm just trying to run a nodejs app I made on a proxypass domain, and have it work exactly as it did on my desktop. However, for some reason, even though I defined a seperate document root for this ...
Jake t's user avatar
  • 127
0 votes
0 answers
4k views

Pm2 cannot open it's own PID file on ubuntu 18.04

I was recently trying to run a nodejs app I created using pm2 and this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-a-node-js-application-for-production-on-ubuntu-18-04 ...
Jake t's user avatar
  • 127
1 vote
1 answer
199 views

How did Alibaba find my server and ping my node instence that I just made?

So I just created a new droplet on DigitalOcean and did a http-server in the root directory. 5 minutes later I see this in the logs: GET http://47.99.121.32:39169/Ip/Up?Ip=[my server ip]&Port=...
Ahmed Alharbi's user avatar
1 vote
0 answers
1k views

TypeError: SSLError(CertificateError("hostname 'abc.com' doesn't match 'def.com'",)

currently I am using a django backend which makes another post request to a expressjs backend. I have tested in development server and local machine, worked the request was made perfectly. So I push ...
Dora's user avatar
  • 341
0 votes
1 answer
406 views

Node + nginx reverse proxy never works until I restart nginx

I have a Node.js app that I run on port 8204 on a Vagrant VM (Ubuntu 16.04.3) (Windows 7 x64 host). Whenever I start up the Vagrant VM, ssh in and start the Node.js app like this: > npm start I ...
Jake Wilson's user avatar
  • 8,884
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
0 answers
126 views

I may have 2 versions of Node.js on my server. Do I need to remove one or both or start over?

This morning I installed node.js on Ubuntu 16.04. I am using DigitalOcean. I used these lines of code and everything went great. sudo apt-get update sudo apt-get install nodejs sudo apt-get ...
DR01D's user avatar
  • 350
0 votes
0 answers
169 views

Static files are served locally but not through nginx

I'm running a node.js API on a VPS, which is served by nginx on Ubuntu 13.04. I'm using restify and serving static files like this: server.get( /\/static\/?.*/, restify.serveStatic({ ...
Misha Moroshko's user avatar
1 vote
0 answers
482 views

nginx - wierdest issue ever - some of the requests received are malformed

This issue is a mystery to me, and I will be extremely happy to find the solution. I'll provide the details of my environment I think are relevant, but if anything else is required please comment and ...
sahar's user avatar
  • 11
0 votes
1 answer
3k views

Node js server is not working with apache proxy in ubuntu

I'm running Node js server in port 8080. Apache is running in port 80 with https. I wanted to run Node in apache with https. I followed tutorial from here. Here is my config file. Node.conf: `<...
Sarath Kumar's user avatar
0 votes
2 answers
3k views

How to simulate high bandwidth traffic for server testing

I'm working on a personal CDN-like project and I would like to stress-test my server, which is a minimal nginx+nodejs+ubuntu running on a 10Gbps VPS. I want to simulate something that looks more like ...
Pavel P's user avatar
  • 113
1 vote
1 answer
6k views

"pm2 deploy production setup" command fails, Permission denied (publickey)

So I guess pm2 and SSH aren't configured correctly to work with each other on my machine. I'm perfectly able to SSH into my remote server manually using ssh user@hostname. The server is a ...
Jon Love's user avatar
0 votes
1 answer
115 views

Node.js not talking to Mongodb

I inherited a server, and the original admin team is no longer around. We have a live server that is working, but I'm trying to successfully convert it to an AMI for AWS scaling. The clones work, ...
BurningKrome's user avatar
4 votes
1 answer
658 views

Debugging Node.js disk I/O and CPU spikes

I'm running a Node/Meteor/Mongo app on Ubuntu (on a Digital Ocean 1GB droplet), and I've been seeing some weird disk I/O spikes, which are then followed by CPU spikes: I was wondering: If that ...
Sacha's user avatar
  • 141
2 votes
1 answer
2k views

How to use NVM to switch Node versions for the Apache user ('www-data') - a user with severely limited functionality?

I call a Node script from PHP on my Ubuntu web server, as in // The following PHP executes in the context of the Apache user - 'www-data' // $execstring = "node " . $args; exec($execstring, $output, ...
Dan Nissenbaum's user avatar
2 votes
1 answer
3k views

Running a HTTPS Node.js server as non-root

Can a Node.js server serving an app over HTTPS be run as a non-root user? The problem is that there seems to be no way to run a script like this without sudo, since it has to access the certs. I'm ...
Matias Heikkilä's user avatar
1 vote
0 answers
42 views

Redirect on Apache not working

I'm trying to create a subdomain for my node app in my domain with Apache in a Ubuntu machine. this is my app.conf ServerName mysubdomain.domain.com.br DocumentRoot /var/www/html/app/ ...
Filipe Ferminiano's user avatar
0 votes
1 answer
861 views

Any way to stop apt-get upgrade downgrading npm to version 2?

I installed nodejs 4 on Ubuntu 14.04 using node's official PPA, as described here. It seems like npm v2 is the default so I upgraded npm to v3 using itself (npm update --global). Version 3 is required ...
contrebis's user avatar
  • 103
1 vote
3 answers
533 views

Run a shell command on ubuntu/nginx boot

I have a ubuntu 13 running nginx and node.js, to start mongodb I need to run on command line: mongod --config /etc/mongodb.conf Problem is that when I exit terminal, it stops, how can I add this to ...
Chris'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