Samba hangs on service start up

I just encountered a problem where Samba failed to start and just hung before daemonizing.

Samba fails to start. The last few messages left in /var/log/samba/log.smbd referred to trying to find CUPS: “cups server left to default localhost” and “Unable to connect to CUPS server localhost - Connection timed out”. I don’t use CUPS since I don’t have a printer and the service was not active.

Samba error log Why would it hang on connecting to a service that doesn’t exist? For kicks, I started up CUPS without any defined printers to see what would happen to SMB. No luck, smbd still hung at exactly the same place.

Then I realized that I’m a big dummy. Network interface lo was not loaded. I’m not entirely sure how it was removed from my startup configuration. After doing an ‘ifconfig lo up’, I started samba:

Samba starts.

Moral of the story: services need lo to use other services on the same box.

Original work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License | © Eric Garrido