Bug 430079 - system-config-printer: CUPS server error: "server-error-server-unavilable"
system-config-printer: CUPS server error: "server-error-server-unavilable"
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: system-config-printer (Show other bugs)
8
All Linux
low Severity low
: ---
: ---
Assigned To: Tim Waugh
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-01-24 08:46 EST by Rick Richardson
Modified: 2008-01-25 05:22 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-25 05:22:17 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
/var/log/cups/error_log (560.03 KB, application/octet-stream)
2008-01-24 11:38 EST, Rick Richardson
no flags Details

  None (edit)
Description Rick Richardson 2008-01-24 08:46:25 EST
If I "Goto to Sever" on amd.rkkda.org root/PASSWORD,  I get a list of all
printers on that server, with URI, etc. filled in.  So far, so good.

If I click on "2430" or "2430s" or "mc5430", all is well and see "Printer Options.
State is Enabled, Accepting Jobs, but NO Shared.

If I click on the others (about 20 printers), e.g. "hp2600", I get the
"server-error-server-unavilable", and NO "Printer Options" is displayed'.
State is Enabled, Accepting Jobs, and Shared.
Comment 1 Rick Richardson 2008-01-24 08:48:44 EST
Oh yeah.

amd.rkkda.com is FC5.
dual.rkkda.com is FC8.
Comment 2 Rick Richardson 2008-01-24 08:49:58 EST
Excuse me...

amd.rkkda.org is FC5.
dual.rkkda.org is FC8.
Comment 3 Rick Richardson 2008-01-24 10:01:35 EST
http://www.rkkda.com/tmp/bug430079/

screenshots

1 - dual 
2 - dual remote printer clp300.  Error.
3 - Goto server 'amd'. 
4 - click on '2430'.  Note Printer Options.
5 - click on 'clp300'.  Error.
6 - Hit OK.  Note no printer options.
Comment 4 Tim Waugh 2008-01-24 10:27:21 EST
What does this say when you run it?:

python <<"EOF"
import cups
cups.setServer("amd.rkkda.org")
c=cups.Connection()
print c.getPPD("clp300")
EOF
Comment 5 Rick Richardson 2008-01-24 10:52:01 EST
From dual.rkkda.org:

$ python <<"EOF"
> import cups
> cups.setServer("amd.rkkda.org")
> c=cups.Connection()
> print c.getPPD("clp300")
> EOF
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
cups.IPPError: (1282, 'server-error-service-unavailable')

But, where is the login=root password=PASSWORD???
Comment 6 Rick Richardson 2008-01-24 10:56:57 EST
Oh yeah:  "Help" -> "About". No real help at all.
Should I want to file a Bug Report on this???
Comment 7 Rick Richardson 2008-01-24 11:06:44 EST
$ uname -a
Linux amd.rkkda.org 2.6.20-1.2320.fc5 #1 SMP Tue Jun 12 18:50:49 EDT 2007 x86_64
x86_64 x86_64 GNU/Linux

$ pwd
/etc/cups

$ ll ppd/clp300.ppd 
-rw-r--r-- 1 root root 22765 Dec 17 11:37 ppd/clp300.ppd
$ 

Comment 8 Tim Waugh 2008-01-24 11:20:42 EST
(In reply to comment #6)
> Oh yeah:  "Help" -> "About". No real help at all.
> Should I want to file a Bug Report on this???

It's Help->About -- it's just meant to tell you the version number.  No-one has
written any on-line help for system-config-printer yet, unfortunately.
Comment 9 Tim Waugh 2008-01-24 11:23:29 EST
I need to see debugging information from amd.rkkda.org.  Here's how to get it
(all commands are to be run on amd.rkkda.org):

1. Edit /etc/cups/cupsd.conf and change the 'LogLevel' line to read:

LogLevel debug2

2. Stop CUPS:

/sbin/service cups stop

3. Clear out the error log file:

>/var/log/cups/error_log

4. Start CUPS again:

/sbin/service cups start

Now, on dual.rkkda.org, run the python script from comment #4 again, and
finally, please attach the /var/log/cups/error_log file from amd.rkkda.org.
Comment 10 Rick Richardson 2008-01-24 11:38:28 EST
Created attachment 292812 [details]
/var/log/cups/error_log

Now, on dual.rkkda.org, run the python script from comment #4 again, and
finally, please attach the /var/log/cups/error_log file from amd.rkkda.org.
Comment 11 Tim Waugh 2008-01-24 11:55:40 EST
d [24/Jan/2008:10:34:13 -0600] cupsdAuthorize: con->uri="/printers/clp300.ppd",
con->best=0x5555556b78d0(/printers/clp300)
d [24/Jan/2008:10:34:13 -0600] cupsdAuthorize: Authorization=""
D [24/Jan/2008:10:34:13 -0600] cupsdAuthorize: No authentication data provided.
d [24/Jan/2008:10:34:13 -0600] cupsdIsAuthorized:
con->uri="/printers/clp300.ppd", con->best=0x5555556b78d0(/printers/clp300)
d [24/Jan/2008:10:34:13 -0600] cupsdIsAuthorized: level=AUTH_ANON,
type=AUTH_NONE, satisfy=AUTH_SATISFY_ALL, num_names=0
d [24/Jan/2008:10:34:13 -0600] cupsdIsAuthorized: auth=AUTH_DENY...
d [24/Jan/2008:10:34:13 -0600] cupsdReadClient: Unauthorized request for
/printers/clp300.ppd...
D [24/Jan/2008:10:34:13 -0600] cupsdSendError: 9 code=403 (Forbidden)

So it's a configuration of the server to deny us read access to that PPD.
Comment 12 Rick Richardson 2008-01-24 12:24:24 EST
Server should say
'denied read access to the PPD'

instead of
"server-error-server-unavilable",

The server is available.


Comment 13 Rick Richardson 2008-01-24 12:29:02 EST
Also...

the "shared" status is wrong.  It should be the opposite!!!!

E.G. 2430 is "not shared" when in fact it is "shared", and vice-versa for the
clp300!!!!
Comment 14 Rick Richardson 2008-01-24 14:05:54 EST
You know, ALL of those non-shared printers should be eliminated from the list!
E.G. 2430, 2430s, and mc5430 should be the only ones from amd.rkkda.org!  All
other printers shouldn't appear in the list (e.g. clp300).

What do you think?
Comment 15 Tim Waugh 2008-01-25 05:22:17 EST
Yes, they should.  It's a problem of the server though -- it is advertising
queues that are not accessible.  Upgrade from Fedora Core 5 to something that's
currently supported and that will be fixed. ;-)

Note You need to log in before you can comment on or make changes to this bug.