LinuxQuestions.org
Register a domain and help support LQ
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 03-07-2004, 05:15 PM   #1
klatu
Member
 
Registered: Nov 2003
Location: Texas
Distribution: Slackware 9.1, Fedora Core 1 & Mandrake 9.2
Posts: 31

Rep: Reputation: 15
Cannot get CUPS Working!


Here are my Nmap results, error message from CUPS and the error that stops CUPS. I have been searching for an answer for several days and I am missing something , but I'm not sure what. I cannot connect to http://localhost:631 to configure printers.

Slackware 9.1 = 2.4.25
CUPS = cups-1.1.20-i486-1


Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-03-07 16:54 CST
Interesting ports on localhost (127.0.0.1):
PORT STATE SERVICE
631/tcp closed ipp

Nmap run completed -- 1 IP address (1 host up) scanned in 0.311 seconds



I [07/Mar/2004:16:35:06 -0600] Listening to 0:631
I [07/Mar/2004:16:35:06 -0600] Listening to 0:25856
I [07/Mar/2004:16:35:06 -0600] Listening to 7f000001:631
I [07/Mar/2004:16:35:06 -0600] Listening to 0:631
I [07/Mar/2004:16:35:06 -0600] Loaded configuration file "/etc/cups/cupsd.conf"
I [07/Mar/2004:16:35:06 -0600] Configured for up to 100 clients.
I [07/Mar/2004:16:35:06 -0600] Allowing up to 100 client connections per host.
I [07/Mar/2004:16:35:06 -0600] Full reload is required.
I [07/Mar/2004:16:35:47 -0600] LoadPPDs: Read "/etc/cups/ppds.dat", 519 PPDs...
I [07/Mar/2004:16:35:47 -0600] LoadPPDs: No new or changed PPDs...
I [07/Mar/2004:16:35:47 -0600] Full reload complete.
E [07/Mar/2004:16:35:47 -0600] StartListening: Unable to bind socket - Address already in use.

cupsd: Child exited with status 98!

Thanks,
 
Old 03-07-2004, 06:09 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
What do /etc/hosts.allow and /etc/hosts.deny
look like? Are you running iptables?

How are you starting cups?


Cheers,
Tink
 
Old 03-07-2004, 06:29 PM   #3
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

Rep: Reputation: 30
klatu -- I had this problem as well, it turned out that I had inadvertently told CUPS to listen to the same port twice in the configuration file...

In the /etc/cups/cupsd.conf file on my CUPS server, in the Network Options section:

########
######## Network Options
########

#
# Ports/addresses that we listen to. The default port 631 is reserved
# for the Internet Printing Protocol (IPP) and is what we use here.
#
# You can have multiple Port/Listen lines to listen to more than one
# port or address, or to restrict access:
#
# Port 80
# Port 631
# Listen hostname
# Listen hostname:80
# Listen hostname:631
# Listen 1.2.3.4
# Listen 1.2.3.4:631
#
# NOTE: Unfortunately, most web browsers don't support TLS or HTTP Upgrades
# for encryption. If you want to support web-based encryption you'll
# probably need to listen on port 443 (the "https" port...)
#

#Port 80
#Port 443
Port 631

Since I wanted to listen for requests from my laptop, I added the following line:

Listen 192.168.100:631

What I didn't realize was that since "Port 631" was already listed, it was the first to get bound to port 631. When I added the additional one, I started getting the "cupsd: Child exited with status 98!" error. As soon as I removed the line I added, it started up just fine. I guess I needed one or the other, but not both.

Hope that helps.

Last edited by Tino27; 03-07-2004 at 06:31 PM.
 
Old 03-07-2004, 06:59 PM   #4
klatu
Member
 
Registered: Nov 2003
Location: Texas
Distribution: Slackware 9.1, Fedora Core 1 & Mandrake 9.2
Posts: 31

Original Poster
Rep: Reputation: 15
DOH!!! Can't believe I have spent 2 days on this.

Thanks for the help.

Tino27, that was exaclty the trouble!

Thanks again.
 
  


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
cups printing not working chocloman Debian 4 08-22-2005 03:09 AM
Cups server not working rossjman1 Debian 11 02-28-2005 05:00 PM
cups quits working wb9smc Linux - Software 6 07-30-2004 08:49 PM
lpr & lpr-cups commands not working with CUPS trinbellwoods Debian 2 01-08-2004 08:25 AM
RedHat CUPS install not working... Gveto Linux - Software 5 03-12-2003 07:18 PM


All times are GMT -5. The time now is 09:08 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration