Kan Discourse niet herstellen

AI-generated summary

A user is unable to restore Discourse due to a 502 Bad Gateway error and issues with Docker containers. The logs show a failure to access GitHub, but the user confirms they can reach https://github.com. After troubleshooting, the user resolves the issue by stopping the Discourse app, removing Docker containers (Nginx, Redis, Discourse), deleting the Discourse directory, and reinstalling Discourse from scratch. The initial problem was related to communication between Docker and Discourse, with an error indicating a missing image: discourse/base:latest. zuli65 zuli65

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

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"}