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
84 views

Where to install yarn on a mastodon server [mastodon]

I am on my way to install mastodon. The installation guide says: be root sudo su - [do some other stuff] set up yarn: yarn set version classic This gives the following output: Resolving classic to a ...
archygriswald's user avatar
1 vote
1 answer
226 views

NGINX Hosting multiple servers in same domain

I have a website being served by Nginx and I'm trying to do something that I don't know if it's possible the way I'm trying to do but the case is: I have Application A and B made with React / Node. ...
Henrique Hefler'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
0 answers
769 views

Localhost not working with vue.js

Im new using vue.js, so I just installed vue.cli and I tried localhost:8080 and it worked perfectly showing the vue welcome page. Then, 2 minutes later, localhost is not showing the page anymore (...
NdeNoob's user avatar
1 vote
1 answer
1k views

Nginx + Socket.io + Nodejs: How to configure socket.io on custom path

Ubuntu 22.04 Nginx: 1.23.2 Nodejs: 12.22.9 Socket.io: 2.0.3 I had a basic Node.js chat room built in Apache2, but I migrated everything over to Ngnix and I'm having problems trying to get the chat ...
peppy's user avatar
  • 73
1 vote
1 answer
42 views

System architecture for storing sensitive data separately without single point of access

We're building a SaSS platform with support for integrations. Each client has multiple integrations. We'd prefer not to store these integration tokens in a centralized location, where there's a single ...
Max Hudson's user avatar
1 vote
1 answer
804 views

Node on Nginx - proxy_request_buffering off doesn't work with https? Super slow https image uploads

I have a node server running on nginx as a reverse proxy, which is supposed to handle image uploads. Its ssl cert and domain are configured through cloudflare. Aside from setting the proxy_pass to ...
intern3t-us3r's user avatar
0 votes
0 answers
714 views

Nginx: Websocket on port 80 is not working

I have a simple NodeJs Websocket application running, the code for it is // Importing the required modules const WebSocketServer = require('ws'); // Creating a new websocket server const wss = new ...
Bidyut's user avatar
  • 121
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
128 views

What is the best process to install a node based service/daemon/unit on Debian 11?

In this post: [Other serverfault post][1] [1]: https://serverfault.com/questions/1018676/how-to-configure-systemd-service-unit-to-start-node-app-with-npm-start-instead I found that it's possible to ...
gwhiz's user avatar
  • 47
0 votes
1 answer
2k views

Nginx + Socket.io websocket closed before establishing connection issue

Hi i am running an express server with a socket.io server attached to it const { Server } = require("socket.io"); var server = http.createServer(app); /** * Adding Socket io implementation ...
Kaki Master Of Time's user avatar
1 vote
1 answer
113 views

load static IP without specifying port

I am using AWS lightsail. I cloned my git repository to my htdocs and opened port 3000 on my networking ipv4 firewall. What im trying to do is load my node site with my aws static IP. It currently ...
seriously's user avatar
  • 121
0 votes
1 answer
2k views

Configure two application in same server in Nginx on two ports

I have two different applications. Survey application built with express framework Django application using rest api and react I would like to achieve: vardhan.com/survey, vardhan.com/feedback, etc ...
vishnu vardhan'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
1 answer
82 views

Apac2 + Cloudflare 502 Error On Static Files

I try to setup my nodejs application on ubuntu 16. I configure apach2 like that; I'm getting Error 502:Bad gateway from cloudflare. I did not do any config on cloudflare. What should ı do? Server is ...
Ömer Faruk Demirel's user avatar
-1 votes
2 answers
2k views

Unable to access an express http server from public ip after port forwarding and UPNP

So I have a very simple express http server that returns simple html hosted on 127.0.0.1 and 6550 port that works perfectly in localhost. I will be sharing the code at the end of this post but I don't ...
isa türk's user avatar
1 vote
1 answer
1k views

Cloud SQL MySQL 8.0.26 Intermittent "Got timeout reading communication packets" error in App engine flex + Node.js app

We're running node.js servers on App engine flexible that are connecting to mysql using a shared private network. (app engine instances are deployed into the same vpc subnetwork that mysql lives in). ...
Tudor Sandu's user avatar
0 votes
0 answers
2k views

connect() failed (111: Connection refused) while connecting to upstream Nginx

I'm working on the deployment of the app with the backend and frontend using Nginx as a proxy. However I'm facing the 502 Bad Gateway, the error says [error]: connect() failed (111: Connection ...
frankiie's user avatar
  • 101
0 votes
0 answers
17 views

public folder was lock while running node project

I am working on node 14.x version at ubuntu 18.04 os while running the project I tried to upload an object the root user locked the public folder after that I was unable to use the object that I ...
sarumathi kathirvel's user avatar
0 votes
1 answer
763 views

Cloud-init / cloud-config to install node.js

From reading the cloud-init docs (https://cloudinit.readthedocs.io/en/latest/topics/modules.html#apt-configure), it appears that this user-data should add the Nodesource source and key for apt, and ...
Doug Reeder's user avatar
1 vote
0 answers
213 views

Datadog custom metrics from app (docker container) inside host

I have a datadog agent in my host machine, CentOS. I have a nodeJS application, where I want to send custom metrics from it. Config from app: var StatsD = require('hot-shots'); var dogstatsd = new ...
TheUnreal's user avatar
  • 129
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
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
1 vote
1 answer
57 views

Clicking a Google query link logs user out of session

I have a curious situation with my NodeJS server: it seems like searching for the website on Google signs out the user. The homepage is https://emocoes.org/pt/inicio. I sign in to the website and the ...
miguelmorin's user avatar
0 votes
1 answer
508 views

PM2 cluster mode additional processes use wrong script path

I have a nodejs app running on a server with the following ecosystem.config.js: module.exports = { apps : [ { name : "app.website.com", script : "/...
jdog's user avatar
  • 131
1 vote
1 answer
7k views

`nohup: failed to run command 'node': No such file or directory` when running script through ssh

I have a remote server in which I serve a webserver using node (express) and nginx. I have a ./devops/deploy.sh script which starts the webserver and restarts nginx. Said script works correctly if I ...
ffigari's user avatar
  • 113
0 votes
1 answer
50 views

Does Azure web app support out of the box managed clustering and mulit-region failover for node.js?

I have read through as much documentation as I can find, and I cant see an answer to this. MS say hosting of node.js is possible, but they don't seem to say what options, if any, there are for ...
eos's user avatar
  • 551
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
77 views

How do you make nodejs server

This is some of the code in nodejs. const app = express(); const server = app.listen(3000); app.use(express.static("public")); console.log("Server is running"); const io = socket(...
Leo's user avatar
  • 1
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
0 votes
0 answers
709 views

How to pass https requests to http in nginx

I have a self signed certificate, I deployed my front end react app on nginx which is served by using HTTPS but front end is making call to back-end spring-boot app over HTTP and when i check inspect ...
Satish Lamak's user avatar
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
0 answers
679 views

content type is returned as text/html while the expected is application/json

some endpoints are returning the content type as text/html while the expected is application/json causing CORS error in the client side. when requesting from my localhost or from the server's IP ...
Diaa Saber'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
1 answer
862 views

Sharing a Let's Encrypt certificate with a node websocket connection on the same domain? Possible? Advisable?

Is it possible / advisable to register and renew a Let's Encrypt certificate through Nginx for https, and share that same certificate on a websocket connection (wss://) on the same domain? The ...
Jon's user avatar
  • 103
0 votes
1 answer
792 views

My Node.js droplet can't connect to DigitalOcean Managed redis

I have a Parse Server (which is a Node.js server basically) and I'm trying to connect to a redis database, which is hosted on DigitalOcean Managed Databases. Both servers are on the same VPC network ...
Sotiris Kaniras's user avatar
0 votes
1 answer
380 views

Why doesn’t my DigitalOcean load balancer forward traffic to Parse Servers?

Today I created a load balancer and assigned to it 3 droplets (all 3 host parse servers), but it doesn't transfer the traffic to them. It doesn’t even pass the health checks! All 3 of my parse servers,...
Sotiris Kaniras's user avatar
0 votes
1 answer
134 views

Apache2 server getting so many unusal requests again and again

I am trying to configure the WordPress and NodeJS website together and I am using an apache2 server and ubuntu(20.04) virtual machine. I configured both applications successfully on my machine but ...
Piyush Mittal'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
3k views

react.js app with nginx gives 404 or refresh

I have a backend node.js application(system directory) and a frontend react application(admin directory). I use nginx as the webserver. I can load my frontend well. But when I refresh, it gives 404. I ...
user1641443's user avatar
0 votes
0 answers
4k views

NodeJs app working when started using npm start, but not with PM2

Very new to server stuff, sorry if this may be a noob question. Problem I am trying to run React and Node/express on a server. React does work and when I start my node app via npm start the server ...
Tommy's user avatar
  • 101
0 votes
1 answer
820 views

Safari cannot open my website

After two years of running a website (https://emocoes.org), today for the first time it does not open on Safari. It opens on other browsers (Firefox, Chrome, Chromium, Opera), but on Safari I see: ...
miguelmorin's user avatar
0 votes
1 answer
240 views

How do I host Node.js and WordPress sites on the same domain name with a different server?

I would like to host 2 different applications on a different server. For eg www.example.com redirected the NodeJS application - Server A & www.example.com/blog redirected the WordPress ...
Kishore's user avatar
  • 231
0 votes
0 answers
311 views

NodeJS stops listening on port 443

We are having a big problem with nodejs intermittently not listening on port 443. Development claims that this is because node cannot connect to the Mongo database. However, when I get an alert the ...
Stephen Carville's user avatar
0 votes
0 answers
217 views

Apache reverse proxy to Node server bypass

I have an Apache server that is working as a reverse proxy to a node server. I'm trying to bypass the proxy for a static file i.e. ads.txt I have the following conf: <Files "ads.txt">...
John Sourcer'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
1 answer
6k views

NGINX reverse proxy doesn't work with swagger-ui-express

I am using NGINX to proxy_pass all requests with prefix /auth/ to a nodejs api server at localhost:3000. I have this single config file /etc/nginx/sites-enabled/default3.conf: server { ...
xceeded's user avatar
0 votes
1 answer
3k views

Blocked loading mixed active content

I am using react as my font end, and nodejs as backend which is running on localhost:3016 and I used nginx as reverse proxy and load balancer; this my nginx conf file for the site upstream ...
Metasebiya Mulugeta's user avatar

1
2
3 4 5
21