Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is this CUPS printing behaviour normal?

CUPS server and printer running on one 12.04 PC.

Client laptop 12.04 on home network boots, sees the printer available. lpstat -p shows printer idle. Do a print, but does not print, goes to queue with lpstat -p reporting "now printing" and "printer is not responding" Log off and log on laptop has no effect. Reboot the laptop, and before logon, the queued print prints. Further printing after logon works immediately.

It is as if there needs to be a print in the laptop queue on boot before service works.

Any idea what is wrong?

  • answers Network is fine at all times - connects to shared drive on main PC as well as internet. Logs follow. The printout is in the print queue as seen on laptop and is not in print queue as seen on PC because the laptop apparently fails to make the CUPS connection, document print status for the printer reporting "printer may not be connected", until rebooting, which causes it to print.

On the laptop, the logs are -

/var/log/cups/access_log
localhost - - [23/Jan/2013:18:05:26 +0000] "POST / HTTP/1.1" 200 176 Create-Printer-Subscription successful-ok
localhost - - [23/Jan/2013:18:07:14 +0000] "POST / HTTP/1.1" 200 251 Create-Printer-Subscription successful-ok
localhost - - [23/Jan/2013:18:07:22 +0000] "POST / HTTP/1.1" 200 340 Create-Printer-Subscription successful-ok
localhost - - [23/Jan/2013:18:07:22 +0000] "POST / HTTP/1.1" 200 340 Create-Printer-Subscription successful-ok
localhost - - [23/Jan/2013:18:07:24 +0000] "POST / HTTP/1.1" 200 151 Cancel-Subscription successful-ok
localhost - - [23/Jan/2013:18:07:24 +0000] "POST / HTTP/1.1" 200 151 Cancel-Subscription successful-ok
localhost - - [23/Jan/2013:18:07:39 +0000] "POST /printers/officejet HTTP/1.1" 200 239 Create-Job successful-ok
localhost - - [23/Jan/2013:18:07:39 +0000] "POST /printers/officejet HTTP/1.1" 200 6331 Send-Document successful-ok
localhost - - [23/Jan/2013:18:07:49 +0000] "POST / HTTP/1.1" 200 340 Create-Printer-Subscription successful-ok
localhost - - [23/Jan/2013:18:07:49 +0000] "POST / HTTP/1.1" 200 340 Create-Printer-Subscription successful-ok
localhost - - [23/Jan/2013:18:10:02 +0000] "POST / HTTP/1.1" 200 151 Cancel-Subscription successful-ok
localhost - - [23/Jan/2013:18:10:02 +0000] "POST / HTTP/1.1" 200 151 Cancel-Subscription successful-ok
localhost - - [23/Jan/2013:18:10:04 +0000] "POST / HTTP/1.1" 200 151 Cancel-Subscription successful-ok

the above when trying to print

subsequent to typing the above, further entries are :

localhost - - [23/Jan/2013:18:19:27 +0000] "POST / HTTP/1.1" 401 186 Renew-Subscription successful-ok
localhost - ray [23/Jan/2013:18:19:27 +0000] "POST / HTTP/1.1" 200 186 Renew-Subscription successful-ok

and on trying to print again at 18:30 :

localhost - - [23/Jan/2013:18:30:14 +0000] "POST /printers/officejet HTTP/1.1" 200 239 Create-Job successful-ok
localhost - - [23/Jan/2013:18:30:14 +0000] "POST /printers/officejet HTTP/1.1" 200 7038 Send-Document successful-ok
localhost - - [23/Jan/2013:18:30:47 +0000] "POST / HTTP/1.1" 200 251 Create-Printer-Subscription successful-ok

It seems to cancel and renew subscriptions periodically.

/var/log/cups/error_log

E [23/Jan/2013:18:05:13 +0000] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.
E [23/Jan/2013:18:07:39 +0000] [Job 15] The printer is not responding.

the first line happening on boot, and the second line then repeating every 30 seconds, independent of attempting to print.

