I just had the oddest experience doing a simple reboot of my Amazon Lightsail instance.
Did the reboot… waited for restart.
Got “502 Gateway Error - Nginx” error message screen on some (I assume uncached) pages). Waited a bit…
Did a discourse rebuild via shell.
Got an error message that rebuild failed.
Use ./discourse-doctor - Also failed.
Disabled non-official plugins and rebuilt - Also failed.
Thought I was screwed. And while doing more research checked the forum again only to find it working okay. Which makes zero sense considering discourse doc’s immediate response was WARNING! App not even running!
My theory is that this might be more do do with Amazon’s burstable limits that anything else. Being that the reboot may have strained the server and that was causing some initial issue with the 502s, but certainly the rebuild shot my server up to 70-80% of burst limits and maybe there was no system resources to run the rebuild scripts?
So my ultimate question is (as this has been something plaguing the update rebuild process), is there a way to limit the update scripts load on the server and not have it freak out? I mean this is an 8GB Ram instance so it’s not that weak, etc.
Thanks… and now I have taken 2 Ativan for no reason.
I try another update soon and update this. I didn’t save the log file and running updates spikes my burst zone pretty badly (especially after running it 3 times), so I needed to wait a day or so to get my burst levels back up.
Seeding default
*** Bundling assets. This will take a while ***
$ RUBY_GC_MALLOC_LIMIT_MAX=20971520 RUBY_GC_OLDMALLOC_LIMIT_MAX=20971520 RUBY_GC_HEAP_GROWTH_MAX_SLOTS=50000 RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR=0.9 bundle exec rake themes:update assets:precompile
Updating Dark...
Failed to update Dark
about.json contains invalid values: Maximum discourse version is invalid
And now my forum is completely down and 500 erroring.
Why would that happen? I would have thought the update only replaces the current working forum once the process is finalized and doesn’t run into issues?
The theme component is deprecated and Discourse refuses to use it.
BUt if you do a ./launcher rebuild app then it takes down the container to build the new one (because it’s using the same database files). If the build fails, then you need to restart the container to get it running again.
Yeah I noted the update actually was complete on all the other elements once I deleted the Dark and Alternate Logos components everything was updated in the update screen.