You are not logged in.

#1 2009-11-28 19:58:58

VitaminJ
Member
Registered: 2009-10-19
Posts: 26

[SOLVED] CUPS Web interface crash when trying to Add Printer

I've used the web interface @ http://localhost:631

After a recent upgrade, when clicking Add Printer under the Admin tab, I enter the root username and password, and then the web interface "crashes". In Chromium, I get the "Aw, snap!" blue screen. In FireFox it just hangs forever.

In /var/log/cups/error_log I see

E [28/Nov/2009:14:46:19 -0500] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported

I've tried removing /var/run/cups and it is recreated when cups is restarted, but same error. I haven't tried adding a printer via commandline because it looks difficult.
I've tried removing cups with pacman, and deleting /etc/cups/ /var/run/cups /usr/share/cups and anything else I could find and reinstalling, but no luck.

CUPS 1.4.2-1
perms on /var/run/cups 755 root:lp
perms on /var/run/cups/certs 511 daemon:sys
CUPSD running as root
/etc/cups/cups
root is a member of sys group
root is not a member of lp group (does this matter?)

Anyone have this problem?

Last edited by VitaminJ (2010-03-26 05:18:54)

Offline

#2 2009-12-01 15:49:42

wottam
Member
From: Spain
Registered: 2007-08-31
Posts: 59

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

Yeah, it happens to me as well :S

In my machine root is member of lp, and the print is being used from another machine in the same network. This is written to the cupsd log

D [01/Dec/2009:17:46:50 +0100] cupsdAcceptClient: 14 from 192.168.2.84:631 (IPv4)
I [01/Dec/2009:17:46:50 +0100] Generating SSL server key...

And searching in the forums I have found http://bbs.archlinux.org/viewtopic.php?id=81627

Maybe we just need to wait half an hour... I'll try

Last edited by wottam (2009-12-01 15:53:37)

Offline

#3 2009-12-03 23:27:05

svejaka
Member
From: Bulgaria
Registered: 2009-01-21
Posts: 33

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

Same thing with me.

Offline

#4 2009-12-10 20:06:50

VitaminJ
Member
Registered: 2009-10-19
Posts: 26

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

So it seems we've come across a bug. Who do we report it to? CUPS upstream or the packager?

I'd bet that everyone is having this problem but doesn't realize because once you add your printers you don't very often go back to the web interface again.

wottam, I don't think mine's related to the SSL thing, because my machines been running continuously after several reboots, and CUPS continuously fails.

Last edited by VitaminJ (2009-12-10 20:08:38)

Offline

#5 2009-12-10 20:54:29

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

VitaminJ wrote:

I'd bet that everyone is having this problem but doesn't realize because once you add your printers you don't very often go back to the web interface again.

Everyone except me lol, and this despite /var/log/cups/error_log, error_log.1, error_log.2 etc. being full of nothing but 'Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported' errors.

Offline

#6 2009-12-11 04:39:41

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

@wottam: This is probably caused by your system not having enough entropy to generate the SSH key.  I had the same problem, but I don't recall exactly how i solved it.  Search the forums or the web for something like "linux entropy ssh".  I had to install some package that used more events to generate entropy.  You should be able to find the package with a search.  Sorry I can't be more precise.  Hopefully, this points you in the right direction.

Edit: The package is rng-tools.  Install it on the machine running the cups server.  `man rngd` for help.

Jay

Last edited by jt512 (2009-12-11 04:56:00)

Offline

#7 2009-12-15 05:29:49

wottam
Member
From: Spain
Registered: 2007-08-31
Posts: 59

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

