Bind for 0.0.0.0:443 failed: port is already allocated

[Solution]

  1. Update the Docker Container
  2. Stop the Container
  3. Run rebuild

I missed step 1 and 2. Because the instructions on the UI said to only to run step 3 using the console.

  1. To update the Docker Container
apt-get update
apt-get dist-upgrade lxc-docker
  1. Stop the Docker Container
docker container ps
docker stop containerID
  1. Manual Upgrade of Docker Container
cd /var/discourse/
git pull
./launcher rebuild app

You may have to run the launcher twice.

Reason for Error “bind was already in use”>> Trying to upgrade the discourse while container is running.

I hope this helps someone.

5 Likes