Site Not Opening, How Can I Know What's Wrong?


Please is not opening

How can I know what is wrong?

The server is running and I have restarted it several times.

1 Like

Your Ping goes to request timed out.

This can be due to a firewall preventing connections to your server or discourse not running.

Can you ssh into your server and do

cd /var/discourse
docker ps

It will give you an output to verify if your discourse container is actually running or not.

1 Like

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/r
un/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/json: dial unix /va
r/run/docker.sock: connect: permission denied

Pls, how do I resolve this?

Are You performing this as root? If not then try

sudo docker ps

If it still reports the same issue then Your docker is probably not running. You’ll need to find out how docker was installed to restart it.

running it as root did not throw the error.

See what i got in the screenshot below

Discourse isn’t running try this:

cd /var/discourse
./launcher start app

this returned :

starting up existing container

  • /usr/bin/docker start app
    Error response from daemon: driver failed programming external connectivity on endpoint ap
    p (9076151599bb0371571888de949fc4c3e747160792902ea5c483536fabaf99cc): Error starting userl
    and proxy: listen tcp bind: address already in use
    Error: failed to start containers: app

docker info :

/var/discourse# docker info
Containers: 1
Running: 0
Paused: 0
Stopped: 1
Images: 9
Server Version: 18.09.2

Please run

netstat -alpn | grep 80

And share your output

Ps: You need to update docker

see output :

/var/discourse# netstat -alpn | grep 80
tcp6       0      0 :::80                   :::*                    LISTEN      911/apache2
tcp6       0      0     SYN_RECV    -          
tcp6       0      0     SYN_RECV    -          
tcp6       0      0      SYN_RECV    -          
tcp6       0      0     SYN_RECV    -          
unix  2      [ ACC ]     STREAM     LISTENING     19680    816/dockerd          /var/run/do
unix  3      [ ]         STREAM     CONNECTED     17604    809/systemd-logind   
unix  2      [ ]         DGRAM                    18293    809/systemd-logind   
unix  2      [ ]         DGRAM                    18283    806/rsyslogd         
unix  3      [ ]         STREAM     CONNECTED     18299    809/systemd-logind   
unix  3      [ ]         STREAM     CONNECTED     18099    816/dockerd

You have apache2 running on Your server, it needs to be stopped and uninstalled before you could start discourse docker.


service apache2 stop
apt purge apache* -y
cd /var/discourse
./launcher start app

thanks but the purge command threw this error :

Append sudo to the command e.g.:

sudo -i
service apache2 stop
apt purge apache* -y
cd /var/discourse
./launcher start app

Wow! It works. Site back online!

happy gif

Thanks so much!