LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   CUPS will not start (https://www.linuxquestions.org/questions/ubuntu-63/cups-will-not-start-440944/)

wadesmart 05-02-2006 12:47 PM

CUPS will not start
 
05022006 1240 GMT-6

I am running 5.10 Ubuntu.

Last week I went to print and nothing happened. I went to the print control panel and it said CUPS failed to start. I asked for help in the ubuntu forums and it really lead nowhere.

One guy who did help had me run
Code:

netstat -tan|grep 63
and the result was nothing. Nothing came up on the screen.

Then he had me run
Code:

sudo tail -f /var/log/cups/error_log
and that produced the following:

Code:

I [29/Apr/2006:13:02:35 -0500] Listening to c0a80002:631
I [29/Apr/2006:13:02:35 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [29/Apr/2006:13:02:35 -0500] Configured for up to 100 clients.
I [29/Apr/2006:13:02:35 -0500] Allowing up to 100 client connections per host.
I [29/Apr/2006:13:02:35 -0500] Full reload is required.

E [29/Apr/2006:13:02:35 -0500] LoadAllClasses: Unable to open /etc/cups/classes.conf - No such file or direct ory

I [29/Apr/2006:13:02:37 -0500] LoadPPDs: Read "/etc/cups/ppds.dat", 4104 PPDs...
I [29/Apr/2006:13:02:39 -0500] LoadPPDs: No new or changed PPDs...
I [29/Apr/2006:13:02:42 -0500] Full reload complete.

E [29/Apr/2006:13:02:42 -0500] StartListening: Unable to bind socket for address c0a80002:631 - Cannot assign  requested address.

I [29/Apr/2006:16:39:13 -0500] Listening to 7f000001:631
I [29/Apr/2006:16:39:13 -0500] Listening to c0a80002:631
I [29/Apr/2006:16:39:13 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [29/Apr/2006:16:39:13 -0500] Configured for up to 100 clients.
I [29/Apr/2006:16:39:13 -0500] Allowing up to 100 client connections per host.
I [29/Apr/2006:16:39:13 -0500] Full reload is required.

E [29/Apr/2006:16:39:13 -0500] LoadAllClasses: Unable to open /etc/cups/classes.conf - No such file or directory

I [29/Apr/2006:16:39:14 -0500] LoadPPDs: Read "/etc/cups/ppds.dat", 4104 PPDs...
I [29/Apr/2006:16:39:14 -0500] LoadPPDs: No new or changed PPDs...
I [29/Apr/2006:16:39:14 -0500] Full reload complete.

E [29/Apr/2006:16:39:14 -0500] StartListening: Unable to bind socket for address c0a80002:631 - Cannot assign requested address.

I have made no changes to my system in weeks. It was printing fine during the week and then it stopped. I had not run a update before it stopped.

My printer is a Epson Stylus C61.

It happened earlier last week. Now Im really in a bind print wise. Can someone give me a hand.

Wade

herd 05-03-2006 12:57 PM

Well, its all there:
If it says it can't open /etc/cups/classes.conf, my first questions would be:
Did it succeed to open it before? (scroll up in the error log to last week)
Where does this file come from? try dpkg -S classes.conf
Is there a backup? (./classes.conf~)?

wadesmart 05-03-2006 02:39 PM

I only see classes.conf in /usr/share/doc/cupsys/examples.

I dont see any error log

wadesmart 05-03-2006 03:45 PM

I found the error log but it only went back to April 26 and it says:

Code:

I [26/Apr/2006:07:35:25 -0500] Listening to 7f000001:631
I [26/Apr/2006:07:35:25 -0500] Listening to c0a80002:631
I [26/Apr/2006:07:35:25 -0500] Loaded configuration file "/etc/cups/cupsd.conf"
I [26/Apr/2006:07:35:25 -0500] Configured for up to 100 clients.
I [26/Apr/2006:07:35:25 -0500] Allowing up to 100 client connections per host.
I [26/Apr/2006:07:35:25 -0500] Full reload is required.
E [26/Apr/2006:07:35:25 -0500] LoadAllClasses: Unable to open /etc/cups/classes.conf - No such file or directory
I [26/Apr/2006:07:35:26 -0500] LoadPPDs: Read "/etc/cups/ppds.dat", 4104 PPDs...
I [26/Apr/2006:07:35:27 -0500] LoadPPDs: No new or changed PPDs...
I [26/Apr/2006:07:35:29 -0500] Full reload complete.
E [26/Apr/2006:07:35:29 -0500] StartListening: Unable to bind socket for address c0a80002:631 - Cannot assign requested address


herd 05-04-2006 01:49 AM

Probably logrotate zipped the previous entries - any similarly named files?

wadesmart 05-04-2006 06:35 AM

There are only 8 total entries, seven are zipped and one unzipped. The one I posted above was the furthest back in date.

/var/log/cups/error_log7.gz is the oldest in date

wadesmart 05-04-2006 07:21 PM

Solved!
 
I have a working printer now!!!!! GREAT!!!

herd 05-08-2006 09:20 AM

How did you do it?

Btw.: I only use cups for network attached printers.
Do you have an idea how to tell cups to not check LPT1 every now and then
and create lots of 'FIFO timeout' garbage messages in dmesg?

wadesmart 05-08-2006 10:00 AM

In my particular case, CUPS would not start because the line that says what address to listen for, there were two addresses. I dont know how a second address go there (I didnt put it there) but after removing it cups started right up and its been just fine since.

I have no idea on your LPT1 question. Im getting though it has something to do with the listening to address ports - same as mine.

wade

herd 05-16-2006 03:25 AM

To whom it may concern:

If you don't have a printer attached at your parallel port and want to get rid of the kernel FIFO timeout messages in dmesg and xconsole, you'll have to tell lpd (had no relevance to cups this time) not to monitor it. Open /etc/lpd.conf and place a hash here & there.

How to find such an issue? lsof | grep /dev/lp


All times are GMT -5. The time now is 01:59 AM.