Can someone help with printing issues?
Les Hildenbrandt
les at hildenbrandt.com
Sun May 3 22:00:25 PDT 2009
All,
I have just set up CUPS and are having problems getting a printout from my networked xp machine.
I have a HP Color Laserjet 4600.
I have Slackware linux.
I have CUPS 1.3.10
When I use the Print Test Page button on the CUPS web interface, I get a printout from the printer with no issues.
When I send a print job from my xp machine, it shows up in the jobs page of the web interface, but the number of pages is unknown, and it never starts printing.
I see lots of messages in the log about No authentication data provided and update_cups_browse: Refused xxx bytes from 172.16.1.3 (and 192.168.0.21 which are the two interfaces on my CUPS server).
I really appreciate any help this group can provide!
Les Hildenbrandt
Here are the lines from my firewall:
$IPTABLES -A INPUT -p tcp --dport 631 -i $INTIF -j ACCEPT
$IPTABLES -A INPUT -p udp --dport 631 -i $INTIF -j ACCEPT
Here is my cupsd.conf file:
LogLevel debug
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
#DefaultAuthType Basic
<Location />
# Allow shared printing...
Order allow,deny
Allow @LOCAL
</Location>
<Location /admin/conf>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.*
Allow From 172.16.1.*
</Location>
<Location /admin>
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
Allow From 192.168.0.*
Allow From 172.16.1.*
</Location>
<Policy default>
<Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Print
AuthType Basic
Require user @SYSTEM
Order deny,allow
</Limit>
<Limit Cancel-Job CUPS-Authenticate-Job>
Require user @OWNER @SYSTEM
Order deny,allow
</Limit>
<Limit All>
Order deny,allow
</Limit>
</Policy>
Here are the log messages when I try to print from xp:
D [03/May/2009:22:46:39 -0600] update_cups_browse: Refused 203 bytes from 172.16.1.3
D [03/May/2009:22:46:39 -0600] update_cups_browse: Refused 197 bytes from 192.168.0.21
D [03/May/2009:22:46:40 -0600] update_cups_browse: Refused 148 bytes from 172.16.1.3
D [03/May/2009:22:46:40 -0600] update_cups_browse: Refused 142 bytes from 192.168.0.21
D [03/May/2009:22:46:41 -0600] update_cups_browse: Refused 151 bytes from 172.16.1.3
D [03/May/2009:22:46:41 -0600] update_cups_browse: Refused 145 bytes from 192.168.0.21
D [03/May/2009:22:46:42 -0600] update_cups_browse: Refused 137 bytes from 172.16.1.3
D [03/May/2009:22:46:42 -0600] update_cups_browse: Refused 131 bytes from 192.168.0.21
D [03/May/2009:22:46:46 -0600] cupsdAcceptClient: 7 from 172.16.1.35:631 (IPv4)
D [03/May/2009:22:46:46 -0600] cupsdAcceptClient: 8 from 172.16.1.35:631 (IPv4)
D [03/May/2009:22:46:46 -0600] cupsdReadClient: 7 POST /classes/Printers HTTP/1.1
D [03/May/2009:22:46:46 -0600] cupsdAuthorize: No authentication data provided.
D [03/May/2009:22:46:46 -0600] Get-Printer-Attributes http://172.16.1.3:631/classes/Printers
D [03/May/2009:22:46:46 -0600] cupsdProcessIPPRequest: 7 status_code=0 (successful-ok)
D [03/May/2009:22:46:46 -0600] cupsdReadClient: 8 POST /classes/Printers HTTP/1.1
D [03/May/2009:22:46:46 -0600] cupsdAuthorize: No authentication data provided.
D [03/May/2009:22:46:46 -0600] Get-Printer-Attributes http://172.16.1.3:631/classes/Printers
D [03/May/2009:22:46:46 -0600] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
D [03/May/2009:22:46:47 -0600] cupsdReadClient: 7 POST /classes/Printers HTTP/1.1
D [03/May/2009:22:46:47 -0600] cupsdAuthorize: No authentication data provided.
D [03/May/2009:22:46:47 -0600] Print-Job http://172.16.1.3:631/classes/Printers
D [03/May/2009:22:46:47 -0600] [Job ???] Auto-typing file...
I [03/May/2009:22:46:47 -0600] [Job ???] Request file type is application/postscript.
D [03/May/2009:22:46:47 -0600] add_job: requesting-user-name="Les H"
D [03/May/2009:22:46:47 -0600] Adding default job-sheets values "none,none"...
I [03/May/2009:22:46:47 -0600] [Job 27] Adding start banner page "none".
D [03/May/2009:22:46:47 -0600] Discarding unused job-created event...
I [03/May/2009:22:46:47 -0600] [Job 27] Adding end banner page "none".
I [03/May/2009:22:46:47 -0600] [Job 27] File of type application/postscript queued by "Les H".
D [03/May/2009:22:46:47 -0600] [Job 27] hold_until=0
I [03/May/2009:22:46:47 -0600] [Job 27] Queued on "Printers" by "Les H".
D [03/May/2009:22:46:47 -0600] cupsdProcessIPPRequest: 7 status_code=0 (successful-ok)
D [03/May/2009:22:46:47 -0600] cupsdReadClient: 8 POST /classes/Printers HTTP/1.1
D [03/May/2009:22:46:47 -0600] cupsdAuthorize: No authentication data provided.
D [03/May/2009:22:46:47 -0600] Get-Printer-Attributes http://172.16.1.3:631/classes/Printers
D [03/May/2009:22:46:47 -0600] cupsdProcessIPPRequest: 8 status_code=0 (successful-ok)
D [03/May/2009:22:46:51 -0600] Report: clients=2
D [03/May/2009:22:46:51 -0600] Report: jobs=27
D [03/May/2009:22:46:51 -0600] Report: jobs-active=1
D [03/May/2009:22:46:51 -0600] Report: printers=4
D [03/May/2009:22:46:51 -0600] Report: printers-implicit=0
D [03/May/2009:22:46:51 -0600] Report: stringpool-string-count=3201
D [03/May/2009:22:46:51 -0600] Report: stringpool-alloc-bytes=8360
D [03/May/2009:22:46:51 -0600] Report: stringpool-total-bytes=70856
D [03/May/2009:22:46:53 -0600] cupsdAcceptClient: 10 from 172.16.1.35:631 (IPv4)
D [03/May/2009:22:46:53 -0600] encrypt_client: 10 Connection from 172.16.1.35 now encrypted.
D [03/May/2009:22:46:53 -0600] cupsdReadClient: 10 GET /jobs/ HTTP/1.1
D [03/May/2009:22:46:53 -0600] cupsdAuthorize: Authorized as root using Basic
D [03/May/2009:22:46:53 -0600] [CGI] /usr/lib/cups/cgi-bin/jobs.cgi started - PID = 8174
I [03/May/2009:22:46:53 -0600] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=8174)
D [03/May/2009:22:46:53 -0600] cupsdSendCommand: 10 file=11
More information about the cups
mailing list