Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

654
Views
connect() failed (111: Connection refused) while connecting to upstream Nodejs Elastick Beanstalk

I have a log nodejs backend code here and it runs on port 8080.

process.env.PORT = 8080 in the environment varisbles.

var port = process.env.PORT;
app.listen(port, ()=> {
    console.log("Port is", port);
})

It connects to the databse as I see the output in the log file :

Port is 8080

I get an error in the log file with the following.

/var/log/nginx/error.log
----------------------------------------
connect() failed (111: Connection refused) while connecting to upstream, client: 777.77.7.777, server: , request: "GET / HTTP/1.1", upstream: "http://111.1.1.1:8080/", host: "666.66.66.666"

Does anyone know why it errors? Should the host: be my elastic beanstalk url by any chance?

If you need any additinal info let me know!

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!