LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-02-2006, 12:47 PM   #1
wadesmart
Member
 
Registered: Jul 2005
Location: Oklahoma
Distribution: Ubuntu
Posts: 83

Rep: Reputation: 15
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
 
Old 05-03-2006, 12:57 PM   #2
herd
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian unstable / ubuntu
Posts: 18

Rep: Reputation: 0
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~)?
 
Old 05-03-2006, 02:39 PM   #3
wadesmart
Member
 
Registered: Jul 2005
Location: Oklahoma
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
I only see classes.conf in /usr/share/doc/cupsys/examples.

I dont see any error log
 
Old 05-03-2006, 03:45 PM   #4
wadesmart
Member
 
Registered: Jul 2005
Location: Oklahoma
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
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
 
Old 05-04-2006, 01:49 AM   #5
herd
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian unstable / ubuntu
Posts: 18

Rep: Reputation: 0
Probably logrotate zipped the previous entries - any similarly named files?
 
Old 05-04-2006, 06:35 AM   #6
wadesmart
Member
 
Registered: Jul 2005
Location: Oklahoma
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
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
 
Old 05-04-2006, 07:21 PM   #7
wadesmart
Member
 
Registered: Jul 2005
Location: Oklahoma
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
Solved!

I have a working printer now!!!!! GREAT!!!
 
Old 05-08-2006, 09:20 AM   #8
herd
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian unstable / ubuntu
Posts: 18

Rep: Reputation: 0
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?
 
Old 05-08-2006, 10:00 AM   #9
wadesmart
Member
 
Registered: Jul 2005
Location: Oklahoma
Distribution: Ubuntu
Posts: 83

Original Poster
Rep: Reputation: 15
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
 
Old 05-16-2006, 03:25 AM   #10
herd
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian unstable / ubuntu
Posts: 18

Rep: Reputation: 0
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
 
  


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 wont start Smokey Slackware 6 04-01-2009 08:46 AM
cups refuses to start Yalla-One Slackware 2 11-13-2005 03:22 AM
CUPS won't start ArmOrAttAk Slackware 36 05-31-2005 01:35 PM
start CUPS on boot allelopath SUSE / openSUSE 4 12-09-2004 03:03 PM
CUPS won't start dave37 Linux - Newbie 0 10-07-2003 07:47 PM

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

All times are GMT -5. The time now is 01:29 PM.

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