Caprover Brain Fart - A fix but still a mystery.

Caprover does some weird shit once in a while. I am not sure what is happening but once in a blue moon its main NGINX container likes to eat a big bowl of boot loops for breakfast. I have been unable to find a direct explanation within any sort of logs or monitoring within Caprover or Docker.

Caprover Brain Fart - A fix but still a mystery.

Caprover does some weird shit once in a while. I am not sure what is happening but once in a blue moon its main NGINX container likes to eat a big bowl of boot loops for breakfast. I have been unable to find a direct explanation within any sort of logs or monitoring within Caprover or Docker.

Once it occurs at an opportune time I will include some recent screens and logs.

The same goes for any applications running for that matter too but every so often, typically right before I need to go to work or I am just about to get three hours sleep before I go to work I'll get hit with this face full of pocket sand. I did find out that mail services when using Poste.io were unaffected, just everything else.

I did find a fix:

Troubleshooting ยท CapRover
<br/>

Unfortunately no meta or schema from Caprover here, just HTML... So I will cut to the chase if you are getting this case of boot loops too. First things first if you have not already:

ALWAYS SAVE A COPY OF ALL CUSTOM NGINX CONFIGS LOCALLY.

The next thing is pop open a session to your server either as root or sudo, shut down captain, run a clear custom NGINX script, restart captain, and reapply your functional changes with the following commands:

sudo docker service scale captain-captain=0    

sudo docker run -it --rm -v /captain:/captain  caprover/caprover /bin/bash -c "wget https://raw.githubusercontent.com/caprover/caprover/master/dev-scripts/clear-custom-nginx.js ; node clear-custom-nginx.js ;" && docker service scale captain-captain=1 && echo "OKAY"

Poof! You should be back up and running, paste in your functioning custom NGINX configs back in for your apps and save them.

If anyone out there eventually figures out the source of these shenanigans I would love to know. Fire me a link over on the fediverse and will tattoo your name on my soul.