LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 02:14 PM   #1
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

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, 02:18 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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, 02:34 PM   #3
blizunt7
Member
 
Registered: Mar 2004
Distribution: Fedora Core 1,2,3, RHEL3,4,5 Ubuntu
Posts: 274

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, 06:59 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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, 08:04 PM   #5
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,371

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

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 10:50 AM.
 
Old 12-28-2007, 03:35 PM   #7
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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