Client-error-forbidden cups ubuntu

client-error-forbidden cups ubuntu

cups error 403 Forbidden There was an error during the CUPS operation: 'client-error-forbidden'. # file. # Only listen for connections. My fix was to give the lp group permission to run cups commands and then add users to the lp group. First, add lp to the SystemGroup in /etc/. Here is the error log: E [21/Jun/2015:11:43:13 -0400] [Client 9] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost E.

Client-error-forbidden cups ubuntu - pity


------------------------


Downloading firmware to device hp:/usb/HP_LaserJet_P1007?serial=RE0FCTR...
error: Firmware file '/usr/share/hplip/data/firmware/hp_laserjet_p1007.fw.gz' not found.


I tried installing hplip enabling the debug option: http://pastebin.com/sLbCmvUDBack to top
View user's profileSend private message
dzchimp
n00b
n00b


Joined: 11 May 2012
Posts: 14

PostPosted: Tue May 15, 2012 5:33 pm    Post subject: Reply with quote

Bump.... Any more ideas?
Back to top
View user's profileSend private message
LordVan
Developer
Developer


Joined: 28 Nov 2002
Posts: 67
Location: Austria
Back to top
View user's profileSend private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland
PostPosted: Wed May 16, 2012 6:27 am    Post subject: Reply with quote

I have HP 2600dn connected to my home LAN and until I emerged net-print/hplip I couldn't just make it print.
Also hplip has print queue stopped by default, I have to start it every time I switch on the printer.
Back to top
View user's profileSend private message
dzchimp
n00b
n00b


Joined: 11 May 2012
Posts: 14

PostPosted: Wed May 16, 2012 9:41 am    Post subject: Reply with quote

The installation issue of hplip was just due to python 3. eselect on python 2 solved that. I've installed hplip, and the weird thing is that it's as if everything works fine. The print job completes successfully, except for the fact that there is no print. CUPS reports a successfully finished job. I've installed and tried foo* driver too, but same issue. If I werent sure that the printing works on my multiboot Ubuntu, I'd have thought it was hardware related.

I'm at a loss as to how to proceed. I can produce any logs required. Could this be something kernel related?

I'm loving the speed of Gentoo, compared to Ubuntu. If only I could solve the print issue.
Back to top
View user's profileSend private message
mbar
Veteran
Veteran


Joined: 19 Jan 2005
Posts: 1990
Location: Poland
PostPosted: Wed May 16, 2012 12:58 pm    Post subject: Reply with quote

Ahh, one more thing I remembered: I was also forced to install and enable avahi-daemon, without it the printer refused to print also, and yes, there was a notification about finished print job.
Back to top
View user's profileSend private message
dzchimp
n00b
n00b


Joined: 11 May 2012
Posts: 14

PostPosted: Thu May 17, 2012 6:21 pm    Post subject: Reply with quote

Emerged and started avahi-daemon, restarted cups-didnt help

Remerged ghostscript with USE flag cups..

Now I have the following in my cups log:
Code:
D [17/May/2012:23:40:04 +0530] [cups-driverd] Loading "/usr/share/ppd/NRG"...
D [17/May/2012:23:40:04 +0530] [cups-driverd] ChangedPPD=1
D [17/May/2012:23:40:04 +0530] cupsdReadClient: 12 WAITING Closing on EOF
D [17/May/2012:23:40:04 +0530] cupsdCloseClient: 12
I [17/May/2012:23:40:05 +0530] [cups-driverd] Wrote "/var/cache/cups/ppds.dat", 5619 PPDs...
I [17/May/2012:23:40:05 +0530] [cups-driverd] Wrote "/var/cache/cups/ppds.dat", 5619 PPDs...
D [17/May/2012:23:40:27 +0530] [cups-driverd] regex_string("HP LaserJet P1007 Foomatic/foo2xqx (recommended)")
D [17/May/2012:23:40:27 +0530] [cups-driverd] regex_string: "HP LaserJet P1007 Foomatic/foo2xqx \(recommended\)"
D [17/May/2012:23:40:27 +0530] [cups-driverd] regex_string: OK
D [17/May/2012:23:40:27 +0530] Script header: Content-Type: application/ipp
D [17/May/2012:23:40:27 +0530] Script header:
D [17/May/2012:23:40:27 +0530] PID 14704 (/usr/libexec/cups/daemon/cups-driverd) exited with no errors.
D [17/May/2012:23:40:27 +0530] Script header: Content-Type: text/html;charset=utf-8
D [17/May/2012:23:40:27 +0530] Script header:
D [17/May/2012:23:40:27 +0530] cupsdReadClient: 14 WAITING Closing on EOF
D [17/May/2012:23:40:27 +0530] cupsdCloseClient: 14
D [17/May/2012:23:40:27 +0530] cupsdSetBusyState: Not busy
D [17/May/2012:23:40:27 +0530] PID 14703 (/usr/libexec/cups/cgi-bin/admin.cgi) exited with no errors.
I [17/May/2012:23:40:48 +0530] Scheduler shutting down normally.
D [17/May/2012:23:40:48 +0530] Discarding unused server-stopped event...
D [17/May/2012:23:40:48 +0530] cupsdCloseClient: 11
D [17/May/2012:23:40:48 +0530] cupsdDeregisterPrinter(p=0xb9469818(HP_LaserJet_P1007), removeit=1)
I [17/May/2012:23:40:48 +0530] Saving job cache file "/var/cache/cups/job.cache"...
E [17/May/2012:23:41:06 +0530] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/HP_LaserJet_P1007) from localhost
E [17/May/2012:23:44:08 +0530] Returning IPP client-error-document-format-not-supported for Print-Job (ipp://localhost:631/printers/HP_LaserJet_P1007) from localhost
E [17/May/2012:23:44:43 +0530] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
E [17/May/2012:23:45:06 +0530] Returning IPP server-error-not-accepting-jobs for Print-Job (ipp://localhost/printers/HP-LaserJet-P1007) from localhost
E [17/May/2012:23:45:17 +0530] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
E [17/May/2012:23:45:48 +0530] [cups-driverd] Bad driver information file "/usr/share/cups/model/foomatic-db-ppds/Kyocera/ReadMe.htm"!
Back to top
View user's profileSend private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto
PostPosted: Thu May 17, 2012 7:50 pm    Post subject: Reply with quote

sorry if this is obvious, but can you print if
you boot another distros live-CD, like ubuntu?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profileSend private message
dzchimp
n00b
n00b


Joined: 11 May 2012
Posts: 14

PostPosted: Thu May 17, 2012 7:51 pm    Post subject: Reply with quote

albright wrote:
sorry if this is obvious, but can you print if
you boot another distros live-CD, like ubuntu?


Yup. It works fine on Ubuntu. I havent checked out printing on a live boot, but works fine on Ubuntu installation. I have a multi boot setup in Grub.
Back to top
View user's profileSend private message
dzchimp
n00b
n00b


Joined: 11 May 2012
Posts: 14

PostPosted: Fri May 18, 2012 1:24 am    Post subject: Reply with quote

Maybe I should just reinstall everything from scratch after formatting? But I'm almost sure it's going to turn out the same.
Back to top
View user's profileSend private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto
PostPosted: Fri May 18, 2012 2:29 am    Post subject: Reply with quote

how different are the gentoo and ubuntu cupsd.conf files
and other relevant config files?
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profileSend private message
LordVan
Developer
Developer


Joined: 28 Nov 2002
Posts: 67
Location: Austria
PostPosted: Fri May 18, 2012 8:26 am    Post subject: Reply with quote

dzchimp wrote:
albright wrote:
sorry if this is obvious, but can you print if
you boot another distros live-CD, like ubuntu?


Yup. It works fine on Ubuntu. I havent checked out printing on a live boot, but works fine on Ubuntu installation. I have a multi boot setup in Grub.


You could try comparing the drivers, settings and see what is different. maybe they have a different ppd or something like that
_________________
I don't suffer from insanity. I enjoy every minute of it.
Back to top
View user's profileSend private message
dzchimp
n00b
n00b


Joined: 11 May 2012
Posts: 14

PostPosted: Fri May 18, 2012 11:31 am    Post subject: Reply with quote

LordVan wrote:
dzchimp wrote:
albright wrote:
sorry if this is obvious, but can you print if
you boot another distros live-CD, like ubuntu?


Yup. It works fine on Ubuntu. I havent checked out printing on a live boot, but works fine on Ubuntu installation. I have a multi boot setup in Grub.


You could try comparing the drivers, settings and see what is different. maybe they have a different ppd or something like that


This is the difference in cupsd.conf (Target chosen as Ubuntu)
Code:
--- /etc/cups/cupsd.conf   2012-05-17 23:43:40.827781921 +0530
+++ /ubunturoot/etc/cups/cupsd.conf   2011-09-27 18:46:01.000000000 +0530
@@ -1,5 +1,4 @@
 #
-# "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $"
 #
 # Sample configuration file for the CUPS scheduler.  See "man cupsd.conf" for a
 # complete description of this file.
@@ -9,6 +8,10 @@
 # for troubleshooting...
 LogLevel warn
 
+# Deactivate CUPS' internal logrotating, as we provide a better one, especially
+# LogLevel debug2 gets usable now
+MaxLogSize 0
+
 # Administrator user group...
 SystemGroup lpadmin
 
@@ -18,14 +21,18 @@ Listen localhost:631
 Listen /var/run/cups/cups.sock
 
 # Show shared printers on the local network.
-Browsing On
+Browsing Off
 BrowseOrder allow,deny
 BrowseAllow all
-BrowseLocalProtocols CUPS
+BrowseLocalProtocols CUPS dnssd
+BrowseAddress @LOCAL
 
 # Default authentication type, when authentication is required...
 DefaultAuthType Basic
 
+# Web interface setting...
+WebInterface Yes
+
 # Restrict access to the server...
 <Location />
   Order allow,deny
@@ -45,12 +52,18 @@ DefaultAuthType Basic
 
 # Set the default printer/job policies...
 <Policy default>
+  # Job/subscription privacy...
+  JobPrivateAccess default
+  JobPrivateValues default
+  SubscriptionPrivateAccess default
+  SubscriptionPrivateValues default
+
   # Job-related operations must be done by the owner or an administrator...
   <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 CUPS-Move-Job CUPS-Get-Document>
+  <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>
@@ -63,7 +76,7 @@ DefaultAuthType Basic
   </Limit>
 
   # All printer operations require a printer operator to authenticate...
-  <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
+  <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
@@ -82,13 +95,19 @@ DefaultAuthType Basic
 
 # Set the authenticated printer/job policies...
 <Policy authenticated>
+  # Job/subscription privacy...
+  JobPrivateAccess default
+  JobPrivateValues default
+  SubscriptionPrivateAccess default
+  SubscriptionPrivateValues default
+
   # Job-related operations must be done by the owner or an administrator...
   <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 CUPS-Move-Job CUPS-Get-Document>
+  <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
@@ -102,7 +121,7 @@ DefaultAuthType Basic
   </Limit>
 
   # All printer operations require a printer operator to authenticate...
-  <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 CUPS-Accept-Jobs CUPS-Reject-Jobs>
+  <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
@@ -121,5 +140,4 @@ DefaultAuthType Basic
 </Policy>
 
 #
-# End of "$Id: cupsd.conf.in 9310 2010-09-21 22:34:57Z mike $".
 #


I'm not sure where I should be looking for the drivers. Where's the info on the currently active ppd stored?
Back to top
View user's profileSend private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2002
Location: United Kingdom
PostPosted: Fri May 18, 2012 11:48 am    Post subject: Reply with quote

Is your printer connected via USB or on a network? If the former, I had to rebuild the kernel with CONFIG_USB_PRINTER=n and rebuild CUPS with USE="usb" in order to get my USB printer working.
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.
Fitzcarraldo's blog
Back to top
View user's profileSend private message
dzchimp
n00b
n00b


Joined: 11 May 2012
Posts: 14

PostPosted: Fri May 18, 2012 12:23 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
Is your printer connected via USB or on a network? If the former, I had to rebuild the kernel with CONFIG_USB_PRINTER=n and rebuild CUPS with USE="usb" in order to get my USB printer working.


Well, I tried that, but a strange thing happened. :)
Code:
[email protected] ~/downloads/cups-1.5.3 $ USE="usb" sudo emerge cups

 * IMPORTANT: 2 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) net-print/cups-1.4.8-r1
 * cups-1.4.8-source.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                          [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/3.2.12-gentoo/build
 * Found sources for kernel version:
 *     3.2.12-gentoo
 * If you plan to use USB printers you should enable the USB_PRINTER
 * support in your kernel.
 * Please enable it:
 *     CONFIG_USB_PRINTER=y
 * in /usr/src/linux/.config or
 *     Device Drivers --->
 *         USB support  --->
 *             [*] USB Printer support
>>> Unpacking source...


I had recompiled the kernel as per your suggestion, but apparently the system requests that kernel flag. I had 'CONFIG_USB_PRINTER=y' in .config, but set it to n as per your suggestion (though it didnt make sense to me to disable it, but no doubt I'm missing something here)

Edit: No, that didnt work. Gentoo couldnt detect my printer at all after setting CONFIG_USB_PRINTER=n. I'm going to recompile kernel to what it was previously.
Back to top
View user's profileSend private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto
PostPosted: Fri May 18, 2012 12:54 pm    Post subject: Reply with quote

Quote:
Emerging (1 of 1) net-print/cups-1.4.8-r1


I don't understand why you're emerging the old version of cups

About usb, the new cups has oddities here. I just built
my cups with the usb use flag OFF and didn't need to
worry about the kernel.

You've probably read this already but if not it's
up to date:

http://en.gentoo-wiki.com/wiki/CUPS
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profileSend private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2002
Location: United Kingdom
PostPosted: Fri May 18, 2012 1:03 pm    Post subject: Reply with quote

dzchimp wrote:
Edit: No, that didnt work. Gentoo couldnt detect my printer at all after setting CONFIG_USB_PRINTER=n. I'm going to recompile kernel to what it was previously.

That is strange, as I can only get USB printers to work if I have CONFIG_USB_PRINTER disabled in the kernel (as shown below) and have the usb USE flag set in CUPS version 1.5.2-r21 (also shown below):

Code:
# cat /usr/src/linux/.config
-----------------------------------------

  Option      Description                                       
  ----------  --------------------------------------------------
  d           Download plug-in from HP (recomended)             
  p           Specify a path to the plug-in (advanced)         
  q           Quit hp-plugin (skip installation)               

Enter option (d=download*, p=specify path, q=quit) ? d

--------------------------

-------------------

Checking for network connection...
Downloading plug-in from: http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.12.4-plugin.run
Downloading plug-in: [\                                                                                ] 0%   Receiving digital keys: /usr/bin/gpg --no-permission-warning --keyserver pgp.mit.edu --recv-keys 0xA59047B9
 

----------------------
Provided by: cups-server-common_2.2.7-1ubuntu2_allbug

NAME

cupsd-logs - cupsd log files (access_log, error_log, and page_log)

DESCRIPTION

cupsd(8) normally maintains three log files: access_log to track requests that are submitted to the scheduler, error_log to track progress and errors, and page_log to track pages that are printed. Configuration directives in cupsd.conf(5) and cups-files.conf(5) control what information is logged and where it is stored. ACCESSLOGFILEFORMAT The access_log file lists each HTTP resource that is accessed by a web browser or client. Each line is in an extended version of the so-called "Common Log Format" used by many web servers and web reporting tools: hostgroupuserdate-time "methodresourceversion" statusbytesipp-operationipp-status For example: 10.0.1.2 - - [01/Dec/2005:21:50:28 +0000] "POST / HTTP/1.1" 200 317 CUPS-Get-Printers successful-ok-ignored-or-substituted-attributes localhost - - [01/Dec/2005:21:50:32 +0000] "GET /admin HTTP/1.1" 200 0 - - localhost - - [01/Dec/2005:21:50:32 +0000] "POST / HTTP/1.1" 200 157 CUPS-Get-Printers successful-ok-ignored-or-substituted-attributes localhost - - [01/Dec/2005:21:50:32 +0000] "POST / HTTP/1.1" 200 1411 CUPS-Get-Devices - localhost - - [01/Dec/2005:21:50:32 +0000] "GET /admin HTTP/1.1" 200 6667 - - The host field will normally only be an IP address unless you have enabled the HostNameLookups directive in the cupsd.conf file or if the IP address corresponds to your local machine. The group field always contains "-". The user field is the authenticated username of the requesting user. If no username and password is supplied for the request then this field contains "-". The date-time field is the date and time of the request in local time and is in the format "[DD/MON/YYYY:HH:MM:SS +ZZZZ]". The method field is the HTTP method used: "GET", "HEAD", "OPTIONS", "POST", or "PUT". "GET" requests are used to get files from the server, both for the web interface and to get configuration and log files. "HEAD" requests are used to get information about a resource prior to a "GET". "OPTIONS" requests are used to upgrade connections to TLS encryption. "POST" requests are used for web interface forms and IPP requests. "PUT" requests are used to upload configuration files. The resource field is the filename of the requested resource. The version field is the HTTP specification version used by the client. For CUPS clients this will always be "HTTP/1.1". The status field contains the HTTP result status of the request, as follows: 200 Successful operation. 201 File created/modified successfully. 304 The requested file has not changed. 400 Bad HTTP request; typically this means that you have a malicious program trying to access your server. 401 Unauthorized, authentication (username + password) is required. 403 Access is forbidden; typically this means that a client tried to access a file or resource they do not have permission to access. 404 The file or resource does not exist. 405 URL access method is not allowed; typically this means you have a web browser using your server as a proxy. 413 Request too large; typically this means that a client tried to print a file larger than the MaxRequestSize allows. 426 Upgrading to TLS-encrypted connection. 500 Server error; typically this happens when the server is unable to open/create a file - consult the error_log file for details. 501 The client requested encryption but encryption support is not enabled/compiled in. 505 HTTP version number not supported; typically this means that you have a malicious program trying to access your server. The bytes field contains the number of bytes in the request. For POST requests the bytes field contains the number of bytes of non-IPP data that is received from the client. The ipp-operation field contains either "-" for non-IPP requests or the IPP operation name for POST requests containing an IPP request. The ipp-status field contains either "-" for non-IPP requests or the IPP status code name for POST requests containing an IPP response. ERRORLOGFILEFORMAT The error_log file lists messages from the scheduler - errors, warnings, etc. The LogLevel directive in the cupsd.conf(5) file controls which messages are logged: level date-time message For example: I [20/May/1999:19:18:28 +0000] [Job 1] Queued on 'DeskJet' by 'mike'. D [20/May/1999:19:18:28 +0000] [Job 1] argv[0]="DeskJet" D [20/May/1999:19:18:28 +0000] [Job 1] argv[1]="1" D [20/May/1999:19:18:28 +0000] [Job 1] argv[2]="mike" D [20/May/1999:19:18:28 +0000] [Job 1] argv[3]="myjob" D [20/May/1999:19:18:28 +0000] [Job 1] argv[4]="1" D [20/May/1999:19:18:28 +0000] [Job 1] argv[5]="media= na_letter_8.5x11in sides=one-sided" D [20/May/1999:19:18:28 +0000] [Job 1] argv[6]="/var/spool/cups/ d000001-001" I [20/May/1999:19:21:02 +0000] [Job 2] Queued on 'DeskJet' by 'mike'. I [20/May/1999:19:22:24 +0000] [Job 2] Canceled by 'mike'. The level field contains the type of message: A Alert message (LogLevel alert) C Critical error message (LogLevel crit) D Debugging message (LogLevel debug) d Detailed debugging message (LogLevel debug2) E Normal error message (LogLevel error) I Informational message (LogLevel info) N Notice message (LogLevel notice) W Warning message (LogLevel warn) X Emergency error message (LogLevel emerg) The date-time field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the access_log file. The message field contains a free-form textual message. Messages from job filters are prefixed with "[Job NNN]" where "NNN" is the job ID. PAGELOGFILEFORMAT The page_log file lists each page or group of pages that are sent to a printer. By default, each line contains the following information: printeruserjob-iddate-timepage-numbernum-copiesjob-billingjob-originating-host-namejob-namemediasidesprinteruserjob-iddate-timetotalnum-impressionsjob-billingjob-originating-host-namejob-namemediasides For example the entries for a two page job called "myjob" might look like: DeskJet root 1 [20/May/1999:19:21:05 +0000] 1 1 acme-123 localhost myjob na_letter_8.5x11in one-sided DeskJet root 1 [20/May/1999:19:21:05 +0000] 2 1 acme-123 localhost myjob na_letter_8.5x11in one-sided DeskJet root 1 [20/May/1999:19:21:06 +0000] total 2 acme-123 localhost myjob na_letter_8.5x11in one-sided The PageLogFormat directive in the cupsd.conf(5) file can be used to change this information. The printer field contains the name of the printer that printed the page. If you send a job to a printer class, this field will contain the name of the printer that was assigned the job. The user field contains the name of the user (the IPP requesting-user-name attribute) that submitted this file for printing. The job-id field contains the job number of the page being printed. The date-time field contains the date and time of when the page started printing. The format of this field is identical to the data-time field in the access_log file. The page-number and num-copies fields contain the page number and number of copies being printed of that page. For printers that cannot produce copies on their own, the num- copies field will always be 1. Lines containing the keyword "total" have a num-impressions field instead which provides the total number of impressions (sides) that have been printed on for the job. The job-billing field contains a copy of the job-billing or job-account-id attributes provided with the IPP Create-Job or Print-Job requests or "-" if neither was provided. The job-originating-host-name field contains the hostname or IP address of the client that printed the job. The job-name field contains a copy of the job-name attribute provided with the IPP Create- Job or Print-Job requests or "-" if none was provided. The media field contains a copy of the media or media-col/media-size attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided. The sides field contains a copy of the sides attribute provided with the IPP Create-Job or Print-Job requests or "-" if none was provided.

SEEALSO

cupsd(8), cupsd.conf(5), cups-files.conf(5), CUPS Online Help (http://localhost:631/help)

COPYRIGHT

Copyright © 2007-2017 by Apple Inc.
DOWNLOADING FIRMWARE client-error-forbidden cups ubuntu

youtube video

CUPS web interface says \

0 Comments

Leave a Comment

Proudly Powered By WordPress.

Theme Kaira by .