Report this

What is the reason for this report?

Second App in same Dokku Not Working

Posted on April 20, 2021

Hi There, I have followed tutorials to deploy a SECOND Node application in the same DOKKU Droplet

The Deploy has been successful and domains are setup

But even stoping the first application … the SECOND ONE do not reply to hist app name.domain.com

The NGix report display the bellow information … IBILLS IS THE WORKING APP SINVEST IS THE NOT WORKING Nginx access log path: /var/log/nginx/ibills-access.log Nginx bind address ipv4: Nginx bind address ipv6: :: Nginx error log path: /var/log/nginx/ibills-error.log Nginx hsts: true Nginx hsts include subdomains: true Nginx hsts max age: 15724800 Nginx hsts preload: false Nginx proxy read timeout: 60s Nginx last visited at: 1618934367 =====> sinvest nginx information Nginx access log path: /var/log/nginx/sinvest-access.log Nginx bind address ipv4: Nginx bind address ipv6: :: Nginx error log path: /var/log/nginx/sinvest-error.log Nginx hsts: true Nginx hsts include subdomains: true Nginx hsts max age: 15724800 Nginx hsts preload: false Nginx proxy read timeout: 60s Nginx last visited at: 1618934031



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

It seems that you are having trouble running your second Node application on a single Dokku Droplet. Although the logs you’ve provided don’t indicate a distinct reason why this is happening, it’s possible that there might be a problem with how NGINX or Dokku is configured.

Here are a couple of things to check:

  • Port Binding: Ensure that your two node.js applications are set to listen on different ports. Unfortunately, two applications cannot listen on the same port at the same time, and this can stop an application from responding.
  • NGINX Configuration: Check that NGINX is properly configured to forward requests to your second Node app. Incorrect proxy settings could be the reason your second app is not responding.

Please refer to the DigitalOcean Dokku tutorial for further help:

How To Use the Dokku One-Click DigitalOcean Image to Run a Node.js App

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.