LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 07-20-2015, 06:17 PM   #1
MajorLunaC
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Rep: Reputation: Disabled
Question cups error "Not Found"


I'm using Slackware64 14.1 with a custom kernel, and 32-bit multilib on a desktop.

I've been trying to get my printer working, and I found that the browser interface for cups just shows "Not Found" on the page, and the page is titled "Not Found - CUPS v1.5.4" @

http://localhost:631/
http://127.0.0.1:631/

Code:
bash-4.2$ ls /var/log/packages | grep -i cups
cups-1.5.4-x86_64-3
cups-compat32-1.5.4-x86_64-3compat32
pycups-1.9.61-x86_64-1
Code:
bash-4.2# ps -u root | grep cups
  901 ?        00:00:00 cupsd
Code:
bash-4.2# nmap localhost

Starting Nmap 6.40 ( http://nmap.org ) at 2015-07-20 18:01 CDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.0000020s latency).
Not shown: 999 closed ports
PORT    STATE SERVICE
631/tcp open  ipp

Nmap done: 1 IP address (1 host up) scanned in 0.08 seconds

((EDIT: ))

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[SOLVED]

Reinstalling cups from a Slackware ftp fixed the problem.

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Last edited by MajorLunaC; 07-21-2015 at 01:12 PM.
 
Old 07-20-2015, 08:19 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
have you started the cups service?
 
Old 07-20-2015, 08:42 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
To build on what willysr said, you can use the ps command to see whether the CUPS daemon (cups) is running.

Code:
$ ps -A | grep cupsd
 1352 ?        00:00:01 cupsd    <--if nothing is returned, it's not running.
If it's not running, check that cups is marked executable in /etc/rc.d.

Code:
# cd /etc/rc.d
# ls -l rc.cups
-rwxr-xr-x 1 root root 3678 Apr 13 18:48 rc.cups
This link should help: http://alien.slackbook.org/dokuwiki/...slackware:cups
 
Old 07-20-2015, 09:06 PM   #4
MajorLunaC
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Which one is the "service"? I got that cupsd is the daemon, but the only other part I'm familiar with is the scheduler. So which cups command? (second command below is Tab listing)

Code:
bash-4.2# /etc/rc.d/rc.cups status
cups: scheduler is running.
Code:
bash-4.2# cups
cups-calibrate     cupsaccept         cupsdisable        cupstestdsc
cups-config        cupsaddsmb         cupsenable         cupstestppd
cups-genppd.5.2    cupsctl            cupsfilter         
cups-genppdupdate  cupsd              cupsreject
Code:
bash-4.2# ls -l /etc/rc.d/rc.cups
-r-xr-xr-x 1 root root 4308 Oct 10  2013 /etc/rc.d/rc.cups
I already mentioned that the cupsd is running, but I guess I should separate it out per command for clarity.

Last edited by MajorLunaC; 07-20-2015 at 09:11 PM.
 
Old 07-20-2015, 09:42 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141Reputation: 6141
"Daemon" is the *nix term for a "service" or "process."

The daemon manages the scheduler, spooler, and other functions, according to this Wikipedia article, which seems to be a pretty detailed description of CUPS and its constituent elements.
 
Old 07-21-2015, 01:06 AM   #6
Labinnah
Member
 
Registered: May 2014
Location: Łódź, Poland
Distribution: Slackware-current
Posts: 185

Rep: Reputation: 112Reputation: 112
Check if "/usr/doc/cups-1.5.4/" directory exist. If not, reinstall cups. In this dir lie cups index page and stylesheets. If you have problems with non-index pages check "/usr/share/cups/templates/" - there lie other web interface pages templates.
 
Old 07-21-2015, 06:00 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
by default, cups is not started
you need to run
Code:
chmod +x /etc/rc.d/rc.cups
/etc/rc.d/rc.cups start
 
Old 07-21-2015, 10:17 AM   #8
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273Reputation: 7273

Perhaps this has already been discussed and I missed it (wouldn't be the first time ), but isn't the rc.cups server daemon usually selected during the initial installation? It is not selected by default, but if you want cups to run, you have to select it during the install or it can be selected later by running 'pkgtool.'
Of course, as willysr pointed out, you can do it from the command line.

Last edited by cwizardone; 07-21-2015 at 10:20 AM.
 
Old 07-21-2015, 11:03 AM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
As the OP posted cups is running
Code:
ps -u root | grep cups
 901 ?        00:00:00 cupsd
bash-4.2# nmap localhost

PORT    STATE SERVICE
631/tcp open  ipp

bash-4.2# /etc/rc.d/rc.cups status
cups: scheduler is running.
As Labinnah posted the templates/CSS files have been "screwed" up for lack of a better word.

Check out this thread.
http://www.linuxquestions.org/questi...nd-4175525114/
 
Old 07-21-2015, 01:06 PM   #10
MajorLunaC
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up

Reinstalling cups from a Slackware ftp did the trick (I should have tried that first!). Strange though, as I never even touched cups until now. I've been updating Slackware on occasion, but I never dealt with cups.

Thanks for the help everyone!
 
  


Reply



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
CUPS gives host not found error dinolinux Linux - Software 4 04-24-2007 04:54 PM
Suse CUPS error: cups(File)DoRequest error:client-error-bad-request smdonelan Linux - Hardware 6 04-17-2007 06:46 PM
Samba / Cups: client-error-not-found ramabungle Fedora 0 01-19-2006 11:00 AM
CUPS not printing - client-error-not-found xmnemonic Linux - Hardware 1 05-22-2004 02:31 PM
Cups - "client-error-not-found" error timfair Linux - Software 0 06-13-2003 11:21 PM

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

All times are GMT -5. The time now is 06:17 AM.

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