[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2016-03-27 Thread yetanotherion
> - "IFACE=eth0": shouldn't "net-device-up" wait for all interfaces to
have an ip address ?

>>No. That's the 'static-network-up' event, mentioned above. 'net-
device-up' is a per-device event.

I have another question then, for which device does the service wait when 
'net-device-up' is used without arguments ?
(as it is in the default smbd.conf)


> - "started nmbd": I wonder whether that should not be put per default by the 
> samba's installation script. What do you think ?

>>No, that's definitely wrong and will cause 'service nmbd restart' to hang. 
Good point.

>>And I don't know why this would be necessary on your system.

My server correctly boots without "started nmbd" during the 3/4 test reboots I 
made. However, I kept that line 
"just in case" I got into a racy situation during reboots in the future 
(https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064)

>>Regardless, beyond 14.04 the system init is handled completely
differently (via systemd instead of upstart) so this bug will no longer
apply in 16.04 LTS.

That's (very) good to know, thanks for your answers !

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2016-03-26 Thread Steve Langasek
>  - "IFACE=eth0": shouldn't "net-device-up" wait for all interfaces to
have an ip address ?

No. That's the 'static-network-up' event, mentioned above.  'net-device-
up' is a per-device event.

> - "started nmbd": I wonder whether that should not be put per default
by the samba's installation script. What do you think ?

No, that's definitely wrong and will cause 'service nmbd restart' to
hang.  And I don't know why this would be necessary on your system.

Regardless, beyond 14.04 the system init is handled completely
differently (via systemd instead of upstart) so this bug will no longer
apply in 16.04 LTS.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2016-03-26 Thread yetanotherion
With quite a delay :) (almost three years after), I had the same issue, on 
14.04.3 LTS (GNU/Linux 3.19.0-33-generic x86_64).
After reading this bug and 
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/596064
As a workaround, I set

"start on (local-filesystems and net-device-up IFACE=eth0 and started
nmbd)" in  /etc/init/smbd.conf.

I have two remarks, regarding:
-  "IFACE=eth0": shouldn't "net-device-up" wait for all interfaces to have an 
ip address ? (for interfaces configured on DHCP among others)
- "started nmbd": I wonder whether that should not be put per default by the 
samba's installation script. What do you think ?

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2013-06-28 Thread Borim
> This probably refers to the 'static-network-up' event.

In my case this maybe enough, as I use static configured network interfaces, 
but what if smbd is bound to a interface using DHCP?
I did not check if this case will work. But I think smbd should handle binding 
to static and dynamic configured interfaces without random hiccups.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


Re: [Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2012-12-25 Thread Steve Langasek
On Tue, Dec 25, 2012 at 02:08:37PM -, Borim wrote:

> I checked the existence of the network-services event with Ubuntu 12.10
> by starting Ubuntu with the debug switch. But I can not find the
> network-services event in /var/log/dmesg where all triggered events are
> listed.

This probably refers to the 'static-network-up' event.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2012-12-25 Thread Borim
A solution for the future can be the use of the network-services event.
It is mentioned in the upstart cookbook
(http://upstart.ubuntu.com/cookbook/#networkservices) and Bug #701576
also target the introduction of this event.

In the cookbook it is "announced" for 11.10.

I checked the existence of the network-services event with Ubuntu 12.10
by starting Ubuntu with the debug switch. But I can not find the
network-services event in /var/log/dmesg where all triggered events are
listed.

So I guess the network-services event is still not implemented. In the
case the network-services event gets added, smbd should use it to fix
this bug.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-09 Thread Steve Langasek
And do you have the samba-common-bin package installed?  If not, you're
seeing bug #572410 which was fixed in maverick.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-09 Thread Steve Langasek
What version of the samba package do you have installed? Your bug report
says you're running lucid, but the lucid version of the nmbd, upstart
job already includes code to handle creation of the /var/run/samba
directory.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-09 Thread camden lindsay
To be clear and recap--

smb.conf has the following
interfaces = eth0

Static IP was assigned via network manager.

smbd would not start up-- as per
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/836849
(open_socket_smbd fail)

As per this bug (the one i am currently updating), i edited the startup in 
/etc/init/smbd.conf to be the following
start on (local-filesystems and net-device-up IFACE=eth0)

smbd started without a problem, but nmbd no longer started at boot.

Following the debug tips in the bug 
https://bugs.launchpad.net/ubuntu/lucid/+source/samba/+bug/596064
I identified that nmbd was not starting because /var/run/samba did not exist.  
I added 'mkdir -p /var/run/samba' to the pre-start script of 
/etc/init/nmbd.conf  as suggested by bug 596064, and now everything starts up 
as expected.

hope this explains it..

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-09 Thread Steve Langasek
What exactly did you set the start line to?  It currently is set to
'start on (local-filesystems and net-device-up IFACE!=lo)'.  If you drop
the 'local-filesystems' part, of course there will be problems with the
job starting before the filesystem is mounted.

> as described here:
> https://bugs.launchpad.net/ubuntu/lucid/+source/samba/+bug/596064

The followups in that bug are entirely incorrect and probably not
related to your issue.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-07 Thread camden lindsay
I'm sorry i wasn't clear in #6 -- samba now starts on boot, but nmbd
does not, for the reasons indicated in the above bug.

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-07 Thread camden lindsay
After modifying 'net-device-up IFACE=eth0' to the 'start on' clause, i now am 
running into the problem that /var/run/samba does not exist, as described here:
https://bugs.launchpad.net/ubuntu/lucid/+source/samba/+bug/596064

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-07 Thread Robie Basak
** Changed in: samba (Ubuntu)
   Status: Confirmed => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 823878] Re: "bind interfaces only" requires a manual change to /etc/init/smbd.conf

2011-10-07 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: samba (Ubuntu)
   Status: New => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/823878

Title:
  "bind interfaces only" requires a manual change to /etc/init/smbd.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/823878/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs