Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cupsd and Dirty Files - Leads to hanging print
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1490

PostPosted: Thu Nov 30, 2023 5:21 pm    Post subject: Cupsd and Dirty Files - Leads to hanging print Reply with quote

I have a print server that we send PDF invoices to to print. 95% of the time, no issues. But the other 5%, the printer will start printing and *hang* halfway through printing. Very annoying. The only want to get it up is to reboot the printer and cups will try to print again. Sometimes this will fail multiple times.

Here is a snippet of the error_log during the hang. I see 'Dirty files when the error happens.


Code:
D [30/Nov/2023:10:20:27 -0700] [Client 34] Read: status=200, state=6
D [30/Nov/2023:10:20:27 -0700] [Client 34] No authentication data provided.
D [30/Nov/2023:10:20:27 -0700] [Client 34] 2.0 Set-Job-Attributes 1
D [30/Nov/2023:10:20:27 -0700] Set-Job-Attributes ipp://localhost/jobs/29747
D [30/Nov/2023:10:20:27 -0700] Set-Job-Attributes client-error-not-possible: Job #29747 is finished and cannot be altered.
E [30/Nov/2023:10:20:27 -0700] [Client 34] Returning IPP client-error-not-possible for Set-Job-Attributes (ipp://localhost/jobs/29747) from localhost.
D [30/Nov/2023:10:20:27 -0700] [Client 34] Content-Length: 139
D [30/Nov/2023:10:20:27 -0700] [Client 34] cupsdSendHeader: code=200, type="application/ipp", auth_type=0
D [30/Nov/2023:10:20:27 -0700] [Client 34] con->http=0x609320
D [30/Nov/2023:10:20:27 -0700] [Client 34] cupsdWriteClient error=0, used=0, state=HTTP_STATE_POST_SEND, data_encoding=HTTP_ENCODING_LENGTH, data_remaining=139, response=0x4f6ac0(IPP_STATE_DATA), pipe_pid=0, file=-1
D [30/Nov/2023:10:20:27 -0700] [Client 34] Writing IPP response, ipp_state=IPP_STATE_DATA, old wused=0, new wused=0
D [30/Nov/2023:10:20:27 -0700] [Client 34] bytes=0, http_state=0, data_remaining=139
D [30/Nov/2023:10:20:27 -0700] [Client 34] Flushing write buffer.
D [30/Nov/2023:10:20:27 -0700] [Client 34] New state is HTTP_STATE_WAITING
D [30/Nov/2023:10:20:27 -0700] [Client 34] Waiting for request.
D [30/Nov/2023:10:20:27 -0700] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"


Current version: 2.3.3_p2-r3

Any ideas?

Here is my cupsd.conf

Code:
#LogLevel warn
LogLevel debug
PageLogFormat
# Allow remote access
Port 631
Listen /run/cups/cups.sock
Browsing On
BrowseLocalProtocols
DefaultAuthType Basic
WebInterface Yes
MaxClients 20000
MaxClientsPerHost 1000
MaxJobs 500
MaxJobsPerPrinter 50
MaxJobTime 3600
ErrorPolicy retry-job
PreserveJobFiles 2d

<Location />
  # Allow remote access...
  Order allow,deny
  Allow all
</Location>
<Location /admin>
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
</Location>
<Location /admin/log>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  allow from 192.168.1.100
  Order allow,deny
  Allow @LOCAL
  Order allow,deny
  Allow @LOCAL
</Location>
<Policy default>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
  </Limit>
  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    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 CUPS-Get-Devices>
    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-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Default
    Order deny,allow
  </Limit>
  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Default
    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-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Default
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
<Policy kerberos>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    AuthType Negotiate
    Order deny,allow
  </Limit>
  <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 Cancel-My-Jobs Close-Job CUPS-Move-Job CUPS-Get-Document>
    AuthType Negotiate
    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-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After Cancel-Jobs CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    AuthType Negotiate
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>


hanji
_________________
Server Admin Blog - Uno-Code.com
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum