Bug 39447 - docker sometimes not running after invoke-rc.d docker restart
docker sometimes not running after invoke-rc.d docker restart
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Docker
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Daniel Tröder
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-30 19:21 CEST by Arvid Requate
Modified: 2015-11-17 12:11 CET (History)
4 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional): Troubleshooting
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2015-09-30 19:21:50 CEST
The docker daemon sometimes is not running after an /etc/init.d/docker restart.

This seems to happen because the stop action doesn't wait till the daemon is actually stopped. And the daemon sometimes seems to take a couple of seconds to exit. And then the start action doesn't do anything, because at that moment it's still there. Some seconds later the daemon exits.

I suggest adding at least the option "--retry TERM/30" to the
"start-stop-daemon --stop" call to make it wait. We had similar issues with the samba init script, where we even added sth like --retry TERM/30/KILL. Don't know if that's useful here. I would rather do --retry TERM/300, because the start-stop-daemon actually checks about every second, and I#d rather allow it to wait a bit longer rather than messing up the restart.

Btw.: Please mention the Bug # in the leading lines of the svn patch.

See also Bug #39273

+++ This bug was initially created as a clone of Bug #38549 +++
Comment 1 Daniel Tröder univentionstaff 2015-10-05 16:03:39 CEST
Added "--retry TERM/300" in r64228.
Comment 2 Arvid Requate univentionstaff 2015-10-05 20:02:17 CEST
Ok
Comment 3 Stefan Gohmann univentionstaff 2015-11-17 12:11:32 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

If this error occurs again, please use "Clone This Bug".