Serious problem with /lib/lsb/init-dunctions.d/01-upstart-lsb
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Ubuntu server 14.10 with xfce4 desktop
Any attempt to halt samba with either "service samba stop" or "/etc/init.d/samba stop" fails with the following message:
stop: Unknown instance:
Examining /etc/init.d/samba shows that stop issues:
stop)
Running "/etc/init.d/smbd stop" and "/etc/init.d/nmbd stop" manually work properly.
Running "/etc/init.
I added "set -x" to the stop of the samba-ad-dc script and observed the following:
# samba-ad-dc stop
+ PIDDIR=
+ SAMBAPID=
+ unset TMPDIR
+ test -x /usr/sbin/samba -a -r /etc/samba/smb.conf
+ . /lib/lsb/
+ run-parts --lsbsysinit --list /lib/lsb/
+ [ -r /lib/lsb/
+ . /lib/lsb/
+ unset UPSTART_SESSION
+ _RC_SCRIPT=
+ [ -r /etc/init/
+ which initctl
+ initctl version
+ grep -q upstart
+ exit 0
I restarted samba and then tried the following:
#/etc/init.
+ PIDDIR=
+ SAMBAPID=
+ unset TMPDIR
+ test -x /usr/sbin/samba -a -r /etc/samba/smb.conf
+ . /lib/lsb/
+ run-parts --lsbsysinit --list /lib/lsb/
+ [ -r /lib/lsb/
+ . /lib/lsb/
+ unset UPSTART_SESSION
+ _RC_SCRIPT=
+ [ -r /etc/init/
+ _UPSTART_
+ [ -r /etc/init/
+ which initctl
+ initctl version
+ grep -q upstart
+ initctl status samba-ad-dc
+ exec stop samba-ad-dc
stop: Unknown instance:
Note that the functions in /lib/lsb/
if [ -r "/etc/init/
&& initctl version 2>/dev/null | grep -q upstart
to fail. The "unknown instance" message must be issued from /sbin/initctl.
More investigation needs to be done. I will report any additional information I discover. I see a lot of different bug reports related to this "stop: Unknown instance:" message, and I wonder if they are not all related.
affects: | ubuntu → samba (Ubuntu) |
tags: | added: utopic |
Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https:/ /wiki.ubuntu. com/Bugs/ FindRightPackag e. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.
To change the source package that this bug is filed about visit https:/ /bugs.launchpad .net/ubuntu/ +bug/1415651/ +editstatus and add the package name in the text box next to the word Package.
[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]