Red Hat Bugzilla – Bug 683589
cups server error client-error-forbidden during failed add of network printer
Last modified: 2011-04-23 00:10:35 EDT
Description of problem:
get error message and network printer doesnt get added
Version-Release number of selected component (if applicable):
cups-1:1.4.6-1.fc14 x86_64 on f14kde
gutenprint-cups-5.2.6-2.fc14 x86_64 f14kde
Steps to Reproduce:
1. system settings - printer configuration
2. click on 'new printer' and then click on 'new-network-printer'
3. error window pops up with window title of 'CUPS server error - System Settings' and with text of
"There was an error during the CUPS operation: 'client-error-forbidden'."
4. click <ok> in the error window to continue and after a bit a new printer dialog pops up for you to select a connection for with only 'other' in connection list and uri field blank.
5. if put 'lpd://ip-address-of-printer/queue' into uri then <forward> button is enabled and you can select the printer manufacturer from a list and then <forward> and then select model from a list and then <forward> and then name/describe/location it.
6. but then when select <ok> you get the 'client-error-forbidden' error window again.
7. if close the error window the new printer dialog just sits and waits until click <cancel>.
error but printer not added
no error and printer gets added
'E [09/Mar/2011:12:46:29 -0500] Returning HTTP Forbidden for CUPS-Add-Modify-Printer (ipp://localhost/printers/<removed>) from localhost'
localhost - - [09/Mar/2011:13:56:39 -0500] "GET /admin/conf/cupsd.conf HTTP/1.1" 401 0 - -
localhost - <removed username> [09/Mar/2011:13:56:39 -0500] "GET /admin/conf/cupsd.conf HTTP/1.1" 403 0 - -
localhost - - [09/Mar/2011:13:58:18 -0500] "POST / HTTP/1.1" 401 75 CUPS-Get-Devices successful-ok
localhost - - [09/Mar/2011:13:59:59 -0500] "POST / HTTP/1.1" 200 3152989 CUPS-Get-PPDs -
localhost - - [09/Mar/2011:14:03:03 -0500] "POST / HTTP/1.1" 200 3152989 CUPS-Get-PPDs -
localhost - <removed username> [09/Mar/2011:14:05:47 -0500] "POST / HTTP/1.1" 200 10026 CUPS-Get-PPD -
localhost - <removed username> [09/Mar/2011:14:06:01 -0500] "POST /admin/ HTTP/1.1" 403 10071 CUPS-Add-Modify-Printer successful-ok
Is that system-config-printer? Could you please run this command from a terminal window, perform the same steps as above, and attach the log.txt please?
system-config-printer --debug > log.txt
the previous output was generated by whatever the kde 'printer configuration' gui icon in the kde menu uses (i am currently more interested in vetting kde than in printing lol).
i tried command:
system-config-printer-kde --debug > log.txt
which fails with 'command not found' so produces no log.
however, when i grep for system-config-printer-kde i get a /usr/share/kde4/apps/system-config-printer-kde with files but not any in /usr/bin directory.
so is a /usr/bin/system-config-printer-kde launcher script just missing from /usr/bin that should be starting the /usr/share/kde4/apps/system-config-printer-kde/system-config-printer-kde.py script?
fyi also had these installed on the fc14kde system:
(system-config-printer is not listed as installed.)
OK, fixing component.
Was hoping this would be fixed in the latest kde upgrade to 4.6.2 today but no change. I assume this lack of prompt for root pwd is a bug in the kde wrapper around system-config-printer since this non-kde app works as expected (although with way too many password prompts as pointed out in another bug report).
FYI, there is some discussion and a proposed way to fix this on the fedore-kde list as seen here:
However, 4.6.2 seems to have the recommended strings but still fails to prompt for root password at all and so fails immediately.
it works for me, using
via systemsettings->printer configuration
note the priv elevation hack here won't work if envoking manually with
you'll have to use something like
kdesu kcmshell4 system-config-printer-kde
Now also get a pwd prompt immediately on doing systemsettings->printer conf. Not sure why it seems to fail to prompt yesterday immediately after 4.6.2 upgrade and logoff/on. Maybe I didn't reboot? Or maybe I was looking at the printer applet!
I just tried to add a new network printer via the printer applet in the tray and there I still don't get a prompt and still see the "client error forbidden". Exact steps: click printer applet, settings, printer configuration..., new printer, new network printer -- then error pops up.