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

Configure Apache Web Server (shared hosting) to provide simultaneous Web and Websocket Access

I'm trying since some days to find a way to configure simultaneous websocket and web server connections with one same Apache Web Server I have on a shared hosting basis. Now, before giving that up and ...
DevelJoe's user avatar
  • 187
0 votes
1 answer
266 views

secure reverse proxy apache server still getting requests to other domains in access log

I've been trying to setup apache (port 80) as a reverse proxy to a nodejs server (port 3000) and I made the mistake of launching my apache server with ProxyRequests On. I discovered this error after ...
Dan's user avatar
  • 3
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
0 votes
1 answer
1k views

Cannot reach Node.js application over HTTPS

I have an node.js application that is running on port 3000. Infront of it i run an nginx reverse proxy. It works fine for port 80. I have tried to install an certificate with certbot. Now i have the ...
Ilijanovic's user avatar
1 vote
1 answer
3k views

NPM issue, where to start

Hopefully this is the right forum to post. Coming stack overflow but I think this is more you guys' expertise. I have a centos 6.10 box. It had Node.js and npm running ok. I don't know which versions ...
Aaron's user avatar
  • 113
6 votes
1 answer
53k views

how to fix apache2 "proxy_http:error" AH01102: error reading status line from remote server localhost:4382

how to fix apache2 "proxy_http:error" AH01102: error reading status line from remote server localhost:4382. I have an apache2 webserver which is being used to serve few nodejs applications in the ...
devops-admin-jacky's user avatar
0 votes
0 answers
242 views

nginx - dns resolution in njs

I need to solve a simple DNS query using njs in nginx. I've searched but it seems that there isn't a 'native' function for doing this. So I'm trying to use dns-lookup module for node.js I've ...
Fabio's user avatar
  • 55
1 vote
3 answers
3k views

How to remove the trailing slashes from a URL with nginx

I'm trying to remove trailing slashes from urls. I searched a lot and tried some solutions but they didn't work form me. I tried this one rewrite ^/(.*)/$ /$1 permanent; but it leaves one slash ...
Igor Oleniuk's user avatar
1 vote
1 answer
514 views

Is this configuration for email is secure?

I am using nodemailer package with node.js to sending mails, and I am not sure about security. The host I've received is working only with this configuration (also with port 587): const transporter ...
Hunja's user avatar
  • 13
5 votes
3 answers
5k views

NodeJS React Systemd Service not working

I am trying to set up a systemd service for a simple react application. This application is hosted in /home/myuser/test. Both npm and node are in the PATH and hard linked to /usr/bin. All the files ...
Nissy A.W.'s user avatar
1 vote
1 answer
295 views

gcloud deploy not making dist folder

Admittedly, I'm a novice at GCloud. I "inherited" a project abandoned by the previous developer. I'm trying to deploy a node app on the app engine. The app won't start because it can't find the ...
Mike Hogan's user avatar
0 votes
1 answer
566 views

How to stop an application started with NPM's forever start?

I started a NodeJS application with forever start app.js. The code had a bug and the server is not running and not responding. When I launch it again with npm start, I see that the port is already in ...
miguelmorin's user avatar
0 votes
0 answers
412 views

NodeJS libstdc error on CentOS 6.10 (EasyApache,cPanel)

I have installed NodeJS 8.9.3 and that was running perfectly. but after that i have started a project and that needs NodeJS Version > 10.0 so i updated my NodeJS 8.9.3 to currently stable version via ...
Shubham Panchal's user avatar
0 votes
1 answer
3k views

How to install Node.js 12 on CentOS 8?

I tried the following this post which states Application Streams are typically named for the version of the software that is included, e.g. nodejs:8 or nodejs:10 [...] ... but as you can see ...
leonheess's user avatar
  • 144
0 votes
0 answers
38 views

My server does not respond

I would like to have an address for my website like this : meteo.xyz.com I own the domain xyz.com I redirected the traffic from my domain to the digital ocean dns in my domain name provider : meteo ...
C Taque's user avatar
  • 123
0 votes
1 answer
62 views

Scheduled Copy Bigquery View/Query to Google Sheet

I have a BigQuery View/Query that every morning I need to run and copy the result to a Google Sheet. I am using Javascript, and plan to use the node.js BigQuery client library and the Google Sheets ...
Max888's user avatar
  • 111
0 votes
1 answer
44 views

How to load fabric client certs in google cloud function?

