[cups.general] http://localhost:631 displays raw html
John Blinka
jblinka at neo.rr.com
Sun Feb 26 07:53:37 PST 2006
Hi,
I've got 5 machines running Gentoo linux and all running cups. On four
of the
machines, cups works perfectly. On one it doesn't work at all. On that
machine
I can't configure cups via http://localhost:631 because, instead of
displaying the
cups admin web page, the browser displays only the raw html.
Here's what I know about the problem so far:
1) cupsd is running and listening to port 631. neither restarting
cupsd nor
rebooting solves the problem.
2) cupsd is returning the contents of the file
/usr/share/cups/docs/index.html
to the web browser. The contents and permissions on that file are
identical to the contents and permissions on my machines where cups
behaves correctly.
3) The display of raw html occurs on both firefox and konqueror, so it's
not a browser specific problem.
4) Both firefox and konqeror display all other web pages correctly. Both
display the contents of /usr/share/cups/docs/index.html correctly if I
access it as file:///usr/share/cups/docs/index.html.
5) The cups logs on the affected and unaffected machines are slightly
different. Neither machine reports anything in the error logs when I
attempt to access http://localhost:631. On the affected machine (the
one on which cups does not work) the access_log contains
localhost - - [26/Feb/2006:07:03:24 -0500] "GET / HTTP/1.1" 200 1604
localhost - - [26/Feb/2006:07:03:24 -0500] "GET /favicon.ico
HTTP/1.1" 404 0
An unaffected machine contains a little more:
localhost - - [26/Feb/2006:06:59:49 -0500] "GET / HTTP/1.1" 200 1604
localhost - - [26/Feb/2006:06:59:49 -0500] "GET /cups.css
HTTP/1.1" 200 87
localhost - - [26/Feb/2006:06:59:50 -0500] "GET /images/navbar.gif
HTTP/1.1" 200 2869
localhost - - [26/Feb/2006:06:59:50 -0500] "GET /favicon.ico
HTTP/1.1" 404 0
In addition, the affected machine's error logs contain lines like:
W [25/Feb/2006:19:03:46 -0500] AddBanner: Banner "classified" is
of an unknown file type - skipping!
W [25/Feb/2006:19:03:46 -0500] AddBanner: Banner "confidential" is
of an unknown file type - skipping!
W [25/Feb/2006:19:03:46 -0500] AddBanner: Banner "secret" is of an
unknown file type - skipping!
W [25/Feb/2006:19:03:46 -0500] AddBanner: Banner "standard" is of
an unknown file type - skipping!
W [25/Feb/2006:19:03:46 -0500] AddBanner: Banner "topsecret" is of
an unknown file type - skipping!
W [25/Feb/2006:19:03:46 -0500] AddBanner: Banner "unclassified" is
of an unknown file type - skipping!
W [25/Feb/2006:19:04:58 -0500] AddBanner: Banner "classified" is
of an unknown file type - skipping!
I don't know where those are coming from. They don't appear in
the unaffected machine.
6) I compared the output of wget -S http://localhost:631 on affected
and unaffected machines.
There's one significant difference. On the affected machine, wget
reports
Content-Type: text/plain; charset=utf-8
and on the unaffected machine wget reports
Content-Type: text/html; charset=utf-8
So, the browser displays raw html because that's what cupsd tells
it to display. But why?
Thanks in advance for any help!
John Blinka
More information about the cups
mailing list