Docker fails to start


aitkinst

Recommended Posts

I was having an issue with Plex on one of my clients and decided to restart the plex docker app.  When I hit restart it didn't seem to come back up for some reason, I'm not sure if I wasn't patient enough so I tried to restart it again and nothing so when I refreshed the page I noticed the plex icon was now listed as an orphan and the only option was to remove it.  I was perplexed (no pun intended) and thought the best course of action was to restart the whole unraid system and figured it would come back online.  When I did this Docker didn't start at all, the syslog says starting docker but I have no tabs and navigate to tower/Docker.

 

Help!  I don't even know where to begin with troubleshooting this.  I'm guessing I corrupted the plex image and need to get rid of it but don't know how.

Link to comment

Depending upon which Plex container you're using, it may have been trying to autoupdate itself with a new version on the restart.  This can take some time.  Usually you can follow through its progress by clicking the Log button for the container on the docker page, or via the drop down on the dashboard.

 

Probably the easiest solution right now would be to stop docker, delete the image, then re-add the container.  All of your existing data will still be there.

 

 

Link to comment

Docker won't even start.  I was thinking about trying to find the image manually and delete I can always build a new plex image not too painful but I'd like to save everything else if possible.

 

Am I correct in assuming its one of the folders under /var/lib/docker/containers

Technically, you are correct.  But that path is actually stored within the docker.img file.  Delete the .img file  Restart unRaid for good measure and try again.

 

Or, you should be able to to just click on the orphaned image and remove it.  But, with the weird thing happening to you, I would think it be prudent to just start over.  Re-Add the containers via Add Container and the my* user templates, and after the download is complete it will be like nothing ever happened.

Link to comment

Yeah so I looked at each of those folders and none of them are Plex.  It appears the orphan is hiding some place else.  I guess thats why its orphaned.

 

Are you meaning I should delete the /mnt/cache/docker/docker.img won't that delete all my containers?

 

I decided to try to stop and start Docker from the gui and the syslog output this:

Sep 5 22:04:12 Tower php: /usr/local/emhttp/plugins/dynamix.docker.manager/event/stopping_svcs

Sep 5 22:04:12 Tower php: Stopping Docker...

Sep 5 22:04:12 Tower logger: stopping docker ...

Sep 5 22:04:12 Tower logger: unmounting docker loopback

Sep 5 22:04:18 Tower emhttp: /usr/bin/tail -n 42 -f /var/log/syslog 2>&1

Sep 5 22:04:33 Tower php: /usr/local/emhttp/plugins/dynamix.docker.manager/event/started;/usr/local/emhttp/plugins/dynamix.docker.manager/dockerupdate.php

Sep 5 22:04:33 Tower php: Starting Docker...

Sep 5 22:04:33 Tower logger: starting docker ...

Sep 5 22:04:46 Tower php: Updating templates... Updating info...

Sep 5 22:04:46 Tower php: Warning: stream_socket_client(): unable to connect to unix:///var/run/docker.sock (No such file or directory) in /usr/local/emhttp/plugins/dynamix.docker.manager/dockerClient.php on line 505

Sep 5 22:04:46 Tower php: Couldn't create socket: [2] No such file or directory Done.

Sep 5 22:04:51 Tower emhttp: /usr/bin/tail -n 42 -f /var/log/syslog 2>&1

Link to comment

From that snippet, it would appear to me (could however be wrong) that there is some corruption in the image.  You can try running a scrub from the docker settings page.

 

Yes you are correct that my suggestion of deleting the img also deletes the containers.  But, the great thing about docker is that as long as you add the container back via the user-templates (the my* templates on the add-container page), and have set up the config folders to be stored in something like /mnt/cache/appdata (ie: outside the docker.img), as soon as the container finishes downloading, its back exactly the same way it was before.  All of your tv shows are already scanned, etc.

 

It also wouldn't hurt to upgrade to 6.1, since you are still on 6.0.1  (unless there is still a plugin you require that's incompatible with 6.1) - But that has nothing to do with this issue

 

Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.