Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Docker service fail to start after power outage

Featured Replies

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

 

 

better yet would be diagnostics so that we can see what's going on.

  • Author

I see that in the logs :

 

Error starting daemon: Unable to get the TempDir under /var/lib/docker: chown /var/lib/docker/tmp: no such file or directory

  • Author

Reviving it, thanks !

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

  • Author
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 ...

It's simplicity itself to rebuild the docker.img. If there's any suspicion it might be corrupt it's worth doing anyway.

  • Author

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 ?

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.

  • Community Expert
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.

  • Author

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. :)

 

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?

  • Author
2 hours ago, wayner said:

Time to buy a (bigger) UPS?

 

Time to buy one at all xD

And unRAID has a plugin to help manage the UPS.

  • Community Expert
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.

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.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.