I'm trying to create a cloud function which includes certificate file in nodejs. Below is the code which I'm trying to execute: exports.invoke = async function(req, res) { const walletPath = ...
Harry's user avatar
  • 1
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
1 answer
32k views

what can cause Nginx "Connection reset by peer" when upstream is healthy?

On an AWS Beanstalk deployment (single server) the Nginx server talking to the NodeJS/Express server on the same host occasionally complains about lost connections to upstream. 2020/03/23 10:52:43 [...
Udo G's user avatar
  • 443
2 votes
0 answers
91 views

How do I create a web dev environment using a linux command line without a GUI/OS? [duplicate]

Sorry if this is a stupid question or it doesn't make sense. Basically what I'm trying to do is put my local web development project (using Nodejs/Express and MongoDB) onto a server that only ...
Emily's user avatar
  • 121
0 votes
0 answers
30 views

Nginx non-'base' location into base proxy_pass, location not being inherited in frontend

I can't figure out how to word the question properly, but I'm pretty sure someone has encountered this problem already and I just can't figure out what keywords I should be looking for. So here's the ...
ZekiraDrake's user avatar
0 votes
1 answer
5k views

How to update yum repositories to fetch newer versions of nodejs and related ones in CentOS 7?

I'd like to update certain packages. The latest versions are not presented. $ sudo yum list nodejs Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: centos1.hti.pl * ...
Kirby's user avatar
  • 1,059
0 votes
1 answer
1k views

Docker race condition leading to curl error "transfer closed with 1 bytes remaining to read"

It is hard to fully describe our problem. However, I will try my best to provide full information. I spent many hours and still stuck. Hope that anyone here can help me. Currently, our container ...
Sang's user avatar
  • 101
0 votes
1 answer
70 views

Nginx with node app with existing application

I am completely new to nginx and I am trying to set something up so that it is possible to navigate from an existing application on a remote server to a node application. The node app will be on the ...
Metaman's user avatar
  • 103
1 vote
1 answer
1k views

Cloudfront disrupting authentication with JSON Web Token

Short version: my jwt token is not surviving a refresh when pointing to domain behind Cloudfront. Not sure if this is best posted here or on stackoverflow, but since I think I've isolated the problem ...
djibouti33's user avatar
1 vote
0 answers
2k views

Axios in a Node.js container on Kubernetes is returning “ECONNREFUSED 127.0.0.1:30561”?

Full error message: connect ECONNREFUSED 127.0.0.1:30561 at TCPConnectWrap.afterConnect The axios request is running in a Node.js environment (Next.js), which is where the error occurs, strangely the ...
thatguyjono's user avatar
2 votes
3 answers
1k views

Apache 2 handling requests very slow after Restart

We have a GPS device socket handling server using NodeJS which sends the received HTTPS request to Apache installed server and saving the data into MySQL Database. When we restart NodeJS or Apache ...
jAddict's user avatar
  • 23
0 votes
1 answer
1k views

Node JS on Windows : Becomes slow when OS update is processing

I currently have a 4-core windows server. On this server, I installed a nodejs Server (API rest). It works perfectly without latency. However when I start a windows update for the server, nodejs ...
Oytoch's user avatar
  • 1
0 votes
1 answer
2k views

Apache reverse proxy to nodejs server on CentOS 7.7 (WHM)

I'm trying to setup an apache reverse proxy when accessing mysite.com to 127.0.0.1:3001, by setting up a virtual host in the WHM > Apache Configuration > Include Editor > Post VirtualHost Include (all ...
vstruhar's user avatar
  • 101
1 vote
1 answer
623 views

SSL on a Parse Server

I have a production mobile app running on Parse Server, hosted on DigitalOcean. This is my setup: Droplet no1: Parse Server and Dashboard Droplet no2: MongoDB And this is how the client connects to ...
Sotiris Kaniras's user avatar
0 votes
0 answers
111 views

IPv6 enabled but cannot ping or make HTTP requests

After being forced to use IPv6 for connections because of a CGN my ISP uses, I tried to set up a proof-of-concept node.js server to see if it was working. To note, this is my first time ever working ...
Catalin Termure's user avatar
1 vote
2 answers
2k views

How can I proxy_pass all addresses after a location / with nginx?

I'm running a node.js application called serve that shows the files and folders from a specific path of my computer on a webpage: This application works fine by itself and I see no error messages ...
Rafael Muynarsk's user avatar
0 votes
1 answer
9k views

How to solve python POST response 405 [closed]

How to solve python POST response 405? import requests import json from requests.auth import HTTPBasicAuth myHeaders = { 'accept': 'application/json', 'content-type': 'application/json', 'X-Killbill-...
Sukhen Santra's user avatar
1 vote
1 answer
2k views

How do I send secure cookies using node and a ProxyPass/ProxyPassReverse (Httpd/Amazon linux)

I am still pretty new but I am using an Amazon linux image and httpd to encrypt and decrypt SSL requests. Then I Proxy those messages to and from a NodeJS app running on port 3001. To do this I have ...
Jackie's user avatar
  • 171
0 votes
1 answer
2k views

Cannot set up port proxy with NodeJS, React, Apache, and LetsEncrypt

I've got the following server setup (Ubuntu 19.04): NodeJS (Express) backend on port 3333 React frontend in /var/www/example.com Apache with LetsEncrypt and automatic http > https redirect I'm ...
lowercasename's user avatar
0 votes
2 answers
402 views

Ubuntu 16 server cannot access it's own port 80

When I listen on port 80 with NodeJS v10 all other machines can access the port but the machine itself cannot. This is very strange, and is the same for loopback and the eth0 IP address. However, it ...
Arlen Beiler's user avatar
0 votes
2 answers
1k views

Ubuntu server cannot be accessed from eth0 address on same machine

I have a Ubuntu 16.04 VM and when I run curl http://192.168.254.42 (the eth0 IP address) it quickly replies with connection refused. However, the server is definitely listening on 0.0.0.0 and can be ...
Arlen Beiler's user avatar
1 vote
0 answers
83 views

Encrypting communication between between Microservice in my company and AWS

I am dealing with communication between microservices. Microservice A - Angular6/django Microservice B - NodeJS My Microservice A is in company network and Microservice B is in AWS. we need to find ...
Raveendar V's user avatar
0 votes
1 answer
356 views

Running a NodeJS App 24x7

I have a nodejs webapp that connects as a client to a websocket and sends me push notifications whenever certain events occur. It also has functionality to send requests to a REST API based on ...
philosopher's user avatar
0 votes
0 answers
4k views

(111: Connection refused) while connecting to upstream, client

I'm trying to setup an Nodejs/Express api on elastic beanstalk, and I'm pretty new to it. I'm getting this message in the error.log: 2019/10/02 17:04:17 [error] 5515#0: *15 connect() failed (111: ...
schoenbl's user avatar
  • 101
1 vote
1 answer
3k views

Incorrect MIME type when reverse proxying nodejs app with nginx using regex in location

I'm self-hosting a jekyll site with jekyll-admin for editing. jekyll-admin adds a nodejs based admin panel. I want to be able to access this over the internet via a nginx reverse-proxy. jekyll 4.0....
scytale's user avatar
  • 111
1 vote
1 answer
256 views

Production-ready Node/React app - memory utilization issues

I have an app that is deployed on AWS using ECS and recently facing some issues with memory utilization. To give you a little background: Our app is Node.js (specifically Sails.js) backend with ...
Aaron's user avatar
  • 183
0 votes
1 answer
247 views

How to push code in GitHub bare repo with private / public keys [closed]

I have a server where I have a bare repo with a node.js application. I pushed the code without the node_modules and installed them directly on the Server. Heres my problem: The changes (node_modules) ...
Johann Süß's user avatar
1 vote
0 answers
501 views

nodemailer with virtualmin and postfix - authentication failed

Im using virtual min. I have a working email account [email protected] I can login through webmin / virtual min and send emails. Now I want to send mails from node.js using nodemailer. Btw this ...
Flion's user avatar
  • 181
0 votes
1 answer
104 views

I have an AWS Elastic Beanstalk - Node.js running on 64bit Amazon Linux/4.10.2. What server is it running?

When I ssh into the EC2 instance and look around the server configuration files, I see Apache config files, NGINX config files. Why are both servers there? Which one takes priority? Do both servers ...
V.Villacis's user avatar
0 votes
1 answer
36 views

What files in node.js do I need?

I am planning to download node.js onto my server. I already have all the node_modules I need elsewhere. Does this mean I can delete the folder called node_modules in nodejs?
Jaden Chaca's user avatar
0 votes
1 answer
808 views

Elassandra "action_request_validation_exception"

Elasticsearch DEBUG: 2019-09-23T09:23:39Z starting request { "method": "HEAD", "castExists": true, "path": "/my_keyspace", "query": {} } Elasticsearch TRACE: 2019-09-23T09:23:39Z ...
Max0999's user avatar
  • 213
-1 votes
1 answer
59 views

What does Node.JS support on a hosting plan mean? [closed]

As I was browsing various hosting plans, I noticed that some offer Node.JS support. If a host does not offer Node.JS; Can I log in, download, and install Node.JS support myself if the host supports ...
Jaden Chaca's user avatar
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

1
3 4
5
6 7
21