Cups Broken

Development on core packages and the distribution goes on in here.

Cups Broken

Postby Socaltom » Mon Nov 07, 2011 8:40 pm

I had everything working fine, CUPS was printing to an HP1320 and an HP2200 all in one color printer, now it can't find the drivers. I've reinstalled CUPS and HPLIP and it still reports that it can't find drivers when I try to install the printers. HELP!
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Cups Broken

Postby slycat » Tue Nov 08, 2011 5:04 am

I noticed the same issue a week ago when I tried to print something. I believe it was caused by the update from 1.4->1.5? I am not positive as I have yet to have a crack at fixing it since I found out there was a problem (busy busy busy). Within the next few days, however, I'll try to take a stab at it.

Also, note: I am using an Espon CX7400 with gutenprint, not an HP with hplib :|

Edit: Tom, what does your "/var/log/cups/error_log" say? I am getting a few errors, some with foomatic-db but one stands out:
$this->bbcode_second_pass_quote('', '[')CGI] Could not connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

Google search doesn't provide much, so I am not sure what the next step is.

If you aren't getting this error try running "cups-genppdupdate" because I came across an error with this, too (solved by cp /usr/lib/libgnutils.so.28 /usr/lib/libgnutils.so.26). If you had to blacklist usblp make sure it is still blacklisted.

Reinstalled ALL it's components with no luck (cups, ghostscript, gutenprint, foomatic-db, gsfonts).

Edit2: Huzzah!
For me, foomatic-db-ppds were giving errors and CUPS failed to load the drivers. I didn't think of it before until after some dinner and a beer! If you are getting foomatic causing errors, try removing it altogether (pacman -Rns foomatic-db-engine foomatic-db-nonfree foomatic-db) and restart CUPS. I am not positive if your HPs need them, but my Epson didn't and I was finally able to add the printer again. Printed test page and all.
Connected my Win7 machine to it using IPP (through samba I always had bottle-necking) and printed a test page with no problem.
I hope this helps, Tom. If not I am still here to help however I can :)
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Cups Broken

Postby Socaltom » Thu Nov 10, 2011 8:36 pm

I was able to get one of my printers working with hp-setup. I removed hplip and the foomatic-db and engine, but it still can't find the drivers when I try and add a new printer through the Cups web tool.

When I used hp-setup to add the printer, it couldn't locate the ppd files either, but it gives you the option of entering in the path which worked for one of the printers. The 2nd one fails when trying to add the printer queue.
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Cups Broken

Postby slycat » Thu Nov 10, 2011 11:48 pm

Was HPlip giving you errors as well? If not, it could be neccessary for the second printer. My Epson required gutenprint so I reinstalled it. Without it I didn't have the epson ppd file. Could you tail your error_log of when you are trying to add the printer? The only errors I ran across were with foomatic and the system_bus_socket.

Try reinstalling HPlip, run cups-genppdupdate and see if you get the libgnutils error, go through the web portal to add the printer, then tail the error_log. Did you ever have to blacklist the usblp module? If so, recheck that it is still blacklisted (though it must be if it caught your other HP).
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Cups Broken

Postby Socaltom » Fri Nov 11, 2011 5:08 am

Here is the error from genppdupdate
$this->bbcode_second_pass_code('', '[root@Arch Linux ARM install ~]# cups-genppdupdate
/usr/lib/cups/driver/gutenprint.5.2: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
Did not update any PPD files
')
Here is the relevant section of the errors log
$this->bbcode_second_pass_code('', 'D [10/Nov/2011:20:59:43 -0800] [CGI] op="add-printer"...
D [10/Nov/2011:20:59:43 -0800] [CGI] do_am_printer: DEVICE_URI="(null)"
D [10/Nov/2011:20:59:43 -0800] [CGI] Getting list of devices...
D [10/Nov/2011:20:59:43 -0800] cupsdReadClient: 14 POST / HTTP/1.1
D [10/Nov/2011:20:59:43 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:43 -0800] cupsdAuthorize: No authentication data provided.
D [10/Nov/2011:20:59:43 -0800] cupsdReadClient: 14 1.1 CUPS-Get-Devices 1
D [10/Nov/2011:20:59:43 -0800] CUPS-Get-Devices
D [10/Nov/2011:20:59:43 -0800] cupsdIsAuthorized: username=""
D [10/Nov/2011:20:59:43 -0800] Returning HTTP Unauthorized for CUPS-Get-Devices (no URI) from localhost
D [10/Nov/2011:20:59:43 -0800] cupsdSendHeader: 14 WWW-Authenticate: Basic realm="CUPS", trc="y"
D [10/Nov/2011:20:59:43 -0800] cupsdReadClient: 14 WAITING Closing on EOF
D [10/Nov/2011:20:59:43 -0800] cupsdCloseClient: 14
D [10/Nov/2011:20:59:43 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:43 -0800] cupsdAcceptClient: 14 from localhost (Domain)
D [10/Nov/2011:20:59:43 -0800] cupsdReadClient: 14 WAITING Closing on EOF
D [10/Nov/2011:20:59:43 -0800] cupsdCloseClient: 14
D [10/Nov/2011:20:59:43 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:43 -0800] cupsdAcceptClient: 14 from localhost (Domain)
D [10/Nov/2011:20:59:43 -0800] cupsdReadClient: 14 POST / HTTP/1.1
D [10/Nov/2011:20:59:43 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:43 -0800] cupsdAuthorize: Authorized as root using Local
D [10/Nov/2011:20:59:43 -0800] cupsdReadClient: 14 1.1 CUPS-Get-Devices 1
D [10/Nov/2011:20:59:43 -0800] CUPS-Get-Devices
D [10/Nov/2011:20:59:43 -0800] cupsdIsAuthorized: username="root"
D [10/Nov/2011:20:59:43 -0800] [CGI] argv[0] = "/usr/lib/cups/daemon/cups-deviced"
D [10/Nov/2011:20:59:43 -0800] [CGI] argv[1] = "1"
D [10/Nov/2011:20:59:43 -0800] [CGI] argv[2] = "0"
D [10/Nov/2011:20:59:43 -0800] [CGI] argv[3] = "5"
D [10/Nov/2011:20:59:43 -0800] [CGI] argv[4] = "2"
D [10/Nov/2011:20:59:43 -0800] [CGI] argv[5] = "requested-attributes=all"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[10] = "SERVER_ADMIN=root@Arch Linux ARM install"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[11] = "SOFTWARE=CUPS/1.5.0"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[13] = "USER=root"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[16] = "IPP_PORT=631"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[17] = "AUTH_TYPE=Local"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[18] = "LANG=en_US.UTF8"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[21] = "SERVER_NAME=localhost"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[22] = "SERVER_PORT=631"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[23] = "REMOTE_ADDR="
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[25] = "SCRIPT_NAME=/"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc/"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[27] = "REMOTE_USER=root"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[29] = "HTTP_USER_AGENT=CUPS/1.5.0"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[30] = "REQUEST_METHOD=POST"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[31] = "CONTENT_LENGTH=91"
D [10/Nov/2011:20:59:43 -0800] [CGI] envp[32] = "CONTENT_TYPE=application/ipp"
D [10/Nov/2011:20:59:43 -0800] [CGI] Started /usr/lib/cups/daemon/cups-deviced (PID 11922)
I [10/Nov/2011:20:59:43 -0800] Started "/usr/lib/cups/daemon/cups-deviced" (pid=11922)
D [10/Nov/2011:20:59:43 -0800] cupsdSendCommand: 14 file=16
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/smb (PID 11923)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/https (PID 11924)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/serial (PID 11925)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/snmp (PID 11926)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/usb (PID 11927)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/dnssd (PID 11928)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/ipps (PID 11929)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/parallel (PID 11930)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/ipp (PID 11931)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/mdns (PID 11932)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/lpd (PID 11933)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/http (PID 11934)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/beh (PID 11935)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/hp (PID 11936)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/hpfax (PID 11937)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/cups-pdf (PID 11939)
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Started backend /usr/lib/cups/backend/socket (PID 11941)
D [10/Nov/2011:20:59:43 -0800] Script header: Content-Type: application/ipp
D [10/Nov/2011:20:59:43 -0800] Script header:
D [10/Nov/2011:20:59:43 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Found device "ipp"...
E [10/Nov/2011:20:59:43 -0800] [cups-deviced] PID 11926 (snmp) stopped with status 1!
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] PID 11929 (ipps) exited with no errors.
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] PID 11930 (parallel) exited with no errors.
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] PID 11931 (ipp) exited with no errors.
D [10/Nov/2011:20:59:43 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Found device "ipps"...
D [10/Nov/2011:20:59:43 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Found device "https"...
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] PID 11924 (https) exited with no errors.
D [10/Nov/2011:20:59:43 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:43 -0800] [cups-deviced] Found device "serial:/dev/ttyS0?baud=115200"...
D [10/Nov/2011:20:59:43 -0800] [CGI] list_devices
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11925 (serial) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] usb_find_busses=1
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11932 (mdns) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "http"...
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "lpd"...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11933 (lpd) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11934 (http) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] usb_find_devices=7
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "beh"...
D [10/Nov/2011:20:59:44 -0800] [CGI] ignoring local service AirPrint Virtual_PDF_Printer @ Arch Linux ARM install
D [10/Nov/2011:20:59:44 -0800] [CGI] ignoring local service Virtual PDF Printer @ Arch Linux ARM install
D [10/Nov/2011:20:59:44 -0800] [CGI] ignoring local service HP_laser @ Arch Linux ARM install
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11935 (beh) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] ignoring local service AirPrint HP_laser @ Arch Linux ARM install
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11927 (usb) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "socket"...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11941 (socket) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "smb"...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11923 (smb) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "hp:/usb/hp_LaserJet_1320_series?serial=00CNBC4B32WY"...
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "hp:/usb/PSC_2200_Series?serial=MY2BFF40SY0G"...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11936 (hp) exited with no errors.
D [10/Nov/2011:20:59:44 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] Found device "cups-pdf:/"...
D [10/Nov/2011:20:59:44 -0800] [cups-deviced] PID 11939 (cups-pdf) exited with no errors.
D [10/Nov/2011:20:59:46 -0800] [CGI] Flushed attributes...
D [10/Nov/2011:20:59:46 -0800] [cups-deviced] Found device "hpfax:/usb/PSC_2200_Series?serial=MY2BFF40SY0G"...
D [10/Nov/2011:20:59:46 -0800] [cups-deviced] PID 11937 (hpfax) exited with no errors.
D [10/Nov/2011:20:59:48 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:48 -0800] [CGI] Got device list!
D [10/Nov/2011:20:59:48 -0800] Script header: Content-Type: text/html;charset=utf-8
D [10/Nov/2011:20:59:48 -0800] Script header:
D [10/Nov/2011:20:59:48 -0800] PID 11922 (/usr/lib/cups/daemon/cups-deviced) exited with no errors.
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] [CGI] Regular expression "[a-z]+://"
D [10/Nov/2011:20:59:49 -0800] cupsdReadClient: 14 WAITING Closing on EOF
D [10/Nov/2011:20:59:49 -0800] cupsdCloseClient: 14
D [10/Nov/2011:20:59:49 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:49 -0800] PID 11921 (/usr/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [10/Nov/2011:20:59:49 -0800] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:52 -0800] cupsdReadClient: 18 POST /admin HTTP/1.1
D [10/Nov/2011:20:59:52 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [10/Nov/2011:20:59:52 -0800] cupsdAuthorize: No authentication data provided.
D [10/Nov/2011:20:59:52 -0800] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/admin.cgi"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[10] = "SERVER_ADMIN=root@Arch Linux ARM install"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[11] = "SOFTWARE=CUPS/1.5.0"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[13] = "USER=root"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[16] = "IPP_PORT=631"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[17] = "LANG=en_US.UTF8"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[18] = "REDIRECT_STATUS=1"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[19] = "GATEWAY_INTERFACE=CGI/1.1"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[20] = "SERVER_NAME=Arch Linux ARM install"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[21] = "SERVER_PORT=631"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[22] = "REMOTE_ADDR=192.168.0.12"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[23] = "REMOTE_HOST=192.168.0.12"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[24] = "SCRIPT_NAME=/admin"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[25] = "SCRIPT_FILENAME=/usr/share/cups/doc/admin"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[26] = "SERVER_PROTOCOL=HTTP/1.1"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[27] = "HTTP_COOKIE=csrftoken=60ab7f0a858a1317760b58601735808f; show_filter=true; show_inspector=true; testing=1; org.cups.sid=e43539778b7cd6703850006cb7ec5980"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[28] = "HTTP_USER_AGENT=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[29] = "HTTP_REFERER=https://Arch Linux ARM install:631/admin/"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[30] = "REQUEST_METHOD=POST"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[31] = "CONTENT_LENGTH=146"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[32] = "CONTENT_TYPE=application/x-www-form-urlencoded"
D [10/Nov/2011:20:59:52 -0800] [CGI] envp[33] = "HTTPS=ON"
D [10/Nov/2011:20:59:52 -0800] [CGI] Started /usr/lib/cups/cgi-bin/admin.cgi (PID 11957)
I [10/Nov/2011:20:59:52 -0800] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=11957)
D [10/Nov/2011:20:59:52 -0800] cupsdSendCommand: 18 file=15
D [10/Nov/2011:20:59:53 -0800] [CGI] admin.cgi started...
D [10/Nov/2011:20:59:53 -0800] cupsdAcceptClient: 14 from localhost (Domain)
D [10/Nov/2011:20:59:53 -0800] [CGI] http=0x406c1158
D [10/Nov/2011:20:59:53 -0800] [CGI] org.cups.sid cookie is "e43539778b7cd6703850006cb7ec5980"
D [10/Nov/2011:20:59:53 -0800] [CGI] op="add-printer"...
D [10/Nov/2011:20:59:53 -0800] [CGI] do_am_printer: DEVICE_URI="hp:/usb/PSC_2200_Series?serial=MY2BFF40SY0G|HP PSC 2200 Series"
D [10/Nov/2011:20:59:53 -0800] Script header: Content-Type: text/html;charset=utf-8
D [10/Nov/2011:20:59:53 -0800] Script header:
D [10/Nov/2011:20:59:53 -0800] cupsdReadClient: 14 WAITING Closing on EOF
D [10/Nov/2011:20:59:53 -0800] cupsdCloseClient: 14
D [10/Nov/2011:20:59:53 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:53 -0800] PID 11957 (/usr/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [10/Nov/2011:20:59:53 -0800] cupsdSetBusyState: newbusy="Dirty files", busy="Active clients and dirty files"
D [10/Nov/2011:20:59:56 -0800] cupsdReadClient: 18 POST /admin HTTP/1.1
D [10/Nov/2011:20:59:56 -0800] cupsdSetBusyState: newbusy="Active clients and dirty files", busy="Dirty files"
D [10/Nov/2011:20:59:56 -0800] cupsdAuthorize: No authentication data provided.
D [10/Nov/2011:20:59:56 -0800] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/admin.cgi"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[10] = "SERVER_ADMIN=root@Arch Linux ARM install"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[11] = "SOFTWARE=CUPS/1.5.0"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[13] = "USER=root"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[16] = "IPP_PORT=631"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[17] = "LANG=en_US.UTF8"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[18] = "REDIRECT_STATUS=1"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[19] = "GATEWAY_INTERFACE=CGI/1.1"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[20] = "SERVER_NAME=Arch Linux ARM install"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[21] = "SERVER_PORT=631"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[22] = "REMOTE_ADDR=192.168.0.12"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[23] = "REMOTE_HOST=192.168.0.12"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[24] = "SCRIPT_NAME=/admin"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[25] = "SCRIPT_FILENAME=/usr/share/cups/doc/admin"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[26] = "SERVER_PROTOCOL=HTTP/1.1"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[27] = "HTTP_COOKIE=csrftoken=60ab7f0a858a1317760b58601735808f; show_filter=true; show_inspector=true; testing=1; org.cups.sid=e43539778b7cd6703850006cb7ec5980"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[28] = "HTTP_USER_AGENT=Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[29] = "HTTP_REFERER=https://Arch Linux ARM install:631/admin"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[30] = "REQUEST_METHOD=POST"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[31] = "CONTENT_LENGTH=316"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[32] = "CONTENT_TYPE=application/x-www-form-urlencoded"
D [10/Nov/2011:20:59:56 -0800] [CGI] envp[33] = "HTTPS=ON"
D [10/Nov/2011:20:59:56 -0800] [CGI] Started /usr/lib/cups/cgi-bin/admin.cgi (PID 11958)
I [10/Nov/2011:20:59:56 -0800] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=11958)
D [10/Nov/2011:20:59:56 -0800] cupsdSendCommand: 18 file=15')

