Rebuilding Forum (Restoring back-up works, rebuilding does not)

I host the forum through Digital Ocean, and it’s been ~1 year since I’ve rebuilt the instance through the terminal.

./launcher rebuild app

I was originally following the steps here (Install plugins on a self-hosted site) to add a plugin, and the rebuild instance failed. I would see this error message after restarting:

" The software powering this discussion forum encountered an unexpected problem"

I restored the forum using a back-up, and as a sanity check without modifying any code (i.e. app.yml file), I went through the rebuild app sequence again. Even then, the rebuild and start sequence would lead to the same error message above.

Thoughts on next troubleshooting steps?

Plug-Ins:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/discourse-math.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-subscriptions.git
          - sudo -E -u git clone https://github.com/VaperinaDEV/discourse-guest-gate-theme-component.git

It’s best to share the transcript, the log, of what you got from the rebuild command in the command line.

(It’s possible you haven’t waited long enough for the services to start up. You should wait at least five minutes before concluding that the website is unreachable.)

2 Likes

/logs should have some helpful info, and /safe-mode in no_plugins mode should allow you to at least sign in (which should let you view /logs if you’re an admin)

1 Like

did you try to disable some of the plugins?
sometimes plugins cause problems; try to disable all then enable them one by one to see which one is causing the problem.

You can remove this as well as it’s a theme component and should be installed in the Cutomize section of the admin area rather than in your app.yml.

2 Likes