All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

Install nodejs 20 on Debian Bullseye in Docker

I have Debian in a Docker container, and was installing NodeJS like this: RUN curl -sL https://deb.nodesource.com/setup_18.x | bash ;\ apt-get update; \ apt-get install -y nodejs It worked ...
Lee Goddard's user avatar
0 votes
0 answers
87 views

Exposing ports on VPS

I'm running some services inside Docker and been having some issues with it: I have a NodeJS app (TLS stream communication) running on a custom port (let's say 2321). I exposed the port from my ...
Matic's user avatar
  • 1
0 votes
0 answers
73 views

Seemly NodeJS restart | Docker vs PM2 vs Both?

I have a NodeJS application that wraps a large obfuscated JavaScript file and utilizes it to run computations. The issue is the JavaScript file has a memory leak, and required fairly frequent restart ...
Nick W.'s user avatar
  • 167
0 votes
0 answers
102 views

Mixed content error nginx+docker container

I have an EC2 with Nginx setup & there are a few containers running inside. There's a Node JS gateway which is serving some of the requests in a webpage hosting in this Nginx server. Nginx is not ...
serverstackqns'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
75 views

NGINX waiting 60 seconds before processing request for NodeJS application

I have a NodeJS (ExpressJS) application containerized on Docker that is exposed through an NGINX reverse proxy also containerized on Docker. Sometimes, a request sent to NGINX takes 60 seconds before ...
mwryl's user avatar
  • 101
0 votes
1 answer
380 views

What (low priority thread) is causing 100% CPU usage in my node alpine container?

I have a node alpine docker container (hosted on Azure) which periodically reaches 100% CPU usage. However, running the top or htop command shows no threads having high CPU usage. How do I find out ...
zapdev's user avatar
  • 1
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
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
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
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
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
1 vote
1 answer
294 views

How to assign which user to execute commands inside the container in AWS FARGATE

i'm trying to launch a nodejs container using AWS FARGATE, the problem i'm facing is that fargate gives me this error : cannot find this module "/path/to/file/webrtc.js" And when i execute ...
logax's user avatar
  • 129
0 votes
1 answer
340 views

What's so good about having a job queue?

I am currently building an API that sends transactional emails to users. I do this with a job queue, bull in particular. During development, something crossed my mind; where are these jobs actually ...
Jonathan van de Groep's user avatar
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
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
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
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
1 answer
1k views

What is the right way to put Nginx in front of a Node.js Docker app for AWS ECS deployment?

We have a Node.js/Express application that is deployed as Docker containers into AWS ECS. This app has a few static resources (CSS, JS), and I would like requests for these assets to bypass Node.js ...
Ralph's user avatar
  • 105
1 vote
1 answer
570 views

What is the major difference between AWS Elastic Beanstalk & Docker. Which one should i use?

I just started learning about Amazon elastic beanstalk, and it seems very good and useful. However, it seems like Docker can be used for the same thing. AWS EB let's you create environments in Node....
samceena's user avatar
  • 161
5 votes
1 answer
11k views

Azure Web App (Linux): “Error: Container didn't respond to HTTP pings on port: 8080” - when using: “start”: “pm2 start server.js”

My App Service Linux instance crashes if my node app is using the start script: "start": "pm2 start server.js": 2019-04-15 11:36:34.432 ERROR - Container crime-digest__6ea5_0 for site crime-...
Edmond Tamas's user avatar
1 vote
1 answer
310 views

Node.js UDP listener inside Docker container reports packets' source IP unreliably

I have a Node.JS application receiving UDP packets, which I have recently moved into a Docker container for easy deployment. The application relies on distinguishing multiple UDP streams based on the ...
foucdeg's user avatar
  • 111
1 vote
1 answer
983 views

Is my docker node application using all available CPUs?

I've got a node app built using a standard node-alpine docker image deployed to Azure App Service. The App Service Plan is set to use 2-core VMs (instance type S2). A single node process will only use ...
jiggy's user avatar
  • 123
1 vote
1 answer
65 views

Modify running GAE flex node app

