Author Topic: [SOLVED] Cannot print from Windows 7 clients  (Read 3806 times)

abluesongbird

  • Guest
[SOLVED] Cannot print from Windows 7 clients
« on: February 24, 2013, 03:21:35 pm »
I am stuck getting network printing to work with an up-to-date zentyal server:

Code: [Select]
ii  zentyal-antivirus                    3.0                                     Zentyal - Antivirus
ii  zentyal-ca                           3.0.2                                   Zentyal - Certification Authority
ii  zentyal-common                       3.0.6                                   Zentyal - Common Library
ii  zentyal-core                         3.0.13                                  Zentyal - Core
ii  zentyal-dhcp                         3.0.2                                   Zentyal - DHCP Service
ii  zentyal-dns                          3.0.5                                   Zentyal - DNS Service
ii  zentyal-ebackup                      3.0.5                                   Zentyal - Backup
ii  zentyal-firewall                     3.0.1                                   Zentyal - Firewall
ii  zentyal-ftp                          3.0.1                                   Zentyal - FTP
ii  zentyal-gateway                      3.0.1                                   Zentyal - Gateway Suite
ii  zentyal-infrastructure               3.0.1                                   Zentyal - Network Infrastructure Suite
ii  zentyal-l7-protocols                 3.0                                     Zentyal - Layer-7 Filter
ii  zentyal-monitor                      3.0.2                                   Zentyal - Monitor
ii  zentyal-network                      3.0.2                                   Zentyal - Network Configuration
ii  zentyal-ntp                          3.0                                     Zentyal - NTP Service
ii  zentyal-objects                      3.0                                     Zentyal - Network Objects
ii  zentyal-office                       3.0.1                                   Zentyal - Office Suite
ii  zentyal-openvpn                      3.0.3                                   Zentyal - VPN Service
ii  zentyal-printers                     3.0.2                                   Zentyal - Printer Sharing Service
ii  zentyal-remoteservices               3.0.14                                  Zentyal - Cloud Client
ii  zentyal-samba                        3.0.13                                  Zentyal - File Sharing and Domain Services
ii  zentyal-services                     3.0.1                                   Zentyal - Network Services
ii  zentyal-software                     3.0.3                                   Zentyal - Software Management
ii  zentyal-squid                        3.0.4                                   Zentyal - HTTP Proxy (Cache and Filter)
ii  zentyal-trafficshaping               3.0                                     Zentyal - Traffic Shaping
ii  zentyal-users                        3.0.9                                   Zentyal - Users and Groups
ii  zentyal-webserver                    3.0.2                                   Zentyal - Web Server
ii  cups                                 1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - server
ii  cups-client                          1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - client programs (SysV)
ii  cups-common                          1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - common files
ii  cups-filters                         1.0.18-0ubuntu0.1                       OpenPrinting CUPS Filters
ii  cups-ppdc                            1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - PPD manipulation utilities
ii  ghostscript-cups                     9.05~dfsg-0ubuntu4.2                    interpreter for the PostScript language and for PDF - CUPS filters
ii  libcups2                             1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - Core library
ii  libcupscgi1                          1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - CGI library
ii  libcupsfilters1                      1.0.18-0ubuntu0.1                       OpenPrinting CUPS Filters - Shared library
ii  libcupsimage2                        1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - Raster image library
ii  libcupsmime1                         1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - MIME library
ii  libcupsppdc1                         1.5.3-0ubuntu6                          Common UNIX Printing System(tm) - PPD manipulation library
ii  libnet-cups-perl                     0.60-1build2                            Perl module for printing through CUPS
ii  printer-driver-hpcups                3.12.2-1ubuntu3.1                       HP Linux Printing and Imaging - CUPS Raster driver (hpcups)

I setup the CUPS server using the CUPS web admin interface: under Administration > Server, I check "Share printers connected to this system" and "Save debugging information for troubleshooting".  (I also tried checking and unchecking "Share printers connected to this system > Allow printing from the Internet", "Share printers connected to this system > Protocol > LDAP" and "Use Kerberos authentication", to no avail.)

I add a printer.  While setting the default options for the printer, I hit an error--"unable to set options: broken pipe"--but the configuration appears to succeed.  The printer is listed as

Code: [Select]
Samsung_ML-1450 (Idle, Accepting Jobs, Shared, Server Default)
Description: Samsung ML-1450
Location: Laundry room
Driver: Samsung ML-1450 Foomatic/pxlmono (recommended) (grayscale, 2-sided printing)
Connection: parallel:/dev/lp0
Defaults: job-sheets=none, none media=na_letter_8.5x11in sides=one-sided

and printing a test page from CUPS works as expected.

I see the printer under zentyal's admin interface and allow guest access.  The corresponding /etc/samba/smb.conf sections appear as

Code: [Select]
[print$]
    comment = Point and Print Printer Drivers
    path = /opt/samba4/var/print
    read only = No

