Closed michaelrsweet closed 21 years ago
CUPS.org User: mike
Please try compiling the standard CUPS distribution and let us know if the problem persists - Mandrake includes many patches to the CUPS software in its RPMs and it is likely that one of them is causing the problem.
(Also, it might help to send a bug report to the Mandrake folks, specifically to till.kamppeter@gmx.net who does the CUPS packaging for Mandrake...)
CUPS.org User: till.kamppeter
There are no patches in the Mandrake package which affect the behaviour of the scheduler running in the background. Most are patches on documentation and configuration files. The only code patch on the scheduler hooks into the authentication and as the scheduler is not authenticating all the time when it is running, this patch should not cause the high CPU consumption.
CUPS.org User: pipitas
What is your exact configuration? Post the output of
grep -v "^#" /etc/cups/cupsd.conf | grep -v "^$"
How many printers have you installed? Which ones? Post
lpstat -t ls -l /etc/cups/ppd/ for i in /etc/cups/ppd/.ppd; do echo "$i:"; head -n 40 $i ; done for i in /etc/cups/lpoptions /home//.lpoptions ; do cat $i; done cat /etc/cups/printers.conf cat /etc/hosts ls -l /var/spool/cups ls -l /var/spool/cups/tmp
Then let's see if your configuration isn't causing a problem...
Cheers, Kurt
CUPS.org User: mike
In addition, it would be helpful for you to attach a copy of the /var/log/cups/error_log file and run the command "strace -t -p
CUPS.org User: meyerv.winflex
[root@localhost meyerv]# grep -v "^#" /etc/cups/cupsd.conf | grep -v "^$" LogLevel info TempDir /var/spool/cups/tmp Port 631 BrowseAddress @LOCAL BrowseDeny All BrowseAllow 127.0.0.1 BrowseAllow @LOCAL BrowseOrder deny,allow
Order Deny,Allow Deny From All Allow From 127.0.0.1 Allow From @LOCAL <Location /admin> AuthType Basic AuthClass System Order Deny,Allow Deny From All Allow From 127.0.0.1 ServerName 192.168.0.2
CUPS.org User: meyerv.winflex
Kurt, here's more of the info you asked for. I'm not too sure that the smb connections are correct. Neither of them actually works, although they were configured with the cups web tool or with kups. The network workgroup name is "familydoctors", the front desk with the laser printer is "front". There is an HP4 on a linux server running cups named "server" [root@localhost meyerv]# lpstat -t scheduler is running system default destination: Samsung device for Samsung: smb://FAMILYDOCTORS/FRONT/ML-1450 device for test: smb://front/ml-1450 Samsung accepting requests since Jan 01 00:00 test accepting requests since Jan 01 00:00 printer Samsung now printing Samsung-6. enabled since Jan 01 00:00 printer test now printing test-7. enabled since Jan 01 00:00 Samsung-6 meyerv 15360 Fri 14 Mar 2003 03:34:43 PM EST test-7 947200 Fri 14 Mar 2003 05:30:36 PM EST
[root@localhost meyerv]# for i in /etc/cups/ppd/.ppd; do echo "$i:"; head -n 40 $i ; done /etc/cups/ppd/Canon1.ppd: PPD-Adobe: "4.3" % % For information on using this, and to obtain the required backend % script, consult http://www.linuxprinting.org/ppd-doc.html % % PPD-O-MATIC generated this PPD file. It is for use with all programs % and environments which use PPD files for dealing with printer capabilty % information. The printer must be configured with a Foomatic backend % filter script. This file and the backend filter script work together to % support PPD-controlled printer driver option access with arbitrary free % software printer drivers and printing spoolers. % % You may save this file as 'Canon-BJC-4000-bjc600-ppd.ppd' % % FormatVersion: "4.3" FileVersion: "1.1" LanguageVersion: English LanguageEncoding: ISOLatin1 PCFileName: "COMFOOMATIC-CONFIGURE.PPD" Manufacturer: "Canon" Product: "BJC-4000" cupsVersion: 1.0 cupsManualCopies: True cupsModelNumber: 2 cupsFilter: "application/vnd.cups-postscript 0 cupsomatic" ModelName: "BJC-4000" ShortNickName: "BJC-4000" NickName: "Canon BJC-4000, Foomatic + bjc600" PSVersion: "(3010.000) 550" PSVersion: "(3010.000) 651" PSVersion: "(3010.000) 652" PSVersion: "(3010.000) 653" LanguageLevel: "3" ColorDevice: True DefaultColorSpace: RGB FileSystem: False Throughput: "1" LandscapeOrientation: Plus90 VariablePaperSize: False /etc/cups/ppd/Samsung.ppd: PPD-Adobe: "4.3" %PPD file for CUPS/Gimp-Print. %Copyright 1993-2001 by Easy Software Products, All Rights Reserved. %This PPD file may be freely used and distributed under the terms of %the GNU GPL. FormatVersion: "4.3" FileVersion: "4.2.5" LanguageVersion: English LanguageEncoding: ISOLatin1 PCFileName: "pcl-4.ppd" Manufacturer: "HP" Product: "(Gimp-Print v4.2.5)" ModelName: "pcl-4" ShortNickName: "HP LaserJet 4 series" NickName: "HP LaserJet 4 series, CUPS+Gimp-Print v4.2.5" PSVersion: "(2017.000) 705" LanguageLevel: "2" ColorDevice: False DefaultColorSpace: Gray FileSystem: False LandscapeOrientation: Plus90 TTRasterizer: Type42 cupsVersion: 1.1 cupsModelNumber: "6" cupsManualCopies: True *cupsFilter: "application/vnd.cups-raster 100 rastertoprinter"
*VariablePaperSize: false
OpenUI PageSize: PickOne OrderDependency: 10 AnySetup PageSize DefaultPageSize: Letter PageSize Letter/Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice" PageSize Legal/Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice" PageSize Executive/Executive: "<</PageSize[522 756]/ImagingBBox null>>setpagedevice" PageSize Statement/Manual: "<</PageSize[396 612]/ImagingBBox null>>setpagedevice" PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice" PageSize C5/C5: "<</PageSize[459 649]/ImagingBBox null>>setpagedevice" PageSize C6/C6: "<</PageSize[323 459]/ImagingBBox null>>setpagedevice" PageSize DL/DL: "<</PageSize[311 623]/ImagingBBox null>>setpagedevice" /etc/cups/ppd/test.ppd: PPD-Adobe: "4.3" %PPD file for CUPS/Gimp-Print. %Copyright 1993-2001 by Easy Software Products, All Rights Reserved. %This PPD file may be freely used and distributed under the terms of %the GNU GPL. FormatVersion: "4.3" FileVersion: "4.2.5" LanguageVersion: English LanguageEncoding: ISOLatin1 PCFileName: "pcl-4.ppd" Manufacturer: "HP" Product: "(Gimp-Print v4.2.5)" ModelName: "pcl-4" ShortNickName: "HP LaserJet 4 series" NickName: "HP LaserJet 4 series, CUPS+Gimp-Print v4.2.5" PSVersion: "(2017.000) 705" LanguageLevel: "2" ColorDevice: False DefaultColorSpace: Gray FileSystem: False LandscapeOrientation: Plus90 TTRasterizer: Type42 cupsVersion: 1.1 cupsModelNumber: "6" cupsManualCopies: True *cupsFilter: "application/vnd.cups-raster 100 rastertoprinter"
*VariablePaperSize: false
OpenUI PageSize: PickOne OrderDependency: 10 AnySetup PageSize DefaultPageSize: Letter PageSize Letter/Letter: "<</PageSize[612 792]/ImagingBBox null>>setpagedevice" PageSize Legal/Legal: "<</PageSize[612 1008]/ImagingBBox null>>setpagedevice" PageSize Executive/Executive: "<</PageSize[522 756]/ImagingBBox null>>setpagedevice" PageSize Statement/Manual: "<</PageSize[396 612]/ImagingBBox null>>setpagedevice" PageSize A4/A4: "<</PageSize[595 842]/ImagingBBox null>>setpagedevice" PageSize C5/C5: "<</PageSize[459 649]/ImagingBBox null>>setpagedevice" PageSize C6/C6: "<</PageSize[323 459]/ImagingBBox null>>setpagedevice" *PageSize DL/DL: "<</PageSize[311 623]/ImagingBBox null>>setpagedevice"
[root@localhost meyerv]# for i in /etc/cups/lpoptions /home//.lpoptions ; do cat $i; done Default Canon1 cat: /home//.lpoptions: No such file or directory
[root@localhost meyerv]# cat /etc/cups/printers.conf
CUPS.org User: meyerv.winflex
the output of the strace command gives:
22:53:49 time(NULL) = 1051412029 22:53:49 select(1024, [0 2 3 4 5], [], NULL, {1, 0}) = 1 (in [0], left {1, 0}) 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 select(1024, [0 2 3 4 5], [], NULL, {1, 0}) = 1 (in [0], left {1, 0}) 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 select(1024, [0 2 3 4 5], [], NULL, {1, 0}) = 1 (in [0], left {1, 0}) 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 time(NULL) = 1051412029 22:53:49 select(1024, [0 2 3 4 5], [], NULL, {1, 0}) = 1 (in [0], left {1, 0}) 22:53:49 time(NULL) = 1051412029
and just keeps repeating the same ad infiniteum.
CUPS.org User: mike
Can you attach your /var/log/cups/error_log file to the STR?
Thanks!
CUPS.org User: meyerv.winflex
I [28/Apr/2003:19:46:07 -0400] Listening to 0:631 I [28/Apr/2003:19:46:07 -0400] Loaded configuration file "/etc/cups/cupsd.conf" I [28/Apr/2003:19:46:07 -0400] Configured for up to 100 clients. I [28/Apr/2003:19:46:07 -0400] Allowing up to 100 client connections per host. I [28/Apr/2003:19:46:07 -0400] Full reload is required. I [28/Apr/2003:19:46:07 -0400] LoadPPDs: Read "/etc/cups/ppds.dat", 748 PPDs... I [28/Apr/2003:19:46:10 -0400] LoadPPDs: No new or changed PPDs... I [28/Apr/2003:19:46:21 -0400] Started filter /usr/lib/cups/filter/pstops (PID 1322) for job 6. I [28/Apr/2003:19:46:21 -0400] Started filter /usr/lib/cups/filter/pstoraster (PID 1323) for job 6. I [28/Apr/2003:19:46:21 -0400] Started filter /usr/lib/cups/filter/rastertoprinter (PID 1324) for job 6. I [28/Apr/2003:19:46:21 -0400] Started backend /usr/lib/cups/backend/smb (PID 1325) for job 6. I [28/Apr/2003:19:46:21 -0400] Started filter /usr/lib/cups/filter/pstops (PID 1326) for job 7. I [28/Apr/2003:19:46:21 -0400] Started filter /usr/lib/cups/filter/pstoraster (PID 1327) for job 7. I [28/Apr/2003:19:46:21 -0400] Started filter /usr/lib/cups/filter/rastertoprinter (PID 1328) for job 7. I [28/Apr/2003:19:46:21 -0400] Started backend /usr/lib/cups/backend/smb (PID 1329) for job 7. I [28/Apr/2003:19:46:21 -0400] Full reload complete. E [28/Apr/2003:19:46:28 -0400] [Job 7] cli_connect() failed... E [28/Apr/2003:19:46:28 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds..../CIDFnmap 100 1558452 249065 1517296 232812 true 837 4 <3> E [28/Apr/2003:19:47:29 -0400] [Job 7] cli_connect() failed... E [28/Apr/2003:19:48:30 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:49:31 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:50:32 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:51:32 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:52:33 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:53:34 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:54:35 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:55:36 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:56:37 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:57:38 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:58:39 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:19:59:39 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:20:00:40 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:20:01:41 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:20:02:42 -0400] [Job 7] Unable to connect to SAMBA host, will retry in 60 seconds...ERROR: cli_connect() failed... E [28/Apr/2003:20:03:32 -0400] Scheduler shutting down due to SIGTERM.
CUPS.org User: meyerv.winflex
OK - there were two jobs pending. When I put the printer these jobs are for on hold (ie, not accepting new documents) and reboot, problem goes away. The error log makes it look like it never stops trying to reach these printers - even though it says it's going to wait 60 seconds.
Timing on pending jobs maybe related to the problem?
CUPS.org User: mike
What version of SAMBA are you using? Older versions of SAMBA included a smbspool program that didn't retry at the specified interval.
CUPS.org User: mike
OK, never mind, I have duplicated the problem without the SAMBA queue - there is a missing FD_CLR somewhere in the code.
Should have a fix for this today (also affects 1.1.19rc3)
CUPS.org User: mike
The attached patch should fix the problem and is included in CVS for the next release candidate.
Please let me know if this doesn't fix the problem for you and I'll reopen the STR.
CUPS.org User: meyerv.winflex
Thanks! I'll wait for the Mandrake Cooker package of RC4 and will re-test.
"cupsd-cpu.patch":
? client.diff ? cups-filter-v2.patch ? cups-optionlength.patch ? cups-polld.patch ? cupsd-signal.patch ? d00969-001 ? debian-fanta.patch ? getifaddrs.c ? getifaddrs.h ? testnetwork.c ? testprint.ps.gz
RCS file: /development/cvs/cups/scheduler/job.c,v retrieving revision 1.209 diff -u -r1.209 job.c --- job.c 2003/04/28 19:26:38 1.209 +++ job.c 2003/05/01 17:55:43 @@ -795,12 +795,6 @@ */
RCS file: /development/cvs/cups/scheduler/main.c,v retrieving revision 1.101 diff -u -r1.101 main.c --- main.c 2003/04/28 20:14:27 1.101 +++ main.c 2003/05/01 17:55:43 @@ -290,6 +290,17 @@ }
/*
@@ -332,17 +343,6 @@ signal(SIGPIPE, SIG_IGN); signal(SIGTERM, sigterm_handler);
}
/*
Version: 1.1.19rc2 CUPS.org User: meyerv.winflex
Installed cups 1.1.19rc2, packaged from Mandrake Cooker as 1.1.19-0.6mdk. On restarting, the demon takes all available cpu time. Restarting the demon shows the same behavior.