Altheran Posted February 4, 2018 Share Posted February 4, 2018 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 Quote Link to comment
Squid Posted February 4, 2018 Share Posted February 4, 2018 better yet would be diagnostics so that we can see what's going on. Quote Link to comment
Altheran Posted February 5, 2018 Author Share Posted February 5, 2018 There Diags ! And I would still like to know how to automate a fail safe thanks ! untheran-diagnostics-20180204-2353.zip Quote Link to comment
Altheran Posted February 5, 2018 Author Share Posted February 5, 2018 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 Quote Link to comment
Altheran Posted February 10, 2018 Author Share Posted February 10, 2018 Reviving it, thanks ! Quote Link to comment
John_M Posted February 10, 2018 Share Posted February 10, 2018 Corrupted docker.img file, possibly? A common casualty of unforeseen power outages. Quote Link to comment
Altheran Posted February 10, 2018 Author Share Posted February 10, 2018 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 ... Quote Link to comment
John_M Posted February 10, 2018 Share Posted February 10, 2018 It's simplicity itself to rebuild the docker.img. If there's any suspicion it might be corrupt it's worth doing anyway. Quote Link to comment
Altheran Posted February 13, 2018 Author Share Posted February 13, 2018 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 ? Quote Link to comment
Squid Posted February 13, 2018 Share Posted February 13, 2018 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. Quote Link to comment
trurl Posted February 13, 2018 Share Posted February 13, 2018 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. Quote Link to comment
Altheran Posted February 13, 2018 Author Share Posted February 13, 2018 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. Quote Link to comment
wayner Posted February 13, 2018 Share Posted February 13, 2018 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? Quote Link to comment
Altheran Posted February 13, 2018 Author Share Posted February 13, 2018 2 hours ago, wayner said: Time to buy a (bigger) UPS? Time to buy one at all Quote Link to comment
wayner Posted February 14, 2018 Share Posted February 14, 2018 And unRAID has a plugin to help manage the UPS. Quote Link to comment
trurl Posted February 14, 2018 Share Posted February 14, 2018 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. Quote Link to comment
wayner Posted February 14, 2018 Share Posted February 14, 2018 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.