Closed Elbullazul closed 5 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
If the container isn't progressing past that point then something is fundamentally broken as that's before any of the mastodon services try to start or any attempt to connect to databases/redis/etc are made.
The only possible issue is related to a huge /config mount and a poor-performing filesystem, in which case you can try setting NO_CHOWN=true
to skip the permissions checks and see if that allows it to start.
thanks for the suggestion, I'll test this when I can and report back if it works
it does indeed allow the container to start faster. Is there any downside of using this option?
Only that you have to keep your own permissions in order. Not generally an issue but some platforms like Unraid have a habit of messing with permissions on the host side, which is why we chown on startup by default.
It will eventually start regardless, but if you've got a big server and/or not great storage, it can take upwards of 10 minutes to complete the process, even if it doesn't have to actually change any permissions because it still has to walk the whole /config mount to check.
gotcha, so I shouldn't have any problems using vanilla debian + docker?
I wouldn't expect to, no; the only caveat is when setting up a new instance you need to make sure NO_CHOWN=true
isn't set on first run.
It will eventually start regardless, but if you've got a big server and/or not great storage, it can take upwards of 10 minutes to complete the process, even if it doesn't have to actually change any permissions because it still has to walk the whole /config mount to check.
This was an important piece of information for me, thanks!
Is there an existing issue for this?
Current Behavior
Once an unexpected container shutdown happens (ex. power loss of the server), the container will start up again, but mastodon won't, even after waiting a long time.
I found some errors in
/config/log/nginx/error.log
, but they don't seem related?Expected Behavior
The container should be able to recover after an unexpected shutdown.
Steps To Reproduce
using keys found in /config/keys
Environment
CPU architecture
x86-64
Docker creation
Container logs