We wanted to make a quick change to a running GAE application to enable logging of queries to trace a bug. SSH'ing into a running instance it can be hard to find where the app code is stored due to ...
ChrisJ's user avatar
  • 295
1 vote
0 answers
216 views

Why same request has different response times?

I have an API (built with nodejs) and deployed on a kubernetes cluster using a docker image. For default route I simply return a Hello World QA! message. I am testing response times of this GET ...
user22817's user avatar
  • 215
0 votes
0 answers
20 views

High performance, high availability backend configuration [duplicate]

We have a mobile app project which at this moment gets very low traffic (few server hits per day) but due to potential cooperation with a big company we might soon start serving as much as 500.000 ...
choxnox's user avatar
  • 21
-1 votes
1 answer
146 views

Digital Ocean Droplet running Docker -> Jenkins -> Docker -> Jest is shutting down

I have a droplet running docker that runs jenkins. I have a jenkins pipeline that runs docker and a node test with jest. It seems like when it gets to the test stage it collapses the whole server. ...
ThomasReggi'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
11 votes
2 answers
12k views

docker-compose for nginx and nodejs server

I have the following docker-compose.yml file: version: '3' services: server: build: context: ../../ dockerfile: ./packages/website/Dockerfile command: node ...
dagda1's user avatar
  • 247
0 votes
1 answer
678 views

Could not login to docker container

I am trying to run my node.js app and mongodb using docker compose. I could setup the containers successfully as follows. The site is also working. But I could not login into the containers. docker ...
Thirupathi Govindharaj's user avatar
1 vote
0 answers
361 views

Azure App Service Deployment not closing Node.js WebSockets connection

Background I'm having trouble with an Azure App Service Deployment. I'm using VSTS to do the deployment using the Azure App service Deploy feature. I'm deploying a Docker container to a Linux App ...
Sawtaytoes's user avatar
0 votes
1 answer
3k views

How do I tell what ports are being listenend on by processes inside a docker container?

Docker newbie here. I am running a node.js utility inside a docker container. This utility is supposed to start a web server, but I don't know if its working. What can I use to see which ports are ...
Joon's user avatar
  • 147
0 votes
1 answer
4k views

Running Node.js on Docker Busybox

I'm trying to build a minimal node.js docker image. I have compiled node on my Debian system, it installs/works well. Correct me if I'm wrong, to my understanding it should be enough of copying node....
NarūnasK's user avatar
  • 368
1 vote
2 answers
131 views

Why is Docker downloading so much when installing NodeJS? [closed]

I have a simple Dockerfile: FROM node:4.2.2 EXPOSE 8000 When I run docker build -t myapp ., it shows the size of downloaded stuff: Which seems larger than 200Mb though NodeJS itself is not larger ...
Sergei Basharov's user avatar
0 votes
1 answer
86 views

Using GIT to push to several node instances in docker containers

I am planning to setup a Docker environment with several docker containers for various services. These services include a few node instances of the same website. I develop on my local machine and ...
Karl Morrison's user avatar
4 votes
2 answers
2k views

Auto-scaling docker containers based on EC2 instance load and SQS

I'll start with a small description of how my application works.. If a user on my website adds a task, the task is broken down into multiple sub-tasks, the number can vary from 1 to 10 tasks. These ...
dylanfa88's user avatar
54 votes
12 answers
190k views

Docker COPY issue - "no such file or directory"

In my Dockerfile I have the following 'COPY" statement: # Copy app code COPY /srv/visitor /srv/visitor It should go without saying that in my host system, under the "/srv/visitor" directory, there ...
dlyk1988's user avatar
  • 1,674
2 votes
0 answers
896 views

Using Docker and Vagrant with Node and Express

So before I start, I'm new to this and since I learn best when I give myself a project I wanted to user Vagrant and Docker to make a simple Node and Express server with a shared folder outside of the ...
RidableCthulu's user avatar
2 votes
1 answer
2k views

docker development with Node.js and binary node_modules [closed]

I am working on a docker image for a development environment for my Node.js app. When running the docker image, a volume is mounted so that the source code of my app is shared with the container from ...
freewil's user avatar
  • 21