[cups] client-error-bad-request for Get-Job-Attributes (no URI)

Oleg Sivokon olegsivokon at gmail.com
Sun Dec 21 22:09:48 PST 2014


Hello,
I'm trying to connect a Xerox Phaser 3010 to my Fedora 18 machine. The
printer works, when connected to Windows, but on Linux I couldn't
connect it.

Below is the log of me trying to print a test page:

I [22/Dec/2014:01:36:08 +0200] Saving printers.conf...
I [22/Dec/2014:01:36:09 +0200] Generating printcap /etc/printcap...
I [22/Dec/2014:01:36:09 +0200] Saving job.cache...
I [22/Dec/2014:01:36:09 +0200] Saving subscriptions.conf...
I [22/Dec/2014:01:36:14 +0200] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=6767)
I [22/Dec/2014:01:36:16 +0200] Started "/usr/lib/cups/cgi-bin/jobs.cgi" (pid=6769)
I [22/Dec/2014:01:46:39 +0200] Scheduler shutting down normally.
I [22/Dec/2014:01:46:39 +0200] Saving subscriptions.conf...
I [22/Dec/2014:01:46:39 +0200] Saving job.cache...
I [22/Dec/2014:01:46:39 +0200] Listening to 0.0.0.0:631 (IPv4)
I [22/Dec/2014:01:46:39 +0200] Listening to [v1.::]:631 (IPv6)
I [22/Dec/2014:01:46:39 +0200] Listening to /var/run/cups/cups.sock (Domain)
I [22/Dec/2014:01:46:39 +0200] Remote access is enabled.
I [22/Dec/2014:01:46:39 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [22/Dec/2014:01:46:39 +0200] Using default TempDir of /var/spool/cups/tmp...
I [22/Dec/2014:01:46:39 +0200] Configured for up to 100 clients.
I [22/Dec/2014:01:46:39 +0200] Allowing up to 100 client connections per host.
I [22/Dec/2014:01:46:39 +0200] Using policy "default" as the default.
I [22/Dec/2014:01:46:39 +0200] Full reload is required.
I [22/Dec/2014:01:46:39 +0200] Loaded MIME database from "/usr/share/cups/mime" and "/etc/cups": 36 types, 43 filters...
W [22/Dec/2014:01:46:39 +0200] failed to find device: cups-MX320_series
I [22/Dec/2014:01:46:39 +0200] Registering ICC color profiles for "MX320_series"
W [22/Dec/2014:01:46:39 +0200] failed to find device: cups-Xerox_Phaser_3010
I [22/Dec/2014:01:46:39 +0200] Registering ICC color profiles for "Xerox_Phaser_3010"
I [22/Dec/2014:01:46:39 +0200] Loading job cache file "/var/cache/cups/job.cache"...
I [22/Dec/2014:01:46:39 +0200] Full reload complete.
I [22/Dec/2014:01:46:39 +0200] Cleaning out old files in "/var/spool/cups/tmp"...
I [22/Dec/2014:01:46:39 +0200] Cleaning out old files in "/var/cache/cups"...
I [22/Dec/2014:01:46:39 +0200] Listening to 0.0.0.0:631 on fd 11...
I [22/Dec/2014:01:46:39 +0200] Listening to [v1.::]:631 on fd 12...
I [22/Dec/2014:01:46:39 +0200] Listening to /var/run/cups/cups.sock:631 on fd 3...
I [22/Dec/2014:01:46:39 +0200] Resuming new connection processing...
I [22/Dec/2014:01:46:46 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7384)
I [22/Dec/2014:01:46:47 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7390)
I [22/Dec/2014:01:46:53 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7394)
E [22/Dec/2014:01:46:53 +0200] Returning IPP client-error-bad-request for Get-Job-Attributes (no URI) from localhost
I [22/Dec/2014:01:46:58 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7421)
I [22/Dec/2014:01:47:08 +0200] Started "/usr/lib/cups/cgi-bin/printers.cgi" (pid=7437)
I [22/Dec/2014:01:47:09 +0200] Saving job.cache...
I [22/Dec/2014:01:47:09 +0200] Saving subscriptions.conf...
E [22/Dec/2014:01:52:08 +0200] Returning IPP client-error-bad-request for Get-Job-Attributes (no URI) from localhost

And printers.conf

<Printer Xerox_Phaser_3010>
UUID urn:uuid:fb2f9380-344e-364a-7b08-eabceae3e865
Info Xerox Phaser 3010
Location wvxvvw-laptop
MakeModel Xerox Phaser 3200MFP Foomatic/Postscript
DeviceURI usb://Xerox/Phaser%203010?serial=3182465983
State Stopped
StateMessage Unplugged or turned off
StateTime 1419217441
Reason paused
Type 8433684
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
</Printer>

And cupsd.conf

MaxLogSize 0
LogLevel info
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseRemoteProtocols CUPS
BrowseAddress @LOCAL
BrowseLocalProtocols CUPS dnssd
DefaultAuthType Basic
WebInterface Yes
<Location />
  # Allow shared printing...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  Order allow,deny
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
</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 Cancel-Job 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>

I can access CUPS web interface, but I can't perform all operations, for
instance, I can't add or remove printers (I'm not sure if this is
important).

I've tried printing like this:

$ yum info cups
Loaded plugins: langpacks, presto, refresh-packagekit
Installed Packages
Name        : cups
Arch        : x86_64
Epoch       : 1
Version     : 1.5.4
Release     : 28.fc18
Size        : 9.1 M
Repo        : installed
Summary     : Common Unix Printing System
URL         : http://www.cups.org/
License     : GPLv2
Description : The Common UNIX Printing System provides a portable printing layer
            : for UNIX® operating systems. It has been developed by Easy
            : Software Products to promote a standard printing solution for all
            : UNIX vendors and users. CUPS provides the System V and Berkeley
            : command-line interfaces.
$ lpstat -p
printer Xerox_Phaser_3010 is idle.  enabled since Mon 22 Dec 2014 01:47:01 AM IST
	Sending data to printer.
lp -d Xerox_Phaser_3010 ./test.txt
request id is Xerox_Phaser_3010-19 (1 file(s))
$ lpoptions -p Xerox_Phaser_3010 -l
PageSize/Page Size: Custom.WIDTHxHEIGHT *Letter A4 11x17 A3 A5 B5 Env10 EnvC5 EnvDL EnvISOB5 EnvMonarch Executive Legal
Duplex/Double-Sided Printing: DuplexNoTumble DuplexTumble *None
Resolution/Resolution: 150x150dpi 300x300dpi *600x600dpi 1200x1200dpi

I tried looking into online documentation here:
https://www.cups.org/documentation.php/doc-1.5/policies.html
where I could find a mention of Get-Job-Attributes but the information
is sketchy / doesn't tell anything about what Get-Job-Attributes is or
what it can be configured to etc.

Please help.

Thanks,

Oleg



More information about the cups mailing list