Have been digging around in the code, and sadly, I've been unable to indicate anything that would set to "interface" instead of "interfaces"; I'll dig further, but can't guarantee I will find it in our code.RandomUsername wrote:[Bug 5]
Samba daemon will not start if the wifi is enabled. However, starting samba first then enabling the wifi works fine.
The only thing I can see in the syslog is this:
This is from samba/log.all:Jul 9 13:16:53 serverb3 smbd[26120]: [2011/07/09 13:16:53.474838, 0] param/loadparm.c:7588(lp_do_parameter)
Jul 9 13:16:53 serverb3 smbd[26120]: Ignoring unknown parameter "interface"
Jul 9 13:16:53 serverb3 smbd[26120]: [2011/07/09 13:16:53.490481, 0] param/loadparm.c:7588(lp_do_parameter)
Jul 9 13:16:53 serverb3 smbd[26120]: Ignoring unknown parameter "interface"
[EDIT][2011/07/09 13:16:53.490278, 1] param/loadparm.c:6494(map_parameter)
Unknown parameter encountered: "interface"
[2011/07/09 13:16:53.490481, 0] param/loadparm.c:7588(lp_do_parameter)
Ignoring unknown parameter "interface"
[2011/07/09 13:16:53.622680, 0] lib/interface.c:542(load_interfaces)
WARNING: no network interfaces found
[2011/07/09 13:16:53.757681, 0] smbd/server.c:659(open_sockets_smbd)
open_sockets_smbd: No sockets available to bind to.
[2011/07/09 13:16:53.758655, 0] smbd/server.c:894(exit_server_common)
===============================================================
[2011/07/09 13:16:53.758832, 0] smbd/server.c:896(exit_server_common)
Abnormal server exit: open_sockets_smbd() failed
[2011/07/09 13:16:53.758936, 0] smbd/server.c:897(exit_server_common)
===============================================================
[2011/07/09 13:16:53.759666, 0] lib/util.c:1569(log_stack_trace)
BACKTRACE: 0 stack frames:
[2011/07/09 13:16:53.759871, 0] lib/fault.c:326(dump_core)
dumping core in /var/log/samba/cores/smbd
OK, I've worked out what's happening here. When the wifi is enabled or disabled from the web interface the script is editing smb.conf but the script must be buggy (buggie?). I guess it's supposed to change the parameter "interfaces = eth1" to "interfaces = br0". However, it's adding "interface = br0" - note the missing "s" which is what is being complained about in the samba log. Also, it's leaving any previous "interfaces" parameter as well so I've got both these lines in smb.conf:
Even with the typo fixed I'm not sure you can have two lines the same. The correct formatting would be:Code: Select all
interfaces = eth1 interface = br0
However, justCode: Select all
interfaces = eth1 br0
works fine.Code: Select all
interfaces = br0
