I’ve got an Ubuntu server. I installed Samba to share files with Windows clients and it started off fine. I recently added some shares that are based on UnionFS and now the samba server will not start at boot and I have to launch it manually (
/etc/init.d/samba start works without error)
It’s annoying and it’s going to cause problems when the server gets restarted when I’m not there. Can anybody suggest an idea why it’s not booting and/or give me a way to make sure it does.
Edit: Just restarted. Here’s the log for the boot-up.
[2009/05/15 10:04:21, 0] smbd/server.c:main(1260) smbd version 3.3.2 started. Copyright Andrew Tridgell and the Samba Team 1992-2009 [2009/05/15 10:04:21, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused [2009/05/15 10:04:21, 0] printing/print_cups.c:cups_connect(103) Unable to connect to CUPS server localhost:631 - Connection refused [2009/05/15 10:04:21, 0] lib/interface.c:load_interfaces(546) WARNING: no network interfaces found [2009/05/15 10:04:22, 0] smbd/server.c:open_sockets_smbd(554) open_sockets_smbd: No sockets available to bind to.
I realise I need to clean out some CUPS nonsense.. The “no network interfaces” part is really odd because it will start up (albeit manually).
Here’s the log when I run
[2009/05/15 10:09:03, 0] smbd/server.c:main(1260) smbd version 3.3.2 started. Copyright Andrew Tridgell and the Samba Team 1992-2009
No grief about CUPS. No moaning about network interfaces. No nagging about sockets. How I like it.
Have you checked to see that you have all these links ?
/etc/rc5.d/S20samba /etc/rc4.d/S20samba /etc/rc3.d/S20samba /etc/rc2.d/S20samba
If not, then samba is not set to autostart, and you should set it up to do so with something like :
update-rc.d samba defaults
Ok, so what is reported in the log files around system start up time ?
check those two and see if there’s anything suspicious in there.
Leave a comment
- SCP transfer only modified files
- How can I automate clearing and resetting a Linux user’s home directory to a default?
- Cron expression that runs every 5 minutes from 1:30 am – 6:00 am [duplicate]
- Understanding redundant power supplies
- Is there a way for administrators to disable users from installing Firefox extensions?