Discourse won't start because port 80 is in use

So, I was trying to run ./launcher start app but then I keep getting this error:

root@Roblox-Development:/var/discourse# ./launcher start app

starting up existing container
+ /usr/bin/docker start app
Error response from daemon: driver failed programming external connectivity on endpoint app (73771b238a3c9cdb51c4976f9548e695f4d1a9b0a4605c33eb3d857a8206cffc): Error starting userland proxy: listen tcp 0.0.0.0:80: bind: address already in use
Error: failed to start containers: app

Anyway to fix it?

Extra Info:

I also ran these 2 commands ONLY.

sudo add-apt-repository ppa:nginx/stable -y
sudo apt-get update && sudo apt-get install nginx
1 Like

listen tcp 0.0.0.0:80: bind: address already in use

check your host ports usage, the nginx may binding 80 by default that you need to stop nginx.

1 Like

I’d just like to note the launchpad ppa **is not ** actively maintained by nginx. If you really want the latest version take a look at the install instructions.

You’ve installed nginx on the server and haven’t tweaked discourse to run behind a reverse proxy.

follow this guide for help

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.