@jt512 thank you, I'll check it up later. My machine actually doesn't have any input devices (no keyboard or mouse), and I was almost sure that it was the problem (entropy is generated by input devices if I'm not wrong). Let's see if it works smile

Offline

#8 2009-12-15 20:22:34

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

wottam wrote:

@jt512 thank you, I'll check it up later. My machine actually doesn't have any input devices (no keyboard or mouse), and I was almost sure that it was the problem (entropy is generated by input devices if I'm not wrong). Let's see if it works smile

I think you'll find this illuminating.

BTW, the rng-tools package is in the AUR.  It installs a config file in the /etc/conf.d directory, with a "timeout" variable set to 0.  You probably want to change that value.  In the above article, they suggest 1.  I have mine set to 10, which seems to maintain a sufficiently large entropy pool.

Jay

Last edited by jt512 (2009-12-15 20:24:11)

Offline

#9 2009-12-24 02:06:24

VitaminJ
Member
Registered: 2009-10-19
Posts: 26

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

I'm pretty sure that my problem is unrelated to key generation...and it still persists. Haha, not as though this helps the thread!

Offline

#10 2010-03-24 18:01:20

VitaminJ
Member
Registered: 2009-10-19
Posts: 26

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

Still having this problem. Even installed x86-64 Arch in a VM to see if a clean install works. NOPE!

First connection to http://localhost:631

D [24/Mar/2010:13:49:41 -0400] cupsdReadClient: 12 GET /admin HTTP/1.1
D [24/Mar/2010:13:49:41 -0400] cupsdSetBusyState: Active clients
D [24/Mar/2010:13:49:41 -0400] cupsdAuthorize: No authentication data provided.
D [24/Mar/2010:13:49:41 -0400] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/admin.cgi"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[10] = "SERVER_ADMIN=root@D830"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.2"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[13] = "USER=root"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[16] = "IPP_PORT=631"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[17] = "LANG=en_US.UTF8"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[18] = "REDIRECT_STATUS=1"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[19] = "GATEWAY_INTERFACE=CGI/1.1"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[20] = "SERVER_NAME=localhost"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[21] = "SERVER_PORT=631"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[22] = "REMOTE_ADDR=127.0.0.1"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[23] = "REMOTE_HOST=localhost"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[24] = "SCRIPT_NAME=/admin"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[25] = "SCRIPT_FILENAME=/usr/share/cups/doc/admin"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[26] = "SERVER_PROTOCOL=HTTP/1.1"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[27] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[28] = "HTTP_REFERER=http://localhost:631/"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[29] = "REQUEST_METHOD=GET"
D [24/Mar/2010:13:49:41 -0400] [CGI] envp[30] = "QUERY_STRING="
D [24/Mar/2010:13:49:41 -0400] [CGI] Started /usr/lib/cups/cgi-bin/admin.cgi (PID 6441)
I [24/Mar/2010:13:49:41 -0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6441)
D [24/Mar/2010:13:49:41 -0400] cupsdSendCommand: 12 file=13
D [24/Mar/2010:13:49:41 -0400] [CGI] admin.cgi started...
D [24/Mar/2010:13:49:41 -0400] cupsdAcceptClient: 14 from localhost (Domain)
D [24/Mar/2010:13:49:41 -0400] [CGI] http=0x7f2bf62c7880
D [24/Mar/2010:13:49:41 -0400] [CGI] No form data, showing main menu...
D [24/Mar/2010:13:49:41 -0400] [CGI] /usr/share/cups/drivers/pscript5.dll: No such file or directory
D [24/Mar/2010:13:49:41 -0400] cupsdReadClient: 14 POST / HTTP/1.1
D [24/Mar/2010:13:49:41 -0400] cupsdAuthorize: No authentication data provided.
D [24/Mar/2010:13:49:41 -0400] cupsdReadClient: 14 1.1 Get-Subscriptions 1
D [24/Mar/2010:13:49:41 -0400] Get-Subscriptions ipp://localhost/
D [24/Mar/2010:13:49:41 -0400] Get-Subscriptions client-error-not-found: No subscriptions found.
D [24/Mar/2010:13:49:41 -0400] Returning IPP client-error-not-found for Get-Subscriptions (ipp://localhost/) from localhost
D [24/Mar/2010:13:49:41 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:41 -0400] Script header: Content-Type: text/html;charset=utf-8
D [24/Mar/2010:13:49:41 -0400] Script header: 
D [24/Mar/2010:13:49:41 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:41 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:41 -0400] cupsdReadClient: 14 WAITING Closing on EOF
D [24/Mar/2010:13:49:41 -0400] cupsdCloseClient: 14
D [24/Mar/2010:13:49:41 -0400] cupsdSetBusyState: Not busy
D [24/Mar/2010:13:49:41 -0400] PID 6441 (/usr/lib/cups/cgi-bin/admin.cgi) exited with no errors.

Clicking on "Administration" tab:

D [24/Mar/2010:13:49:47 -0400] cupsdReadClient: 12 POST /admin/ HTTP/1.1
D [24/Mar/2010:13:49:47 -0400] cupsdSetBusyState: Active clients
D [24/Mar/2010:13:49:47 -0400] cupsdAuthorize: Authorized as root using Basic
D [24/Mar/2010:13:49:47 -0400] [CGI] argv[0] = "/usr/lib/cups/cgi-bin/admin.cgi"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[10] = "SERVER_ADMIN=root@D830"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.2"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[13] = "USER=root"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[16] = "IPP_PORT=631"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[17] = "CUPSD_AUTH_TYPE=Basic"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[18] = "LANG=en_US.UTF8"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[21] = "SERVER_NAME=localhost"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[22] = "SERVER_PORT=631"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[23] = "REMOTE_ADDR=127.0.0.1"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[25] = "SCRIPT_NAME=/admin/"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc/admin/"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[27] = "REMOTE_USER=root"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[29] = "HTTP_USER_AGENT=Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[30] = "HTTP_REFERER=http://localhost:631/admin"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[31] = "REQUEST_METHOD=POST"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[32] = "CONTENT_LENGTH=14"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[33] = "CONTENT_TYPE=application/x-www-form-urlencoded"
D [24/Mar/2010:13:49:47 -0400] [CGI] Started /usr/lib/cups/cgi-bin/admin.cgi (PID 6445)
I [24/Mar/2010:13:49:47 -0400] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=6445)
D [24/Mar/2010:13:49:47 -0400] cupsdSendCommand: 12 file=14
D [24/Mar/2010:13:49:47 -0400] [CGI] admin.cgi started...
D [24/Mar/2010:13:49:47 -0400] cupsdAcceptClient: 15 from localhost (Domain)
D [24/Mar/2010:13:49:47 -0400] [CGI] http=0x7f0dfc5d5880
D [24/Mar/2010:13:49:47 -0400] [CGI] op="add-printer"...
D [24/Mar/2010:13:49:47 -0400] [CGI] do_am_printer: DEVICE_URI="(null)"
D [24/Mar/2010:13:49:47 -0400] [CGI] Getting list of devices...
D [24/Mar/2010:13:49:47 -0400] cupsdReadClient: 15 POST / HTTP/1.1
D [24/Mar/2010:13:49:47 -0400] cupsdAuthorize: No authentication data provided.
D [24/Mar/2010:13:49:47 -0400] cupsdReadClient: 15 1.1 CUPS-Get-Devices 1
D [24/Mar/2010:13:49:47 -0400] CUPS-Get-Devices
D [24/Mar/2010:13:49:47 -0400] cupsdIsAuthorized: username=""
D [24/Mar/2010:13:49:47 -0400] Returning HTTP Unauthorized for CUPS-Get-Devices (no URI) from localhost
D [24/Mar/2010:13:49:47 -0400] cupsdSendHeader: 15 WWW-Authenticate: Basic realm="CUPS", trc="y"
D [24/Mar/2010:13:49:47 -0400] cupsdReadClient: 15 WAITING Closing on EOF
D [24/Mar/2010:13:49:47 -0400] cupsdCloseClient: 15
D [24/Mar/2010:13:49:47 -0400] cupsdAcceptClient: 15 from localhost (Domain)
D [24/Mar/2010:13:49:47 -0400] cupsdReadClient: 15 WAITING Closing on EOF
D [24/Mar/2010:13:49:47 -0400] cupsdCloseClient: 15
D [24/Mar/2010:13:49:47 -0400] cupsdAcceptClient: 15 from localhost (Domain)
D [24/Mar/2010:13:49:47 -0400] cupsdReadClient: 15 POST / HTTP/1.1
D [24/Mar/2010:13:49:47 -0400] cupsdAuthorize: Authorized as root using Local
D [24/Mar/2010:13:49:47 -0400] cupsdReadClient: 15 1.1 CUPS-Get-Devices 1
D [24/Mar/2010:13:49:47 -0400] CUPS-Get-Devices
D [24/Mar/2010:13:49:47 -0400] cupsdIsAuthorized: username="root"
D [24/Mar/2010:13:49:47 -0400] [CGI] argv[0] = "/usr/lib/cups/daemon/cups-deviced"
D [24/Mar/2010:13:49:47 -0400] [CGI] argv[1] = "1"
D [24/Mar/2010:13:49:47 -0400] [CGI] argv[2] = "0"
D [24/Mar/2010:13:49:47 -0400] [CGI] argv[3] = "30"
D [24/Mar/2010:13:49:47 -0400] [CGI] argv[4] = "2"
D [24/Mar/2010:13:49:47 -0400] [CGI] argv[5] = "requested-attributes=all"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[0] = "CUPS_CACHEDIR=/var/cache/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[1] = "CUPS_DATADIR=/usr/share/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[2] = "CUPS_DOCROOT=/usr/share/cups/doc"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[3] = "CUPS_FONTPATH=/usr/share/cups/fonts"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[4] = "CUPS_REQUESTROOT=/var/spool/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[5] = "CUPS_SERVERBIN=/usr/lib/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[6] = "CUPS_SERVERROOT=/etc/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[7] = "CUPS_STATEDIR=/var/run/cups"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[8] = "HOME=/var/spool/cups/tmp"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[9] = "PATH=/usr/lib/cups/filter:/usr/bin:/usr/sbin:/bin:/usr/bin"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[10] = "SERVER_ADMIN=root@D830"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[11] = "SOFTWARE=CUPS/1.4.2"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[12] = "TMPDIR=/var/spool/cups/tmp"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[13] = "USER=root"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[14] = "CUPS_SERVER=/var/run/cups/cups.sock"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[15] = "CUPS_ENCRYPTION=IfRequested"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[16] = "IPP_PORT=631"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[17] = "CUPSD_AUTH_TYPE=Local"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[18] = "LANG=en_US.UTF8"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[19] = "REDIRECT_STATUS=1"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[20] = "GATEWAY_INTERFACE=CGI/1.1"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[21] = "SERVER_NAME=localhost"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[22] = "SERVER_PORT=631"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[23] = "REMOTE_ADDR="
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[24] = "REMOTE_HOST=localhost"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[25] = "SCRIPT_NAME=/"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[26] = "SCRIPT_FILENAME=/usr/share/cups/doc/"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[27] = "REMOTE_USER=root"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[28] = "SERVER_PROTOCOL=HTTP/1.1"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[29] = "HTTP_USER_AGENT=CUPS/1.4.2"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[30] = "REQUEST_METHOD=POST"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[31] = "CONTENT_LENGTH=91"
D [24/Mar/2010:13:49:47 -0400] [CGI] envp[32] = "CONTENT_TYPE=application/ipp"
D [24/Mar/2010:13:49:47 -0400] [CGI] Started /usr/lib/cups/daemon/cups-deviced (PID 6446)
I [24/Mar/2010:13:49:47 -0400] Started "/usr/lib/cups/daemon/cups-deviced" (pid=6446)
D [24/Mar/2010:13:49:47 -0400] cupsdSendCommand: 15 file=16
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/smb (PID 6447)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/socket (PID 6448)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/bluetooth (PID 6449)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/serial (PID 6450)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/parallel (PID 6451)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/snmp (PID 6452)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/http (PID 6453)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/usb (PID 6454)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/ipp (PID 6455)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/scsi (PID 6456)
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Started backend /usr/lib/cups/backend/lpd (PID 6457)
D [24/Mar/2010:13:49:47 -0400] [CGI] Flushed attributes...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Found device "ipp"...
D [24/Mar/2010:13:49:47 -0400] Script header: Content-Type: application/ipp
D [24/Mar/2010:13:49:47 -0400] Script header:
D [24/Mar/2010:13:49:47 -0400] [CGI] Flushed attributes...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Found device "socket"...
D [24/Mar/2010:13:49:47 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:47 -0400] Script header: MIME-Version: 1.0
D [24/Mar/2010:13:49:47 -0400] Script header: Content-Type: multipart/x-mixed-replace; boundary="CUPS-MULTIPART"
D [24/Mar/2010:13:49:47 -0400] Script header:
D [24/Mar/2010:13:49:47 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:47 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:47 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:47 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:47 -0400] [CGI] Flushed attributes...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Found device "lpd"...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6457 (lpd) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [CGI] Flushed attributes...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Found device "http"...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6453 (http) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [CGI] list_devices
D [24/Mar/2010:13:49:47 -0400] [CGI] usb_find_busses=7
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6455 (ipp) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6450 (serial) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [CGI] Flushed attributes...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Found device "scsi"...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6456 (scsi) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6448 (socket) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [CGI] Flushed attributes...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] Found device "smb"...
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6447 (smb) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6451 (parallel) exited with no errors.
D [24/Mar/2010:13:49:47 -0400] [CGI] usb_find_devices=11
D [24/Mar/2010:13:49:47 -0400] [cups-deviced] PID 6454 (usb) exited with no errors.
D [24/Mar/2010:13:49:49 -0400] [cups-deviced] PID 6452 (snmp) exited with no errors.

Clicking Add Printer button

D [24/Mar/2010:13:49:57 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:57 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:57 -0400] cupsdAcceptClient: 17 from localhost:631 (IPv4)
D [24/Mar/2010:13:49:57 -0400] cupsdReadClient: 17 GET /images/wait.gif HTTP/1.1
D [24/Mar/2010:13:49:57 -0400] cupsdAuthorize: No authentication data provided.
D [24/Mar/2010:13:49:57 -0400] [cups-deviced] PID 6449 (bluetooth) exited with no errors.
D [24/Mar/2010:13:49:57 -0400] PID 6446 (/usr/lib/cups/daemon/cups-deviced) exited with no errors.
D [24/Mar/2010:13:49:57 -0400] [CGI] Got device list!
D [24/Mar/2010:13:49:57 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:57 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] Regular expression "[a-z]+://"
D [24/Mar/2010:13:49:57 -0400] [CGI] lang="en_US.UTF8", locale="/en_US"...
D [24/Mar/2010:13:49:57 -0400] cupsdReadClient: 15 WAITING Closing on EOF
D [24/Mar/2010:13:49:57 -0400] cupsdCloseClient: 15
D [24/Mar/2010:13:49:57 -0400] PID 6445 (/usr/lib/cups/cgi-bin/admin.cgi) exited with no errors.
D [24/Mar/2010:13:49:57 -0400] cupsdSetBusyState: Not busy
D [24/Mar/2010:13:49:57 -0400] cupsdReadClient: 12 WAITING Closing on EOF
D [24/Mar/2010:13:49:57 -0400] cupsdCloseClient: 12

It's interesting how it says "Returning HTTP Unauthorized for CUPS-Get-Devices (no URI) from localhost" when I just entered my root username and pass in the HTTP BASIC Authentication popup.

Offline

#11 2010-03-24 18:55:09

matzo
Member
From: Germany
Registered: 2009-04-13
Posts: 19

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

Some time ago I've posted a workaround for a similar problem (http://bbs.archlinux.org/viewtopic.php?id=91809). This doesn't explain the cause, but it could help to add a printer.

Offline

#12 2010-03-26 05:16:59

VitaminJ
Member
Registered: 2009-10-19
Posts: 26

Re: [SOLVED] CUPS Web interface crash when trying to Add Printer

Lol this is actually very funny, I discovered this workaround myself about an hour after posting!

No explanation about why it works, but when the "Page Not Found" error comes up again, I just "Edit" the config file and Save using http://localhost:631/

I guess that's it then.

Offline

Board footer

Powered by FluxBB