Samba doesn't start automatically in Ubuntu 12.04 LTS

Bug #1009291 reported by RobertMatijasec
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
Expired
Medium
Unassigned

Bug Description

smbd and nmbd never get launched by upstart in Ubuntu 12.04 LTS after installing samba with apt-get. Samba works fine but must be kicked off by the user or worked around by running the server out of some other init script.
The system in question here only has wlan0 set and eth0 is not being used.
samba version 3.6.3.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: samba 2:3.6.3-2ubuntu2.2
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic-pae 3.2.16
Uname: Linux 3.2.0-24-generic-pae i686
ApportVersion: 2.0.1-0ubuntu8
Architecture: i386
Date: Tue Jun 5 19:15:30 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386 (20120423.2)
NmbdLog:

OtherFailedConnect: Yes
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SambaServerRegression: Yes
SmbConfIncluded: Yes
SourcePackage: samba
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
RobertMatijasec (matijasec) wrote :
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug.

You say that only wlan0 is up. Is wlan0 set up to start at boot, or only at user login? Samba should start as soon as a network interface other than loopback comes up.

If wlan0 is coming up at boot, then is samba trying to start and failing, or is it not trying to start? (The smblog.txt unfortunately doesn't tell me when those failures happened relative to other system activity)

Changed in samba (Ubuntu):
status: New → Incomplete
importance: Undecided → Medium
Revision history for this message
RobertMatijasec (matijasec) wrote : Re: [Bug 1009291] Re: Samba doesn't start automatically in Ubuntu 12.04 LTS

I'm not sure when wlan0 gets set. I don't know how to check for this
offhand, but if you let me know what to look for I'll let you know. That
being said, I haven't changed whatever the default setting is for the 12.04
alternate ubuntu install cd. I just have a wireless card in the machine and
never hook up the network card. I think the other thing it keys off is some
file systems flag and I don't know when this is valid either--ie. before or
after user login.

even still, you'd think I wouldn't have to manually kick it off after user
login. It's like the wlan0 doesn't ever set the networking flag.

On Wed, Jun 6, 2012 at 10:21 PM, Serge Hallyn <email address hidden>wrote:

> Thanks for reporting this bug.
>
> You say that only wlan0 is up. Is wlan0 set up to start at boot, or
> only at user login? Samba should start as soon as a network interface
> other than loopback comes up.
>
> If wlan0 is coming up at boot, then is samba trying to start and
> failing, or is it not trying to start? (The smblog.txt unfortunately
> doesn't tell me when those failures happened relative to other system
> activity)
>
> ** Changed in: samba (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: samba (Ubuntu)
> Importance: Undecided => Medium
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1009291
>
> Title:
> Samba doesn't start automatically in Ubuntu 12.04 LTS
>
> Status in “samba” package in Ubuntu:
> Incomplete
>
> Bug description:
> smbd and nmbd never get launched by upstart in Ubuntu 12.04 LTS after
> installing samba with apt-get. Samba works fine but must be kicked off by
> the user or worked around by running the server out of some other init
> script.
> The system in question here only has wlan0 set and eth0 is not being used.
> samba version 3.6.3.
>
> ProblemType: Bug
> DistroRelease: Ubuntu 12.04
> Package: samba 2:3.6.3-2ubuntu2.2
> ProcVersionSignature: Ubuntu 3.2.0-24.39-generic-pae 3.2.16
> Uname: Linux 3.2.0-24-generic-pae i686
> ApportVersion: 2.0.1-0ubuntu8
> Architecture: i386
> Date: Tue Jun 5 19:15:30 2012
> InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release i386
> (20120423.2)
> NmbdLog:
>
> OtherFailedConnect: Yes
> ProcEnviron:
> TERM=xterm
> PATH=(custom, no user)
> LANG=en_US.UTF-8
> SHELL=/bin/bash
> SambaServerRegression: Yes
> SmbConfIncluded: Yes
> SourcePackage: samba
> UpgradeStatus: No upgrade log present (probably fresh install)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1009291/+subscriptions
>

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

> I'm not sure when wlan0 gets set. I don't know how to check for this
> offhand, but if you let me know what to look for I'll let you know.

If you go up to the network manager applet and click 'Edit connections', choose the wireless tab, click the entry for your access point, and click 'Edit', a window comes up. At the bottom left there is a checkbox saying 'Available to all users'. Is that checked?

Changed in samba (Ubuntu):
status: Incomplete → New
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for samba (Ubuntu) because there has been no activity for 60 days.]

Changed in samba (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.