I've reinstalled hplip 3 times. Should the files in /usr/share/ppd/HP be compressed (.gz)?
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Cups Broken

Postby slycat » Fri Nov 11, 2011 7:46 am

You should have the latest gnutls up supplying you with libgnutls.so.28 so you can do this:
$this->bbcode_second_pass_code('', 'cp /usr/lib/libgnutls.so.28 /usr/lib/libgnutls.so.26
pacman -Sy hplip #incase you removed it again
cups-genppdupdate
/etc/rc.d/cups restart')
AFAIK the ppd file is always stored in a .gz (foomatic did this, and a quick google search on HPlip said the same)

Since you were able to set up one printer we know your cupsd.conf is fine. Does the printer in question show up under Local Printers when you click "Add Printer" from the admin page? According to the error_log it did find a 1320 and 2200, so I assume so. Everything says "...with no errors" and then repeats "Regular expression". If you got to the point where you can give the printer a name/description make sure you used acceptable characters and the printer name has no spaces. I hit the wall of errors only after this step, when cups trys to load the drivers. If this is your same brickwall running cups-genppdupdate should do the trick.
But I can't see anything else out of the ordinary in your log :( so I hope fixing cups-genppdupdate will solve it, my friend.

Seaching google revealed that you are not the only one getting this issue at the moment
Pogoplug Pro w/ Wireless User -> decomm.
Cubox-i4pro User
4TB eSATA HDD (8g/3700+ Sw/Storage)
Kodi / Transmission / Minidlna / Samba / Batch-audio-conversions / Lighttpd
------------------------------
Rollback Machine - Thanks to impatt
slycat
 
Posts: 169
Joined: Wed Feb 09, 2011 3:07 am
Location: Miami, FL

Re: Cups Broken

Postby Socaltom » Fri Nov 11, 2011 4:12 pm

I appreciate the help, but we haven't found the issue yet,
I'm currently to add the PSC_2200 as a shared printer.
If I use CUPS to try and add it, it still can't locate any PPD files.

If I use hp-setup -i this is what happens
$this->bbcode_second_pass_code('', '[root@Arch Linux ARM install ~]# hp-setup -i

HP Linux Imaging and Printing System (ver. 3.11.10)
Printer/Fax Setup Utility ver. 9.0

Copyright (c) 2001-9 Hewlett-Packard Development Company, LP
This software comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to distribute it
under certain conditions. See COPYING file for more details.

(Note: Defaults for each question are maked with a '*'. Press <enter> to accept the default.)


--------------------------------
| SELECT CONNECTION (I/O) TYPE |
--------------------------------

Num Connection Description
Type
-------- ---------- ----------------------------------------------------------
0* usb Universal Serial Bus (USB)
1 net Network/Ethernet/Wireless (direct connection or JetDirect)
2 par Parallel Port (LPT:)

Enter number 0...2 for connection type (q=quit, enter=usb*) ? 0

Using connection type: usb

-----------------
| SELECT DEVICE |
-----------------

Num Device URI CUPS Printer(s)
-------- --------------------------------------------------- ----------------------------------------------------------------------------------------------------
0 hp:/usb/PSC_2200_Series?serial=MY2BFF40SY0G HP PSC 2200 Series,HP PSC 2200 Series USB MY2BFF40SY0G HPLIP,MFG:Hewlett-Packard;MDL:PSC 2200
Series;CLS:PRINTER;DES:PSC 2200 Series;SN:MY2BFF40SY0G;
1 hp:/usb/hp_LaserJet_1320_series?serial=00CNBC4B32WY HP LaserJet 1320 series,HP LaserJet 1320 series USB 00CNBC4B32WY HPLIP,MFG:Hewlett-Packard;MDL:hp
LaserJet 1320 series;CLS:PRINTER;DES:hp LaserJet 1320 series;SN:00CNBC4B32WY;

Enter number 0...1 for device (q=quit) ?0

Setting up device: hp:/usb/PSC_2200_Series?serial=MY2BFF40SY0G



---------------------
| PRINT QUEUE SETUP |
---------------------


Please enter a name for this print queue (m=use model name:'PSC_2200'*, q=quit) ?m
Using queue name: PSC_2200
Locating PPD file... Please wait.
warning: No PPD found for model psc_2200 using new algorithm. Trying old algorithm...
error: No PPD found for model psc_2200 using old algorithm.
error: Unable to find an appropriate PPD file.

Would you like to specify the path to the correct PPD file to use (y=yes, n=no*, q=quit) ? y

share/ppd/HP/hp-psc_2200_ppd.gzm path to the PPD file to use (q=quit) :/usr/
error: File not found or not an appropriate (PPD) file.

share/ppd/HP/hp-psc_2200_series-hpijs.ppd.gz PPD file to use (q=quit) :/usr/
Description for the file: HP PSC 2200 Series hpijs, 3.11.10

Use this file (y=yes*, n=no, q=quit) ? y
Enter a location description for this printer (q=quit) ?
Enter additonal information or notes for this printer (q=quit) ?

Adding print queue to CUPS:
Device URI: hp:/usb/PSC_2200_Series?serial=MY2BFF40SY0G
Queue name: PSC_2200
PPD file: /usr/share/ppd/HP/hp-psc_2200_series-hpijs.ppd.gz
Location:
Information: error: Printer queue setup failed. Please restart CUPS and try again.
')

It fails at adding the printer queue.
I'm going to see what I can do with lpadmin now.
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Cups Broken

Postby Socaltom » Sun Nov 20, 2011 5:30 pm

I finally got both printers working. Neither Cups nor hp-setup -i can find my printer drivers, but hp-setup allows you to manually enter the path, which is what I did to add both printers. It appears that the problem I had adding the cache for the color printer was due to the fact I tried to reuse a prior cache name. I finally used a new name for the cache and it accepted it.

There is still something wrong, as nothing seems able to locate the ppd files, but I've confirmed they are there and working.
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 2 guests