Jump to content

Docker service fail to start after power outage


Altheran

Recommended Posts

Posted

Title says it all.

 

Im away, get a notification from my user that a service is not working.

 

Remote in, web UI, Docker, and at the top, a message that the docker service failed to start.

 

Go in Settings / Docker. Enable Docker @ No, apply, @  yes apply, then all is good.

 

So

 

1. Why ?

 

2. How can I make it so that the system  restart the services on fail ? (Shouldn't it ?)

   (Would there be a cron job / user script i could use for that ?)

 

Thanks

 

 

Posted
2 hours ago, John_M said:

Corrupted docker.img file, possibly? A common casualty of unforeseen power outages.

But then a manual docker off/on should not be able to have it all going fine again ...

Posted

There is no suspicion, My docker img is working fine, I don't want the hasle myself with rebuilding all my dockers for nothing.

 

can't there just be a watch guard on the docker service to restart it if it fails ?

Posted
4 minutes ago, Altheran said:

There is no suspicion, My docker img is working fine,

But it wasn't.  It must've revived itself though.

4 minutes ago, Altheran said:

I don't want the hasle myself with rebuilding all my dockers for nothing.

The link provided shows a semi-hassle way of rebuilding to docker.img.  Utilizing the apps tab, and previous apps section is actually zero-hassle.

 

5 minutes ago, Altheran said:

can't there just be a watch guard on the docker service to restart it if it fails ?

Sure.  But what if you then get into a situation where it fails to start again.  You wind up in a loop of start - restart - restart - restart which is going to play havoc with your system.

Posted
6 minutes ago, Altheran said:

I don't want the hasle myself with rebuilding all my dockers

 

That link to that old post makes it seem harder than it really is. After recreating docker.img, you just go to Community Applications - Previous Apps and tell it to reinstall all of them. They will be reinstalled using the same settings as before, including your appdata.

Posted

Well, This happened for the last 3 power outages, all since I am on 6.4 (was on beta before).

For each of these "Docker Service Failed to start" all I had to do is : Go in docker Settings, Turn the docker service off, apply, turn it on, apply, and all is good.

 

What I suspect is that the docker Service tries to start too fast.

 

So we can go and rebuild the docker img all we want, but I'd still want to know if there would be a script that could run 5 min after start to do a one time check if the docker service is running, if not, turn it off then on again. :)

 

Posted
4 minutes ago, Altheran said:

Well, This happened for the last 3 power outages, all since I am on 6.4 (was on beta before).

Time to buy a (bigger) UPS?

Posted
23 minutes ago, wayner said:

And unRAID has a plugin to help manage the UPS.

It's true there is a NUT plugin, but UPS management has been built-in for quite some time and should support most UPS that is compatible with APC without installing any plugin.

Posted

Sorry - I guess it is just built into the core system no need for a plugin.  And I would highly recommend a UPS for any and all servers that you would have.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...