LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-25-2014, 08:40 AM   #1
r41d3n
Member
 
Registered: Mar 2013
Distribution: Debian
Posts: 42

Rep: Reputation: Disabled
CUPS url showing "Not Found"


When I open the CUPS url http://localhost:631, a message showing "Not Found" is displayed. But when I open http://localhost:631/admin or http://localhost:631/printers, I can modify the configuration although the pages are opened in basic html and not showing some images. The CUPS version is 1.5.4 and my OS is Slackware64 14.1.
 
Old 05-25-2014, 08:56 AM   #2
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Do you have an entry for localhost in you /etc/hosts file?
Code:
# For loopbacking.
127.0.0.1		localhost
 
Old 05-25-2014, 05:29 PM   #3
r41d3n
Member
 
Registered: Mar 2013
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: Disabled
Yes I have. I have a machine with Slackware x86 and the error doesn't happen, only on x86_64.
 
Old 05-27-2014, 06:57 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
So, you're getting the error when you simply connect to http://localhost:631, is that correct? You don't see the CUPS Home page, but you can administer the printer(s)?

Maybe a little bit more information might help; how are you connecting to CUPS, on the box itself or a virtual machine? Can you ping localhost:
Code:
ping -c  5 localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.019 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.026 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.028 ms
64 bytes from localhost (127.0.0.1): icmp_seq=4 ttl=64 time=0.029 ms
64 bytes from localhost (127.0.0.1): icmp_seq=5 ttl=64 time=0.027 ms

--- localhost ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 3999ms
rtt min/avg/max/mdev = 0.019/0.025/0.029/0.007 ms
Do your groups look much like this (in a terminal window):
Code:
groups
users lp floppy audio video cdrom scanner vboxusers
You must be a member of the lp group (and you should be a member of the others with the exception of vboxusers).

Last edited by tronayne; 05-27-2014 at 06:58 AM.
 
Old 05-27-2014, 07:53 PM   #5
r41d3n
Member
 
Registered: Mar 2013
Distribution: Debian
Posts: 42

Original Poster
Rep: Reputation: Disabled
I'm connecting from my physical machine, not virtual and my user is member of the lp group. I also can ping localhost with no problem exactly like you showed. Do you know where is the document root of CUPS?

Last edited by r41d3n; 05-27-2014 at 07:55 PM.
 
Old 05-28-2014, 09:11 AM   #6
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060Reputation: 1060
Have you applied all the patches (including the kernel patches)? There isn't one directly connected with CUPS but some ills have been corrected. The kernel patches are only for 64-bit, and all the others do bring the machine up to current stable. Depending upon which browser you're using (Firefox being the recommended one), that may explain or help. There is absolutely no reason that you can't open CUPS with Firefox unless you've fiddled with settings or added additional software.

If you haven't done the patches, you can find them at http://ftp.osuosl.org/pub/slackware/...ches/packages/ and it would be a good idea to download and apply them all. I use wget to get the patches and apply them manually because I have more than one machine and it's just easier for me to do that, you can use whatever tool you like.

Have you done a full install of Slackware? Have you added or removed packages (if so, what)? Do you have IPTABLES that may be blocking localhost? Do you have a router that may not be passing localhost?

You might try removing and reinstalling CUPS just to see if that helps (it shouldn't but who knows).

It's normal that CUPS works out-of-the-box. Unless something was changed to interfere with that, it ought to just go. CUPS doesn't have a document root as such (it's not in /var/www/htdocs). All the CUPS software is ower-group root.root. Has that by any chance been altered? For example, look at
Code:
ls -al /usr/bin/*cups*
-r-xr-xr-x 1 root root 11048 Oct 10  2013 /usr/bin/cancel-cups*
-rwxr-xr-x 1 root root 27600 Jul 20  2012 /usr/bin/cups-calibrate*
-r-xr-xr-x 1 root root  3413 Oct 10  2013 /usr/bin/cups-config*
-r-xr-xr-x 1 root root 10968 Oct 10  2013 /usr/bin/cupstestdsc*
-r-xr-xr-x 1 root root 46904 Oct 10  2013 /usr/bin/cupstestppd*
-r-xr-xr-x 1 root root 14112 Oct 10  2013 /usr/bin/lp-cups*
-r-xr-xr-x 1 root root 13840 Oct 10  2013 /usr/bin/lpq-cups*
-r-xr-xr-x 1 root root 11472 Oct 10  2013 /usr/bin/lpr-cups*
-r-xr-xr-x 1 root root  7368 Oct 10  2013 /usr/bin/lprm-cups*
-r-xr-xr-x 1 root root 24176 Oct 10  2013 /usr/bin/lpstat-cups*
 
  


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
HOW TO FIX ""The requested URL /phpMyAdmin was not found on this server."" amritpalpathak Linux - Software 20 11-06-2012 02:23 AM
"The requested URL /test1.php was not found on this server." Error alihonarmand Linux - Desktop 1 02-05-2012 11:01 AM
[cups] "no printers found" - printer isn't recognized by CUPS over network Majin_Buu Linux - Server 3 06-18-2009 11:25 AM
on url "http://localhost/" error ""The requested URL could not be retrieved " renuaseri Linux - Newbie 1 04-07-2009 01:23 AM
internal error message"repo-non-oss vaid metadata not found at specified url(s)" sklinux Linux - Newbie 2 11-05-2008 02:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:11 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration