UPStart errors on Xenial with systemd
Martinx - ジェームズ
thiagocmartinsc at gmail.com
Mon Apr 4 21:49:33 UTC 2016
On 4 April 2016 at 17:53, Serge Hallyn <serge.hallyn at ubuntu.com> wrote:
> Quoting Martinx - ジェームズ (thiagocmartinsc at gmail.com):
> > On 31 March 2016 at 00:24, Martinx - ジェームズ <thiagocmartinsc at gmail.com>
> > wrote:
> >
> > > On 30 March 2016 at 17:46, Serge Hallyn <serge.hallyn at ubuntu.com>
> wrote:
> > >
> > >> Quoting Martinx - ジェームズ (thiagocmartinsc at gmail.com):
> > >> > On 30 March 2016 at 14:08, Serge Hallyn <serge.hallyn at ubuntu.com>
> > >> wrote:
> > >> >
> > >> > > Quoting Martinx - ジェームズ (thiagocmartinsc at gmail.com):
> > >> > > > Guys,
> > >> > > >
> > >> > > > Almost all daemons that I install on Xenial, I'm seeing the
> > >> following
> > >> > >
> > >> > > Hi,
> > >> > >
> > >> > > could you give a specific example?
> > >> > >
> > >> > > thanks,
> > >> > > -serge
> > >> > >
> > >> > > > error:
> > >> > > >
> > >> > > > ---
> > >> > > > initctl: Unable to connect to Upstart: Failed to connect to
> socket
> > >> > > > /com/ubuntu/upstart: Connection refused
> > >> > > > ---
> > >> > > >
> > >> > > > It is running systemd by default, so, why those upstart jobs
> are
> > >> called?
> > >> > >
> > >> >
> > >> > Sure! Here are the examples...
> > >> >
> > >> > apt install apache2
> > >> > .....
> > >> > Enabling conf serve-cgi-bin.
> > >> > Enabling site 000-default.
> > >> > initctl: Unable to connect to Upstart: Failed to connect to socket
> > >> > /com/ubuntu/upstart: Connection refused
> > >> > insserv: warning: script 'cron' missing LSB tags and overrides
> > >> > insserv: Default-Start undefined, assuming empty start runlevel(s)
> for
> > >> > script `cron'
> > >> > insserv: Default-Stop undefined, assuming empty stop runlevel(s)
> for
> > >> > script `cron'
> > >> > Processing triggers for systemd (229-3ubuntu1) ...
> > >> > ....
> > >>
> > >> I'm not seeing htat. could you show the output of
> > >>
> > >> dpkg -l | egrep -e '(systemd|upstart|init)'
> > >>
> > >> ?
> > >>
> > >
> > > Mmm... Interesting...
> > >
> > > Here it is:
> > >
> > > https://paste.ubuntu.com/15564855/
> > >
> > > This box was upgraded from Ubuntu 14.04...
> > >
> >
> > More interesting, my 16.04 Desktop, that I installed from Xenial ISO,
> > doesn't have this problem, only if upgrade from 14.04...
>
> eureka - the key is /etc/init.d/cron. If it is a symbolic link to
> /lib/init/upstart-job, then upstart ends up being called at some
> point. In systems which did not start at 14.04, cron is its own
> sysvinit file. Reinstatating the full file on an upgraded system
> fixes this.
>
> Not sure whether this should be fixed in cron itself, or elsewhere...
>
> -serge
>
Mmmm... I have the following files under /etc/init.d:
Symlink:
cron -> /lib/init/upstart-job
And a file:
cron.dpkg-new
Maybe, during "do-release-upgrade" from 14.04 to 16.04, it didn't upgraded
that file / link...
This looks like an upgrade bug!
How to manually fix it?
rm /etc/init.d/cron
mv /etc/init.d/cron.dpkg-new /etc/init.d/cron
?
Cheers!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20160404/7451326c/attachment.html>
More information about the ubuntu-server
mailing list