Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2019-01-11 Thread Olaf Meeuwissen

On 2018-12-29 Olaf Meeuwissen wrote:

> On 2018-11-12, Olaf Meeuwissen wrote:
>
>> [...]
>>
>> When upgrading a package that provides a daemon, I expect the upgrade to
>> shut down the daemon provided by the old version and start the one from
>> the new version.  I do not want anything to "muck" with that, be that
>> daemontools or anything else.
>> Keeping an otherwise running daemon running is a different story.
>>
>> I checked to /var/lib/dpkg/info/docker-ce.{prerm,postinst} scripts.  For
>> 18.06.1~ce~3-0~debian these include calls to invoke-rc.d to stop and
>> start the daemon.  As of 5:18.09.0~3-0~debian-stretch these calls are
>> gone.  The only stop/start mechanism supported is systemd :-(
>> Ditto for containerd.io :-(
>>
>> FWIW, I've submitted https://github.com/docker/for-linux/issues/482
>
> I've been working with upstream and submitted a patch a couple of days
> ago.  Yesterday that patch was merged onto the 18.09 branch and cherry
> picked on the master branch of docker-ce-packaging.  The next release
> of the docker-ce package should have working sysvinit support again.

The next release is out (5:18.09.1~3-0~debian-stretch) and the upgrade
didn't quite go as smoothly as I had hoped for :-/

# But then again, upstream merged my changes before I thoroughly tested
# them ;-)

Before upgrading, you should stop a running Docker Engine.  You can do
so with

  $ sudo invoke-rc.d docker stop

Please note that this will take down any running containers.

If you happened to apt upgrade before doing so, you'll see something
like the following:

  $ sudo apt upgrade
  [...]
  Preparing to unpack .../docker-ce_5%3a18.09.1~3-0~debian-stretch_amd64.deb ...
  Unpacking docker-ce (5:18.09.1~3-0~debian-stretch) over 
(5:18.09.0~3-0~debian-stretch) ...
  Setting up containerd.io (1.2.2-1) ...
  Processing triggers for man-db (2.7.6.1-2) ...
  Setting up docker-ce-cli (5:18.09.1~3-0~debian-stretch) ...
  Setting up docker-ce (5:18.09.1~3-0~debian-stretch) ...
  update-alternatives: using /usr/bin/dockerd-ce to provide /usr/bin/dockerd 
(dockerd) in auto mode
  [] Starting Docker: dockerinvoke-rc.d: initscript docker, action "start" 
failed.
  dpkg: error processing package docker-ce (--configure):
   subprocess installed post-installation script returned error exit status 1
  Errors were encountered while processing:
   docker-ce

Fixing up isn't very difficult.  Just stop the daemon and configure any
pending packages, like so:

  $ sudo invoke-rc.d docker stop
  $ sudo dpkg --configure --pending

After the upgrade, start the daemon again with:

  $ sudo invoke-rc.d docker start

Whether or not containers that were running before you stopped the
daemon will be restarted depends on their restart policy.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-12-28 Thread Olaf Meeuwissen

On 2018-11-12, Olaf Meeuwissen wrote:

> [...]
>
> When upgrading a package that provides a daemon, I expect the upgrade to
> shut down the daemon provided by the old version and start the one from
> the new version.  I do not want anything to "muck" with that, be that
> daemontools or anything else.
> Keeping an otherwise running daemon running is a different story.
>
> I checked to /var/lib/dpkg/info/docker-ce.{prerm,postinst} scripts.  For
> 18.06.1~ce~3-0~debian these include calls to invoke-rc.d to stop and
> start the daemon.  As of 5:18.09.0~3-0~debian-stretch these calls are
> gone.  The only stop/start mechanism supported is systemd :-(
> Ditto for containerd.io :-(
>
> FWIW, I've submitted https://github.com/docker/for-linux/issues/482

I've been working with upstream and submitted a patch a couple of days
ago.  Yesterday that patch was merged onto the 18.09 branch and cherry
picked on the master branch of docker-ce-packaging.  The next release
of the docker-ce package should have working sysvinit support again.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-11-14 Thread Ozi Traveller
Hi Olaf

I, like you installed docker-ce from Docker Inc. And am very interested for
this bug to be fixed.

ozi

On Wed, Nov 14, 2018 at 8:49 PM Olaf Meeuwissen 
wrote:

> Hi Dan,
>
> Daniel Reurich writes:
>
> > On 13/11/18 00:57, Olaf Meeuwissen wrote:
> >> Steve Litt writes:
> >>
> >>> On Fri, 09 Nov 2018 22:13:16 +0900
> >>> Olaf Meeuwissen  wrote:
> >>>
>  [ ... docker-ce upgrade fails to restart daemon on Devuan ... ]
>  [ ... same upgrade restarted daemon just fine on Debian ... ]
>  [ ... suspecting docker-ce to only cater to systemd ... ]
> >>
> >> For the record, the approximately monthly upgrades of docker-ce have
> >> been smooth sailing since 17.10 or thereabouts.  This is the first time
> >> I observed trouble.
> >>
> >>> This kind of thing is exactly why I started running daemontools on top
> >>> of sysvinit. I found that for some things, sysvinit was just to
> >>> complicated to easily troubleshoot.
> >>>
> >>> Nobody uses daemontools anymore. They use runit (with the sysvinit
> >>> pID1) instead.
> >>
> >> When upgrading a package that provides a daemon, I expect the upgrade to
> >> shut down the daemon provided by the old version and start the one from
> >> the new version.  I do not want anything to "muck" with that, be that
> >> daemontools or anything else.
> >> Keeping an otherwise running daemon running is a different story.
> >>
> >> I checked to /var/lib/dpkg/info/docker-ce.{prerm,postinst} scripts.  For
> >> 18.06.1~ce~3-0~debian these include calls to invoke-rc.d to stop and
> >> start the daemon.  As of 5:18.09.0~3-0~debian-stretch these calls are
> >> gone.  The only stop/start mechanism supported is systemd :-(
> >> Ditto for containerd.io :-(
> >>
> >> FWIW, I've submitted https://github.com/docker/for-linux/issues/482
> >
> > File a bug against the debian package, because policy dictates they
> > should still handle the sysvinit case.
>
> I'm using the docker-ce package from Docker Inc.  There is no docker-ce
> package in Debian.  There was a docker.io in Debian jessie and I just
> saw that it is available for buster and sid but that is not what I am
> using.  Hence, I filed a bug at what I think is the most correct place.
>
> I might give docker.io a try again someday but right now I don't have
> the time.
>
> Hope this helps,
> --
> Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
>  GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
>  Support Free Softwarehttps://my.fsf.org/donate
>  Join the Free Software Foundation  https://my.fsf.org/join
> ___
> Dng mailing list
> Dng@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
>
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-11-14 Thread Olaf Meeuwissen
Hi Dan,

Daniel Reurich writes:

> On 13/11/18 00:57, Olaf Meeuwissen wrote:
>> Steve Litt writes:
>>
>>> On Fri, 09 Nov 2018 22:13:16 +0900
>>> Olaf Meeuwissen  wrote:
>>>
 [ ... docker-ce upgrade fails to restart daemon on Devuan ... ]
 [ ... same upgrade restarted daemon just fine on Debian ... ]
 [ ... suspecting docker-ce to only cater to systemd ... ]
>>
>> For the record, the approximately monthly upgrades of docker-ce have
>> been smooth sailing since 17.10 or thereabouts.  This is the first time
>> I observed trouble.
>>
>>> This kind of thing is exactly why I started running daemontools on top
>>> of sysvinit. I found that for some things, sysvinit was just to
>>> complicated to easily troubleshoot.
>>>
>>> Nobody uses daemontools anymore. They use runit (with the sysvinit
>>> pID1) instead.
>>
>> When upgrading a package that provides a daemon, I expect the upgrade to
>> shut down the daemon provided by the old version and start the one from
>> the new version.  I do not want anything to "muck" with that, be that
>> daemontools or anything else.
>> Keeping an otherwise running daemon running is a different story.
>>
>> I checked to /var/lib/dpkg/info/docker-ce.{prerm,postinst} scripts.  For
>> 18.06.1~ce~3-0~debian these include calls to invoke-rc.d to stop and
>> start the daemon.  As of 5:18.09.0~3-0~debian-stretch these calls are
>> gone.  The only stop/start mechanism supported is systemd :-(
>> Ditto for containerd.io :-(
>>
>> FWIW, I've submitted https://github.com/docker/for-linux/issues/482
>
> File a bug against the debian package, because policy dictates they
> should still handle the sysvinit case.

I'm using the docker-ce package from Docker Inc.  There is no docker-ce
package in Debian.  There was a docker.io in Debian jessie and I just
saw that it is available for buster and sid but that is not what I am
using.  Hence, I filed a bug at what I think is the most correct place.

I might give docker.io a try again someday but right now I don't have
the time.

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-11-12 Thread Daniel Reurich
On 13/11/18 00:57, Olaf Meeuwissen wrote:
> Steve Litt writes:
> 
>> On Fri, 09 Nov 2018 22:13:16 +0900
>> Olaf Meeuwissen  wrote:
>>
>>> [ ... docker-ce upgrade fails to restart daemon on Devuan ... ]
>>> [ ... same upgrade restarted daemon just fine on Debian ... ]
>>> [ ... suspecting docker-ce to only cater to systemd ... ]
> 
> For the record, the approximately monthly upgrades of docker-ce have
> been smooth sailing since 17.10 or thereabouts.  This is the first time
> I observed trouble.
> 
>> This kind of thing is exactly why I started running daemontools on top
>> of sysvinit. I found that for some things, sysvinit was just to
>> complicated to easily troubleshoot.
>>
>> Nobody uses daemontools anymore. They use runit (with the sysvinit
>> pID1) instead.
> 
> When upgrading a package that provides a daemon, I expect the upgrade to
> shut down the daemon provided by the old version and start the one from
> the new version.  I do not want anything to "muck" with that, be that
> daemontools or anything else.
> Keeping an otherwise running daemon running is a different story.
> 
> I checked to /var/lib/dpkg/info/docker-ce.{prerm,postinst} scripts.  For
> 18.06.1~ce~3-0~debian these include calls to invoke-rc.d to stop and
> start the daemon.  As of 5:18.09.0~3-0~debian-stretch these calls are
> gone.  The only stop/start mechanism supported is systemd :-(
> Ditto for containerd.io :-(
> 
> FWIW, I've submitted https://github.com/docker/for-linux/issues/482
> 
File a bug against the debian package, because policy dictates they
should still handle the sysvinit case.



-- 
Daniel Reurich
Centurion Computer Technology (2005) Ltd.
021 797 722



signature.asc
Description: OpenPGP digital signature
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-11-12 Thread Olaf Meeuwissen
Hi Jaromil,

Jaromil writes:

> dear devs,
>
> while maintaining and using at work the repos based on Olaf's good
> work here https://hub.docker.com/u/dyne/
>
> I can report that while using docker-ce 5:18.09.0~3-0~debian-buster
> on my Devuan Beowulf installation
>
> no problem is seen, can just /etc/init.d/docker start

The fact that you have to do that is the issue ;-/
On Ascii, I did the same and things are working smoothly.

> I hope this is useful info, not sure I'm missing the point here.
> In any case thanks for opening the issue Olaf, I've subscribed to it.

Thanks,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-11-12 Thread Jaromil

dear devs,

while maintaining and using at work the repos based on Olaf's good
work here https://hub.docker.com/u/dyne/

I can report that while using docker-ce 5:18.09.0~3-0~debian-buster
on my Devuan Beowulf installation

no problem is seen, can just /etc/init.d/docker start

I hope this is useful info, not sure I'm missing the point here.
In any case thanks for opening the issue Olaf, I've subscribed to it.

ciao

___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-11-12 Thread Olaf Meeuwissen
Steve Litt writes:

> On Fri, 09 Nov 2018 22:13:16 +0900
> Olaf Meeuwissen  wrote:
>
>> [ ... docker-ce upgrade fails to restart daemon on Devuan ... ]
>> [ ... same upgrade restarted daemon just fine on Debian ... ]
>> [ ... suspecting docker-ce to only cater to systemd ... ]

For the record, the approximately monthly upgrades of docker-ce have
been smooth sailing since 17.10 or thereabouts.  This is the first time
I observed trouble.

> This kind of thing is exactly why I started running daemontools on top
> of sysvinit. I found that for some things, sysvinit was just to
> complicated to easily troubleshoot.
>
> Nobody uses daemontools anymore. They use runit (with the sysvinit
> pID1) instead.

When upgrading a package that provides a daemon, I expect the upgrade to
shut down the daemon provided by the old version and start the one from
the new version.  I do not want anything to "muck" with that, be that
daemontools or anything else.
Keeping an otherwise running daemon running is a different story.

I checked to /var/lib/dpkg/info/docker-ce.{prerm,postinst} scripts.  For
18.06.1~ce~3-0~debian these include calls to invoke-rc.d to stop and
start the daemon.  As of 5:18.09.0~3-0~debian-stretch these calls are
gone.  The only stop/start mechanism supported is systemd :-(
Ditto for containerd.io :-(

FWIW, I've submitted https://github.com/docker/for-linux/issues/482

Hope this helps,
--
Olaf Meeuwissen, LPIC-2FSF Associate Member since 2004-01-27
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9
 Support Free Softwarehttps://my.fsf.org/donate
 Join the Free Software Foundation  https://my.fsf.org/join
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng


Re: [DNG] [FYI] Docker upgrade fails to restart daemon

2018-11-09 Thread Steve Litt
On Fri, 09 Nov 2018 22:13:16 +0900
Olaf Meeuwissen  wrote:

> Hi,
> 
> I've been using Docker's docker-ce package for Debian (stretch) on
> Devuan (ascii) just fine for quite a while.  However, last night's
> automated upgrade on two of my Devuan servers left them without a
> running dockerd :-(
> 
> A quick `invoke-rc.d docker start` got the daemon back up but I still
> had to restart up some of the containers manually :-(
> 
> The same upgrade went without any problems on a Debian server.  Looks
> like the Docker folks only cater to systemd setups :-(((
> 
> Upgrading from 18.06.1~ce~3-0~debian to 5:18.09.0~3-0~debian-stretch
> also pulls in docker-ce-cli and containerd packages so it could be
> that the issue is with one of these packages only catering to systemd
> setups. If so, I suspect containerd but haven't looked at the pre-
> and postinst scripts yet.
> 
> FTR, the /etc/apt/sources.list.d/docker.list on all three machines is
> 
>   deb https://download.docker.com/linux/debian stretch stable edge

This kind of thing is exactly why I started running daemontools on top
of sysvinit. I found that for some things, sysvinit was just to
complicated to easily troubleshoot.

Nobody uses daemontools anymore. They use runit (with the sysvinit
pID1) instead.

 
SteveT

Steve Litt
November 2018 featured book: Manager's Guide to Technical
Troubleshooting Brand new, second edition
http://www.troubleshooters.com/mgr
___
Dng mailing list
Dng@lists.dyne.org
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng