Lost my site again during an update yesterday

Hello colleagues,

Hope you are all okay, I was doing an update yesterday and through my forum admin panel, but for some reason, my site hit a snag the update couldn’t complete, and the site is in accessible, it bring 502 error when I try to access it,
Anybody with how I can recover it step by step?

1 Like

I’d suggest trying the update again from the command line.

1 Like

Yeah, I have been doing that, but it has failed to rebuild. I have even tried to remove broken containers and rebuild fresh ones but still causing errors when I try to restore the site

Were there any errors in the rebuild logs that could help point to what’s gone wrong?

Do you have any plugins installed in your app.yml?

You can enter the discourse directory and try rebuilding.

If the update is failing, the reason should appear on the screen during the update. You’ll want to scroll back and carefully read through it to look for failure errors.

In my experience, updates typically fail because of disk space issues! Discourse needs more space during updating than during normal operation. Try running:

./df -h 

and you will see how much storage you have. Running ./launcher cleanup app from /var/discourse will remove any unused containers. I jus did this on one of my self-hosted sites and disk space usage went down from 83% to 54%!

Another place to recover space can be your backups; if you are keeping too many of them they will take over your drive. You can remove older ones from /var/discourse/shared/standalone/backups/default and then try the update again.