Comment 3 for bug 967410

Revision history for this message
Tony C. (tonyc-atl-ga) wrote :

Using a small test setup. Exactly the same on the 32 or 64 bit versions.

After clearing out the log files and rebooting .
Performing smbclient -L localhost the printers do not show in the listing.

tony@u32:/var/log/samba$ smbclient -L localhost
Enter tony's password:
Domain=[CORPORATE] OS=[Unix] Server=[Samba 3.6.3]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 IPC$ IPC IPC Service (u32 server (Samba,))
 tony Disk Home Directories
Domain=[CORPORATE] OS=[Unix] Server=[Samba 3.6.3]

 Server Comment
 --------- -------
 DECO Denise's DeskTop
 U32 u32 server (Samba)

 Workgroup Master
 --------- -------
 CORPORATE DECO

After manually running
sudo service smbd reload
sudo service smbd restart
smbd stop/waiting
smbd start/running, process 2878

The printers now appear

tony@u32:/var/log/samba$ smbclient -L localhost
Enter tony's password:
Domain=[CORPORATE] OS=[Unix] Server=[Samba 3.6.3]

 Sharename Type Comment
 --------- ---- -------
 print$ Disk Printer Drivers
 IPC$ IPC IPC Service (u32 server (Samba))
 Brother Printer Brother HL5340D
 Brother-HL-5340D-series Printer Brother HL-5340D series
 tony Disk Home Directories
Domain=[CORPORATE] OS=[Unix] Server=[Samba 3.6.3]

 Server Comment
 --------- -------
 DECO Denise's DeskTop
 U32 u32 server (Samba)

 Workgroup Master
 --------- -------
 CORPORATE DECO

At this point, this is what is in the log.smbd file
cat log.smbd

[2012/04/02 13:17:15, 0] smbd/server.c:1051(main)
  smbd version 3.6.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/04/02 13:17:15.081522, 0] smbd/server.c:1107(main)
  standard input is not a socket, assuming -D option
[2012/04/02 13:17:15.089590, 0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/04/02 13:17:15.090587, 0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2012/04/02 13:27:39, 0] smbd/server.c:1051(main)
  smbd version 3.6.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/04/02 13:27:39.668921, 0] smbd/server.c:1107(main)
  standard input is not a socket, assuming -D option

I now go to the XP machine, open add a new printer, browse for printer.
I can see my Linux box and see the printer.
When I select the printer I can see the Comment and Status is "Ready"
Select next. I says I do not have the correct print drivers do i want to install locally. ( this is correct i did not install them on the linux box )
I select the correct drivers and click next. A 'Connect to Printer' dialog box appears with the message
'Windows cannot connect to the printer. Either the printer name was typed incorrectly or the printer has lost its connection to the server"

At this point the log file looks likes this ( it has not changed )

cat log.smbd
[2012/04/02 13:17:15, 0] smbd/server.c:1051(main)
  smbd version 3.6.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/04/02 13:17:15.081522, 0] smbd/server.c:1107(main)
  standard input is not a socket, assuming -D option
[2012/04/02 13:17:15.089590, 0] printing/print_cups.c:110(cups_connect)
  Unable to connect to CUPS server localhost:631 - Connection refused
[2012/04/02 13:17:15.090587, 0] printing/print_cups.c:487(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
[2012/04/02 13:27:39, 0] smbd/server.c:1051(main)
  smbd version 3.6.3 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2011
[2012/04/02 13:27:39.668921, 0] smbd/server.c:1107(main)
  standard input is not a socket, assuming -D option