LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-11-2014, 03:46 PM   #1
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Rep: Reputation: 131Reputation: 131
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.
 
Old 11-11-2014, 04:13 PM   #2
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
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.
 
Old 11-11-2014, 06:23 PM   #3
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
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.
 
Old 11-11-2014, 06:34 PM   #4
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
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.
 
Old 11-11-2014, 09:14 PM   #5
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
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!!!!
 
Old 11-12-2014, 04:38 PM   #6
ljb643
Member
 
Registered: Nov 2003
Posts: 526

Rep: Reputation: Disabled
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.
 
Old 11-12-2014, 05:04 PM   #7
Ook
Member
 
Registered: Apr 2004
Location: Hell, Arizona (July - 118 degrees)
Distribution: Slackware 14.2 soon to be Slackware 15
Posts: 699

Original Poster
Rep: Reputation: 131Reputation: 131
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My Brother MFC 5890CN printer keeps giving "No Pages found" errors w/ cups chrisportela Linux - Hardware 5 07-07-2011 08:04 PM
[cups] "no printers found" - printer isn't recognized by CUPS over network Majin_Buu Linux - Server 3 06-18-2009 10:25 AM
Access CUPS web interface "Administrative Tasks" ALInux Linux - Networking 2 05-24-2006 02:55 AM
Slackware 9.0: "No network interface card found" Xylon Linux - Networking 7 10-01-2003 09:46 PM
Cups & gimp-print "No pages found!" Silent1 Linux - Hardware 2 01-17-2003 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration