-   Linux - Software (
-   -   CUPS url showing "Not Found" (

r41d3n 05-25-2014 08:40 AM

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.

tronayne 05-25-2014 08:56 AM

Do you have an entry for localhost in you /etc/hosts file?

# For loopbacking.                localhost

r41d3n 05-25-2014 05:29 PM

Yes I have. I have a machine with Slackware x86 and the error doesn't happen, only on x86_64.

tronayne 05-27-2014 06:57 AM

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:

ping -c  5 localhost
PING localhost ( 56(84) bytes of data.
64 bytes from localhost ( icmp_seq=1 ttl=64 time=0.019 ms
64 bytes from localhost ( icmp_seq=2 ttl=64 time=0.026 ms
64 bytes from localhost ( icmp_seq=3 ttl=64 time=0.028 ms
64 bytes from localhost ( icmp_seq=4 ttl=64 time=0.029 ms
64 bytes from localhost ( 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):

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).

r41d3n 05-27-2014 07:53 PM

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?

tronayne 05-28-2014 09:11 AM

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 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

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*

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