Samba printer is not shared after boot

Bug #784123 reported by Alfred
This bug report is a duplicate of:  Bug #515269: Samba server starts before cups does. Edit Remove
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
samba (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: samba

A CUPS printer working flawlessly on the computer locally isn't shared after boot even if configured correctly. Only after applying "sudo service smbd restart" the printer shows up on a client as a shared printer on the server (both Ubuntu/Windows/other samba clients).

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: samba 2:3.5.8~dfsg-1ubuntu2.2
ProcVersionSignature: Ubuntu 2.6.38-9.43-generic 2.6.38.4
Uname: Linux 2.6.38-9-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
BothFailedConnect: Yes
Date: Tue May 17 18:13:03 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Beta amd64 (20110413)
NmbdLog:
 Packet send failed to 192.168.1.255(138) ERRNO=Invalid argument
   Packet send failed to 192.168.1.255(137) ERRNO=Network is unreachable
   send_netbios_packet: send_packet() to IP 192.168.1.255 port 137 failed
   query_name: Failed to send packet trying to query name WFW<1d>
ProcEnviron:
 LANGUAGE=de_AT:en
 LANG=de_AT.UTF-8
 SHELL=/bin/bash
SambaServerRegression: Yes
SmbConfIncluded: Yes
SmbLog:
 getpeername failed. Error was Transport endpoint is not connected
   getpeername failed. Error was Transport endpoint is not connected
   getpeername failed. Error was Transport endpoint is not connected
SourcePackage: samba
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Alfred (alfred-egger) wrote :
Revision history for this message
Richard Gabriel (dj-dick) wrote :

Got exactly the same problem... after restarting smbd, printer sharing works well.

Revision history for this message
Alfred (alfred-egger) wrote :

As a workaround, I added the following to /etc/rc.local:

#!/bin/sh -e

/sbin/reload smbd

exit 0

The problem is obviously that cups is started after samba and so the printer is not shared by samba at boot. This problem is now around for several versions of Ubuntu, althought a fix is already released.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.