LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cups web interface "Not Found" (https://www.linuxquestions.org/questions/slackware-14/cups-web-interface-not-found-4175525114/)

Ook 11-11-2014 03:46 PM

Cups web interface "Not Found"
 
Slackware 14.1 fairly recent clean install. 64 bit.

Out of the blue I can no longer get to the cups web interface at http://localhost:631/. This has always worked, one of those things you just take for granted.

Cups is running, I can telnet to port 631, and my printers work. I just can't get to the web interface anymore. I haven't touced cupsd.conf, I haven't touched rc.cups, I haven't done anything that I can think of that would be even remotely related to this. It just went away.

Specifically, I try to go to http://localhost:631/ in my browser (tried different browsers) and I get "Not Found" in the browser. The html looks like this:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<TITLE>Not Found - CUPS v1.5.4</TITLE>
<LINK REL="STYLESHEET" TYPE="text/css" HREF="/cups.css">
</HEAD>
<BODY>
<H1>Not Found</H1>
<P></P>
</BODY>
</HTML>

Notice that it gives me a version for cups above in the html? Cups is running and it responds, but the above is how it responds.

Ook 11-11-2014 04:13 PM

PS:

http://localhost:631/admin/ actually takes me to the admin page, and I can manage my printers from there. But the formatting is broken, it's like it can't find its style sheet or something like that. Does it in both firefox and chrome.

ljb643 11-11-2014 06:23 PM

Looks like the same problem as here

Cause and solution in the last comment: You installed something that broke the link /usr/share/doc and replaced it with a directory, so now Cups cannot find its style sheet and web templates.

ljb643 11-11-2014 06:34 PM

Small correction: that directory /usr/share/doc/cups only has the top-level page, style sheet, and images. The templates are elsewhere. That's why you can get to sub-pages like localhost:631/admin/ - which uses a template - but not the top page localhost:631.

Ook 11-11-2014 09:14 PM

wtbfh??? How did that happen? You are absolutely right!

And here, the link is gone, replaced with a directory just like you said.

And, the culprit is the cupswrapperhl2230 installer for the Brother HL2230. We got ourselves a rogue installer, boys :-)

/usr/share/doc links to /usr/doc on a normal install. So, copy the single directory, cupswrapperhl2230. into /usr/doc, delete empty /usr/share/doc, symlink it back to /usr/doc, problem solved!!!

TYVM!!!!

ljb643 11-12-2014 04:38 PM

Good work. But where did that package come from? Was it meant for Slackware? If it was, I hope you'll report it to its maintainers. If it wasn't a Slackware package, I suppose the lesson is never unpack something from / without really knowing what is inside.

Ook 11-12-2014 05:04 PM

It wasn't a slackware package, it actually started in life as a debian .deb. What is odd is that I used it before a month or there ago and did not have any problems then. I might poke around a bit and see what I can find. Maybe it's time I learned how to make slackware packages, and submit this one? Getting a Brother laser printer to work is not as straight forwards as it should be, Brother doesn't just make a .ppd, nooo you have to jump through flaming hoops on one foot while blindfolded....or so it feels like. It's not difficult to make it work once you know exactly which hoop to jump through - and which one not to...


All times are GMT -5. The time now is 11:13 PM.