Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cupsRasterOpen failed (cups: 1, success-ok, operation not allowed) #6263

Open
flmy0321 opened this issue Feb 18, 2025 · 1 comment
Open

cupsRasterOpen failed (cups: 1, success-ok, operation not allowed) #6263

flmy0321 opened this issue Feb 18, 2025 · 1 comment

Comments

@flmy0321
Copy link

flmy0321 commented Feb 18, 2025

I added a usb printer using cups on my macmini and shared it, and mapped it to the public network. When another mac adds this ipp printer through cups, it can be successfully connected, but it cannot print whenever a print task is added.
I don't know how to solve the error "raster => cupsRasterOpen failed (cups: 1, success-ok, operation not allowed)". Please help me find out what the problem is, thank you.

D [18/Feb/2025:15:35:50 +0800] [Job 118] pageSizeW        = 71.966667
D [18/Feb/2025:15:35:50 +0800] [Job 118] pageSizeH        = 129.822220
D [18/Feb/2025:15:35:50 +0800] [Job 118] gapLength        = 2.000000
D [18/Feb/2025:15:35:50 +0800] [Job 118] orientation        = 0
D [18/Feb/2025:15:35:50 +0800] [Job 118] numcopies        = 1
E [18/Feb/2025:15:35:50 +0800] [Job 118] raster => cupsRasterOpen failed (cups: 1, successful-ok, Operation not permitted)
D [18/Feb/2025:15:35:50 +0800] cupsdMarkDirty(---J-)
D [18/Feb/2025:15:35:50 +0800] cupsdSetBusyState: newbusy="Dirty files", busy="Dirty files"
D [18/Feb/2025:15:35:50 +0800] [Job 118] Set job-printer-state-message to "raster => cupsRasterOpen failed (cups: 1, successful-ok, Operation not permitted)", current level=ERROR
D [18/Feb/2025:15:35:50 +0800] Discarding unused job-progress event...
D [18/Feb/2025:15:35:50 +0800] Discarding unused printer-state-changed event...
D [18/Feb/2025:15:35:50 +0800] [Job 118] PID 15643 (/usr/libexec/cups/filter/raster-cpcl) stopped with status 1.
D [18/Feb/2025:15:35:50 +0800] [Job 118] load_classdriver(/System/Library/Printers/Libraries/USBGenericPrintingClass.plugin) (kr:0x00000000)
D [18/Feb/2025:15:35:50 +0800] [Job 118] STATE: -connecting-to-device
D [18/Feb/2025:15:35:50 +0800] cupsdMarkDirty(---J-)
D [18/Feb/2025:15:35:50 +0800] cupsdSetBusyState: newbusy="Printing jobs and dirty files", busy="Dirty files"
D [18/Feb/2025:15:35:50 +0800] Discarding unused printer-state-changed event...
@flmy0321
Copy link
Author

 LogLevel debug
PageLogFormat

# Allow remote access
Listen *:631
Listen /private/var/run/cupsd
# Share local printers on the local network.
DefaultAuthType Basic
WebInterface Yes
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow from all
</Location>
<Location /admin>
  Order allow,deny
  Allow from all
</Location>
<Location /admin/conf>
  Order allow,deny
  Allow from all
</Location>
<Location /admin/log>
  Order allow,deny
  Allow from all
</Location>
<Policy default>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    Allow from all
  </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>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit CUPS-Get-Document>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default CUPS-Get-Devices>
    Order deny,allow
    Allow from all
  </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>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit All>
    Order deny,allow
    Allow from all
  </Limit>
</Policy>
<Policy authenticated>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    Allow from all
  </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>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    Order deny,allow
    Allow from all
  </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>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit All>
    Order deny,allow
    Allow from all
  </Limit>
</Policy>
<Policy kerberos>
  JobPrivateAccess default
  JobPrivateValues default
  SubscriptionPrivateAccess default
  SubscriptionPrivateValues default
  <Limit Create-Job Print-Job Print-URI Validate-Job>
    Order deny,allow
    Allow from all
  </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>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    Order deny,allow
    Allow from all
  </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>
    Order deny,allow
    Allow heliosliu
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Order deny,allow
    Allow from all
  </Limit>
  <Limit All>
    Order deny,allow
    Allow from all
  </Limit>
</Policy>
ServerAlias *

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant