VectorLinux
October 30, 2014, 03:53:13 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: samba doesn't start properly on boot up  (Read 1315 times)
ted_chou12
Member
*
Posts: 31



« on: February 17, 2013, 06:25:39 pm »

Hi, I am able to use samba 4 now, but I can't seem to get it to run at boot, instead, I have to restart it. I know it might work if I add samba restart to /etc/rc.local. but I am pretty sure that it could be solved:
Code:
Feb 18 10:24:41 server kernel: [    8.894359] i2c-core: driver [tuner] using legacy resume method
Feb 18 10:24:47 server smbd[1978]: [2013/02/18 10:24:47.128946,  0] param/loadparm.c:3154(lp_do_parameter)
Feb 18 10:24:47 server smbd[1978]:   Global parameter guest account found in service section!
Feb 18 10:24:48 server smbd[1999]: [2013/02/18 10:24:48.530942,  0] printing/print_cups.c:151(cups_connect)
Feb 18 10:24:48 server smbd[1999]:   Unable to connect to CUPS server localhost:631 - Network is unreachable
Feb 18 10:24:48 server smbd[1998]: [2013/02/18 10:24:48.531555,  0] printing/print_cups.c:528(cups_async_callback)
Feb 18 10:24:48 server smbd[1998]:   failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
This is the boot up log for samba, I am pretty sure CUPS is started before samba because:
Code:
ted:$ ls /etc/rc.d/rc3.d
K40cron@   K69portmap@             S30portmap@  S91gpm@
K45samba@  K6transmission-daemon@  S39cups@     S92samba@
K48sshd@   K76firewall@            S50inetd@    S93transmission-daemon@
K49inetd@  K8gpm@                  S51sshd@
K60cups@   S23firewall@            S70cron@
this is the exact same order in rc4.d as well.
I already moved samba to as late as possible. I am pretty sure somewhere lies the network initiation problem, cause network hasn't fully started.
Thanks,
Ted
Logged
ted_chou12
Member
*
Posts: 31



« Reply #1 on: February 17, 2013, 06:50:14 pm »

I see this same problem seemed to have occured in :https://bugs.launchpad.net/ubuntu/+source/samba/+bug/125687
nmbd log:
Code:
[2013/02/17 11:38:46,  0] libsmb/nmblib.c:872(send_udp)
  Packet send failed to 192.168.1.255(137) ERRNO=Network is unreachable
[2013/02/17 11:38:46,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
  send_netbios_packet: send_packet() to IP 192.168.1.255 port 137 failed
[2013/02/17 11:38:46,  0] nmbd/nmbd_nameregister.c:522(register_name)
  register_name: Failed to send packet trying to register name WORKGROUP<00>
[2013/02/17 11:38:46,  0] libsmb/nmblib.c:872(send_udp)
  Packet send failed to 192.168.1.255(137) ERRNO=Network is unreachable
[2013/02/17 11:38:46,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
  send_netbios_packet: send_packet() to IP 192.168.1.255 port 137 failed
[2013/02/17 11:38:46,  0] nmbd/nmbd_nameregister.c:522(register_name)
  register_name: Failed to send packet trying to register name WORKGROUP<1e>
[2013/02/17 11:38:46,  0] libsmb/nmblib.c:872(send_udp)
  Packet send failed to 127.0.0.1(137) ERRNO=Network is unreachable
[2013/02/17 11:38:46,  0] nmbd/nmbd_packets.c:179(send_netbios_packet)
  send_netbios_packet: send_packet() to IP 127.0.0.1 port 137 failed
[2013/02/17 11:38:46,  0] nmbd/nmbd_nameregister.c:344(multihomed_register_one)
« Last Edit: February 17, 2013, 07:13:04 pm by ted_chou12 » Logged
ted_chou12
Member
*
Posts: 31



« Reply #2 on: February 17, 2013, 07:53:10 pm »

Here is an update of what I did, I updated /etc/init.d/samba with:
Code:
                timeout=20
                while ! /sbin/ifconfig | grep -q '192.168.' ; do
                       sleep 1
                       timeout=$(($timeout - 1))
                       if [ $timeout -lt 1 ] ; then
                             echon "timeout waiting for network"
                             exit
      fi
                done
And I now have samba working at start up, but cups did not, I don't understand why, cups doesn't start before samba (the shared printers do not appear). The order is rc4.d is right, but its just annoying:
https://bugs.launchpad.net/ubuntu/+source/cups/+bug/494141
If I can't get this working, I am pretty sure that older versions of samba make no difference to me.
Thanks,
Ted
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!