[printers]
    comment = All Printers
    path = /opt/samba4/var/spool
    browseable = Yes
    read only = No
    printable = Yes

I add the network printer from a Windows 7 client.  Windows finds the printer but no driver, so I pick the matching driver from the Windows-provided list.  When I try to print a test page from Windows, nothing happens on the client--no error messages--but nothing is printed.  In the CUPS error_log, I see

Code: [Select]
D [24/Feb/2013:09:09:23 -0500] cupsdAcceptClient: 16 from localhost (Domain)
D [24/Feb/2013:09:09:23 -0500] cupsdReadClient: 16 POST / HTTP/1.1
D [24/Feb/2013:09:09:23 -0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
D [24/Feb/2013:09:09:23 -0500] cupsdAuthorize: No authentication data provided.
D [24/Feb/2013:09:09:23 -0500] cupsdReadClient: 16 1.1 Get-Jobs 1
D [24/Feb/2013:09:09:23 -0500] Get-Jobs ipp://localhost/printers/Samsung_ML-1450
D [24/Feb/2013:09:09:23 -0500] Returning IPP successful-ok for Get-Jobs (ipp://localhost/printers/Samsung_ML-1450) from localhost
D [24/Feb/2013:09:09:23 -0500] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [24/Feb/2013:09:09:23 -0500] cupsdReadClient: 16 POST / HTTP/1.1
D [24/Feb/2013:09:09:23 -0500] cupsdSetBusyState: newbusy="Active clients", busy="Not busy"
[b]D [24/Feb/2013:09:09:23 -0500] cupsdAuthorize: No authentication data provided.[/b]
D [24/Feb/2013:09:09:23 -0500] cupsdReadClient: 16 1.1 Get-Printer-Attributes 1
D [24/Feb/2013:09:09:23 -0500] Get-Printer-Attributes ipp://localhost/printers/Samsung_ML-1450
D [24/Feb/2013:09:09:23 -0500] Returning IPP successful-ok for Get-Printer-Attributes (ipp://localhost/printers/Samsung_ML-1450) from localhost
D [24/Feb/2013:09:09:23 -0500] cupsdSetBusyState: newbusy="Not busy", busy="Active clients"
D [24/Feb/2013:09:09:23 -0500] cupsdReadClient: 16 WAITING Closing on EOF
D [24/Feb/2013:09:09:23 -0500] cupsdCloseClient: 16
D [24/Feb/2013:09:09:23 -0500] cupsdSetBusyState: newbusy="Not busy", busy="Not busy"

Any help here would be greatly appreciated.  I am no printing expert--for the last 10 years or so, CUPS has "just worked"--and am not sure what else to try.
« Last Edit: February 26, 2013, 02:43:27 pm by abluesongbird »

mamra

  • Zen Apprentice
  • *
  • Posts: 47
  • Karma: +7/-0
    • View Profile
Re: Cannot print from Windows 7 clients
« Reply #1 on: February 24, 2013, 10:49:16 pm »
check permissions for /opt/samba4/var/spool and /opt/samba4/var/print
I thing they must be 1777..

abluesongbird

  • Guest
Re: Cannot print from Windows 7 clients
« Reply #2 on: February 25, 2013, 01:37:14 am »
Thanks for the tip, mamra.  I don't see the directories you identify--the closest I that I could find are listed below:

Code: [Select]
1578207    4 drwxrwxrwt   2 nobody   nogroup      4096 Feb 17 08:31 /var/spool/samba/
1181967    4 drwxr-xr-x   2 root     root         4096 Feb 22 23:41 /opt/samba4/var/cache/printing
1182013   28 -rw-------   1 root     root        28672 Feb 22 23:41 /opt/samba4/var/cache/printing/printers.tdb
1181968   28 -rw-------   1 root     root        28672 Feb 24 09:47 /opt/samba4/var/cache/printing/Samsung_ML-1450.tdb
1700722    4 drwxr-xr-x   2 root     root         4096 Feb 22 23:17 /var/cache/samba/printing
1702839   28 -rw-------   1 root     root        28672 Feb 22 23:17 /var/cache/samba/printing/Samsung_ML-1450.tdb

/var/spool/samba is 1777, as you recommend.

I wonder if there is an authentication issue with CUPS?  This line from the CUPS logs concerns me:

D [24/Feb/2013:09:09:23 -0500] cupsdAuthorize: No authentication data provided.

Might this be the source of the printing problem?

mamra

  • Zen Apprentice
  • *
  • Posts: 47
  • Karma: +7/-0
    • View Profile
Re: Cannot print from Windows 7 clients
« Reply #3 on: February 25, 2013, 01:51:19 pm »
Please create the directories as they are mentioned in smb.conf

abluesongbird

  • Guest
Re: Cannot print from Windows 7 clients
« Reply #4 on: February 26, 2013, 02:42:25 pm »
Thanks, mamra.  That did the trick.