LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-27-2007, 03:14 PM   #1
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Rep: Reputation: 30
Cups printers getting disabled. Why?


Hey all,
I have a new server (Poweredge 2950 Xeon 5148) with about 100 clients on it, who are printing constantly to socket and lpd printers (128 printers to be exact). We have cups running from the following RPM:
Code:
# rpm -qa | grep -i cups
cups-libs-1.1.22-0.rc1.9.20.2.el4_5.2
cups-1.1.22-0.rc1.9.20.2.el4_5.2
hal-cups-utils-0.5.2-8.2
libgnomecups-0.1.12-5
For some reason, after a minute or 2 (what seems at random), printers are disabling themselves. WE have no idea why. Our cupsd.conf is the same from all our other systems, and they all print just fine. We had to create a script to enable the printers and we run it every minute (not my own handywork)

Code:
DISABLED=`lpstat -t | grep dis | head -1 | awk '{print $2}'`
while [ $DISABLED != "" ]
do
        /usr/sbin/lpadmin -p $DISABLED -E
        DISABLED=`lpstat -t | grep dis | head -1 | awk '{print $2}'`
done
I have enabled "debug" logging, but im not even sure what to look for.
can anyone help me in the right direction to better trouble shoot this. Thanks soo much!
 
Old 12-27-2007, 03:18 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,579

Rep: Reputation: 187Reputation: 187
On my system I have two cups log files:

/var/log/cups/access_log
/var/log/cups/error_log

You might check these logs if you have them on your system.

----------------------
Steve Stites
 
Old 12-27-2007, 03:34 PM   #3
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Original Poster
Rep: Reputation: 30
Yes, i do have these log files, and i have enabled them to "debug" level (which logs almost everything).

I ran a "tail -f" of the error log, and its a lot of stuff, but nothing looks like errors.
 
Old 12-27-2007, 07:59 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,579

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by blizunt7 View Post
Yes, i do have these log files, and i have enabled them to "debug" level (which logs almost everything).

I ran a "tail -f" of the error log, and its a lot of stuff, but nothing looks like errors.
Take a look in /var/spool/cups. Sometimes when you have printer errors you get unprinted jobs stuck in the spool. Delete all of the jobs in the cups spool and you may get rid of the one which cups is unable to handle for whatever reason. I have cleared printer jams this way a couple of times.

----------------------
Steve Stites
 
Old 12-27-2007, 09:04 PM   #5
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,486

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Perhaps you need to increase the Max_Clients in cupsd.conf?
 
Old 12-28-2007, 11:49 AM   #6
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 272

Original Poster
Rep: Reputation: 30
Max clients is at default (100), i have over 100 printers. However my other systems also have over 100 prints, with cups.conf max clients set at 100.
(clients = printers .. i assume)??

jailbait -- /var/spool/cups -- If a print job prints, is it kept in spool/cups?? or does it get cleared.
Currently i have 1018 line items in /var/spool/cups

Last edited by blizunt7; 12-28-2007 at 11:50 AM.
 
Old 12-28-2007, 04:35 PM   #7
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,579

Rep: Reputation: 187Reputation: 187
Quote:
Originally Posted by blizunt7 View Post
Max clients is at default (100), i have over 100 printers. However my other systems also have over 100 prints, with cups.conf max clients set at 100.
(clients = printers .. i assume)??

jailbait -- /var/spool/cups -- If a print job prints, is it kept in spool/cups?? or does it get cleared.
Currently i have 1018 line items in /var/spool/cups
Yes, it is kept in /var/spool/cups. I wrote a script to clean the garbage out of my system once a week. One thing the cleanup script does is clear /var/spool/cups.

-------------------------
Steve Stites
 
  


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 disables printers! AndrewCAtWayofthebit Red Hat 2 07-14-2008 01:27 AM
CUPS printers disable turbo_acura Linux - Software 1 07-04-2007 11:41 PM
Configuring CUPS with Networked printers anickless Linux - Networking 3 11-24-2005 05:46 PM
backing up printers in cups GUIPenguin Linux - General 1 06-23-2005 12:39 PM
Printers and cups Pedroski Linux - Hardware 1 10-05-2003 07:50 PM


All times are GMT -5. The time now is 07:56 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