View previous topic :: View next topic |
Author |
Message |
Magnum03 n00b
Joined: 01 Dec 2006 Posts: 6
|
Posted: Thu May 08, 2008 8:06 pm Post subject: CUPS pretending to work... |
|
|
Hi all,
a week ago my son turned of the power for my server, printer, modem etc. When I powered it back on CUPS wouldn't print.
It could no longer see my printer. After fiddling around I emerge the newest CUPS and did:
Code: |
lpadmin -p DCP-115C -E -v file:/dev/usb/lp0 -P /usr/share/cups/model/brmfc210c_cups.ppd
|
And CUPS could se my printer and I can print test pages but nothing else...
That is - everything seems to be working, my Mac sends the document for printing to CUPS, I can se it arrive with tcpdump, it shows up as a job on the CUPS webpage and I get no errors in the log - but my printer doesn't even react.
The only thing I get in the errorlog is:
Code: |
D [08/May/2008:21:31:55 +0200] cupsdAcceptClient: 7 from 192.168.0.144:631 (IPv4)
D [08/May/2008:21:31:55 +0200] cupsdReadClient: 7 POST /printers/DCP-115C HTTP/1.1
D [08/May/2008:21:31:55 +0200] cupsdAuthorize: No authentication data provided.
D [08/May/2008:21:31:55 +0200] Get-Printer-Attributes ipp://titania.local.:631/printers/DCP-115C
D [08/May/2008:21:31:55 +0200] cupsdProcessIPPRequest: 7 status_code=0 (successful-ok)
D [08/May/2008:21:31:55 +0200] cupsdReadClient: 7 POST /printers/DCP-115C HTTP/1.1
D [08/May/2008:21:31:55 +0200] cupsdAuthorize: No authentication data provided.
D [08/May/2008:21:31:56 +0200] Print-Job ipp://titania.local.:631/printers/DCP-115C
D [08/May/2008:21:31:56 +0200] print_job: auto-typing file...
D [08/May/2008:21:31:56 +0200] print_job: request file type is application/octet-stream.
D [08/May/2008:21:31:56 +0200] add_job: requesting-user-name="hoff"
D [08/May/2008:21:31:56 +0200] Adding default job-sheets values "none,none"...
I [08/May/2008:21:31:56 +0200] Adding start banner page "none" to job 280.
D [08/May/2008:21:31:56 +0200] Discarding unused job-created event...
I [08/May/2008:21:31:56 +0200] Adding end banner page "none" to job 280.
I [08/May/2008:21:31:56 +0200] Job 280 queued on "DCP-115C" by "hoff".
D [08/May/2008:21:31:56 +0200] Job 280 hold_until = 0
D [08/May/2008:21:31:56 +0200] Discarding unused printer-state-changed event...
D [08/May/2008:21:31:56 +0200] job-sheets=none,none
D [08/May/2008:21:31:56 +0200] banner_page = 0
D [08/May/2008:21:31:56 +0200] [Job 280] argv[0]="DCP-115C"
D [08/May/2008:21:31:56 +0200] [Job 280] argv[1]="280"
D [08/May/2008:21:31:56 +0200] [Job 280] argv[2]="hoff"
D [08/May/2008:21:31:56 +0200] [Job 280] argv[3]="Teknisk tegning"
D [08/May/2008:21:31:56 +0200] [Job 280] argv[4]="1"
D [08/May/2008:21:31:56 +0200] [Job 280] argv[5]="job-uuid=urn:uuid:b72a8e24-75c4-3a06-6be3-48e8227952c9"
D [08/May/2008:21:31:56 +0200] [Job 280] argv[6]="/var/spool/cups/d00280-001"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[0]="CUPS_CACHEDIR=/var/cache/cups"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[1]="CUPS_DATADIR=/usr/share/cups"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[2]="CUPS_DOCROOT=/usr/share/cups/html"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[3]="CUPS_FONTPATH=/usr/share/cups/fonts"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[4]="CUPS_REQUESTROOT=/var/spool/cups"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[5]="CUPS_SERVERBIN=/usr/libexec/cups"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[6]="CUPS_SERVERROOT=/etc/cups"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[7]="CUPS_STATEDIR=/var/run/cups"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[8]="PATH=/usr/libexec/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[9]="SERVER_ADMIN=root@titania"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[10]="SOFTWARE=CUPS/1.2.12"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[11]="TMPDIR=/var/spool/cups/tmp"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[12]="USER=root"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[13]="CUPS_SERVER=/var/run/cups/cups.sock"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[14]="CUPS_ENCRYPTION=IfRequested"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[15]="IPP_PORT=631"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[16]="CHARSET=utf-8"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[17]="LANG=en_US"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[18]="PPD=/etc/cups/ppd/DCP-115C.ppd"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[19]="RIP_MAX_CACHE=8m"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[20]="CONTENT_TYPE=application/octet-stream"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[21]="DEVICE_URI=usb://Brother/DCP-115C"
D [08/May/2008:21:31:56 +0200] [Job 280] envp[22]="PRINTER=DCP-115C"
I [08/May/2008:21:31:56 +0200] Started backend /usr/libexec/cups/backend/usb (PID 31431) for job 280.
D [08/May/2008:21:31:56 +0200] Discarding unused job-state event...
D [08/May/2008:21:31:56 +0200] cupsdProcessIPPRequest: 7 status_code=0 (successful-ok)
D [08/May/2008:21:31:56 +0200] Discarding unused printer-state-changed event...
D [08/May/2008:21:31:56 +0200] cupsdReadClient: 7 POST /printers/DCP-115C HTTP/1.1
D [08/May/2008:21:31:56 +0200] cupsdAuthorize: No authentication data provided.
D [08/May/2008:21:31:56 +0200] Get-Printer-Attributes ipp://titania.local.:631/printers/DCP-115C
D [08/May/2008:21:31:56 +0200] cupsdProcessIPPRequest: 7 status_code=0 (successful-ok)
D [08/May/2008:21:31:56 +0200] cupsdCloseClient: 7
D [08/May/2008:21:38:40 +0200] cupsdNetIFUpdate: "lo" = localhost...
D [08/May/2008:21:38:40 +0200] cupsdNetIFUpdate: "eth2" = 192.168.0.1...
D [08/May/2008:21:38:40 +0200] cupsdNetIFUpdate: "eth1" = 10.10.10.1...
D [08/May/2008:21:38:40 +0200] cupsdNetIFUpdate: "eth0" = 85.81.208.66...
|
Anyone got any ideas, because I'm lost
/Magnum |
|
Back to top |
|
|
mosburn n00b
Joined: 27 Jul 2007 Posts: 22 Location: Denver
|
Posted: Thu May 08, 2008 8:59 pm Post subject: |
|
|
Check your /etc/cups/printers.conf file for stoped. I am not sure if that is the correct file in gentoo as I am at work now and connot check, but sometimes the printer state changes from idle (if not printing) to stopped or any other state that is not the norm. The following will tell you the state of the file.
Code: | cd /etc/cups
grep State *
|
You can change the state back to Idle and restart cups to fix this if needed. |
|
Back to top |
|
|
Magnum03 n00b
Joined: 01 Dec 2006 Posts: 6
|
Posted: Fri May 09, 2008 7:14 am Post subject: |
|
|
Code: |
printers.conf:State Idle
printers.conf:StateTime 1210274159
|
This is also what it says on the webinterface.
/Magnum |
|
Back to top |
|
|
|