Unable restore Discourse

Hello,

after an issue with the server I am no longer able to reinstall Discourse. Currently the error is 502 Bad Gateway.
This is the log of SSH.

root@xxxx:/var/discourse# ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/discourse/pups.git/': Could not resolve host: github.com
454737c0eb0bd833434e8313b89e4641c90ff57e291f7c9b3ca7a895a9181abc
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
root@xxxx:/var/discourse# ./launcher rebuild app
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
cd /pups && git pull && /pups/bin/pups --stdin
fatal: unable to access 'https://github.com/discourse/pups.git/': Could not resolve host: github.com
ac1e181261d864ce64d2939199b3c7f79715679c594254b2208bafc1b97d3ee1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

Can you curl https://github.com?

Yes I can do it, it respond the web page

1 Like

I solved it like this. I removed from the Docker:

  • Ngix

  • Redis

  • Discourse

    cd /var/discourse
    ./launcher stop app
    cd /var
    sudo rm -rf discourse

And reinstalled Discourse with setup.

The issue was the “communication” between Docker/ Discourse. I had tried to remove Ngix and Redis but the problem persisted. I don’t know why.

The error on plesk was: Error: {"message":"no such image: discourse/base: No such image: discourse/base:latest"}

2 Likes