LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Cannot get CUPS Working! (https://www.linuxquestions.org/questions/slackware-14/cannot-get-cups-working-154719/)

klatu 03-07-2004 05:15 PM

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,

Tinkster 03-07-2004 06:09 PM

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

How are you starting cups?


Cheers,
Tink

Tino27 03-07-2004 06:29 PM

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.

klatu 03-07-2004 06:59 PM

DOH!!! Can't believe I have spent 2 days on this.

Thanks for the help.

Tino27, that was exaclty the trouble!

Thanks again.


All times are GMT -5. The time now is 03:21 PM.