The referenced line 16 of /etc/cups/cupsd.conf is : SystemGroup lpadmin

lpadmin is a group of which I am a member (on laptop and PC) but I wouldn't have thought this has a bearing on the problem.

On the PC (cups server) the access log says :

localhost - - [23/Jan/2013:18:29:23 +0000] "POST / HTTP/1.1" 401 244 CUPS-Get-Devices successful-ok
localhost - root [23/Jan/2013:18:29:23 +0000] "POST / HTTP/1.1" 200 1809 CUPS-Get-Devices -
localhost - - [23/Jan/2013:18:29:23 +0000] "POST /admin/ HTTP/1.1" 401 142 Resume-Printer successful-ok
localhost - root [23/Jan/2013:18:29:23 +0000] "POST /admin/ HTTP/1.1" 200 142 Resume-Printer successful-ok
localhost - - [23/Jan/2013:18:29:23 +0000] "POST /admin/ HTTP/1.1" 401 142 Resume-Printer successful-ok
localhost - root [23/Jan/2013:18:29:23 +0000] "POST /admin/ HTTP/1.1" 200 142 Resume-Printer successful-ok
localhost - - [23/Jan/2013:18:29:23 +0000] "POST /admin/ HTTP/1.1" 401 146 Resume-Printer successful-ok
localhost - root [23/Jan/2013:18:29:23 +0000] "POST /admin/ HTTP/1.1" 200 146 Resume-Printer successful-ok
localhost - ray [23/Jan/2013:18:40:54 +0000] "POST / HTTP/1.1" 200 186 Renew-Subscription successful-ok

The PC error log says

E [23/Jan/2013:18:29:23 +0000] Failed to update TXT record for HP Officejet 4500 G510g-m @ tower3: -2
E [23/Jan/2013:18:29:23 +0000] Failed to update TXT record for HP Fax @ tower3: -2

** ON LAPTOP REBOOT at 19:01, with printing happening at 19:01-2 **

PC (server) error log has nothing

PC (server access log has

192.168.1.5 - - [23/Jan/2013:19:01:49 +0000] "POST /printers/Officejet-4500-G510g-m HTTP/1.1" 200 450 Validate-Job successful-ok
192.168.1.5 - - [23/Jan/2013:19:01:49 +0000] "POST /printers/Officejet-4500-G510g-m HTTP/1.1" 200 450 Create-Job successful-ok
192.168.1.5 - - [23/Jan/2013:19:01:49 +0000] "POST /printers/Officejet-4500-G510g-m HTTP/1.1" 200 6313 Send-Document successful-ok
192.168.1.5 - - [23/Jan/2013:19:01:50 +0000] "POST /printers/Officejet-4500-G510g-m HTTP/1.1" 200 450 Validate-Job successful-ok
192.168.1.5 - - [23/Jan/2013:19:01:50 +0000] "POST /printers/Officejet-4500-G510g-m HTTP/1.1" 200 450 Create-Job successful-ok
192.168.1.5 - - [23/Jan/2013:19:01:50 +0000] "POST /printers/Officejet-4500-G510g-m HTTP/1.1" 200 7020 Send-Document successful-ok

as the 2 print jobs printed

ON LAPTOP the access log has

localhost - - [23/Jan/2013:19:02:06 +0000] "POST / HTTP/1.1" 200 176 Create-Printer-Subscription successful-ok

and the error log has only

E [23/Jan/2013:19:01:46 +0000] Unknown directive SystemGroup on line 16 of /etc/cups/cupsd.conf.

I hope this helps.

** 26/1/13 reply added ** I had added a reply, but it seems to have not appended. Yes, "the printer is not responding" appears in the client error log. All OK with the printer from the server PC. fromagegb

share|improve this question
    
Good update with relevant information! Is it correct that the The printer is not responding. line appears on the client? –  gertvdijk Jan 24 '13 at 9:44
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.