printer offline then on I get server-error-not-accepting-jobs

Salik Rafiq salik.rafiq at chameeya.com
Thu Sep 25 02:35:12 PDT 2008


I have CUPS 1.3.7 running on Ubuntu 8.04 and I have noticed that
should I start a job and the printer is offline (ie: turned off)
the print job occaisionally does not come out when I then turn the printer on. The printer is downstairs so it is something I don't know until I try and print.

I print my job through SAMBA btw. I don't know if there are any specific requirements on that side of things.

The printer is a Samsung ML-3560ND which supports IPP

In the error_log I have:
I [23/Sep/2008:09:59:10 +0100] [Job 33] Started backend /usr/lib/cups/backend/ipp (PID 30754)
W [23/Sep/2008:09:59:13 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 5 seconds...
W [23/Sep/2008:09:59:21 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 10 seconds...
[snip] quite a lot of these
E [23/Sep/2008:10:32:07 +0100] [Job 33] Print file was not accepted (server-error-not-accepting-jobs)!

I left the job in the queue for a night and the next day..

E [24/Sep/2008:08:04:39 +0100] PID 30754 (/usr/lib/cups/backend/ipp) crashed on signal 9!
I [24/Sep/2008:08:04:39 +0100] Hint: Try setting the LogLevel to "debug" to find out more.
W [24/Sep/2008:08:04:52 +0100] DNS-SD registration of "ml3560" failed with -65537
I [24/Sep/2008:08:04:52 +0100] [Job 33] Started backend /usr/lib/cups/backend/ipp (PID 9272)
W [24/Sep/2008:08:04:55 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 5 seconds...
W [24/Sep/2008:08:05:03 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 10 seconds...
W [24/Sep/2008:08:05:16 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 15 seconds...
[snip] more of these...
E [24/Sep/2008:10:44:53 +0100] [Job 33] Print file was not accepted (server-error-not-accepting-jobs)!

and on the following day...

E [25/Sep/2008:07:37:57 +0100] PID 9272 (/usr/lib/cups/backend/ipp) crashed on signal 9!
I [25/Sep/2008:07:37:57 +0100] Hint: Try setting the LogLevel to "debug" to find out more.
W [25/Sep/2008:07:38:10 +0100] DNS-SD registration of "ml3560" failed with -65537
I [25/Sep/2008:07:38:10 +0100] [Job 33] Started backend /usr/lib/cups/backend/ipp (PID 15848)
W [25/Sep/2008:07:38:13 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 5 seconds...
W [25/Sep/2008:07:38:21 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 10 seconds...
W [25/Sep/2008:07:38:34 +0100] [Job 33] recoverable: Network host '192.168.178.220' is busy; will retry in 15 seconds...
[snip]
N [25/Sep/2008:09:57:51 +0100] [Job 33] Print file accepted - job ID 1.
I [25/Sep/2008:09:57:51 +0100] [Job 33] Completed successfully.

Not sure what the signal 9 crash is about. I haven't noticed it any log before.

CUPS keeps trying to print while the printer is off..fair enough..Though perhaps it should say "printer offline" . When the printer is turned on..its a roll of the dice if the job gets printed.

Is there any type of script which can be built to detect this and perform corrective action..such as halting and starting the printer. Or perhaps shifting the job to a class with only the Samsung in it...this has worked manually. Something I could put in a cron?

Here is my cupsd.conf:

LogLevel info
HostNameLookups Off
SystemGroup lpadmin
# Allow remote access
# Port 631
Listen /var/run/cups/cups.sock
Listen *:631
# Share local printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAddress @LOCAL
BrowseProtocols cups dnssd
DefaultAuthType Basic
ErrorPolicy abort-job
JobRetryInterval 30
JobRetryLimit 5
<Location />
  Order allow,deny
  Allow @LOCAL
  # Allow shared printing and remote administration...
</Location>
<Location /admin>
  Order allow,deny
  Allow @local
  # Allow remote administration...
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</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 Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-
Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-He
ld-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-Aft
er CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    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>

and my printers.conf
<DefaultPrinter ml3560>
Info Samsung ML-3560 Laser
Location main office
DeviceURI ipp://192.168.178.220
State Idle
StateTime 1220527888
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy abort-job
</Printer>





More information about the cups mailing list