LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-03-2008, 08:38 PM   #1
mightyscotchpine
LQ Newbie
 
Registered: Nov 2007
Posts: 6

Rep: Reputation: 0
Question Ghostscript errors after upgrading from RHEL AS 4 to RHEL 5.1.


Hello all,

I upgraded one of our Linux machines from RHEL AS 4 to RHEL 5.1, and since then, four out of five printers on the machine have stopped working. All my previous Unix printing experience has been with System V type printing, so I'm trying to diagnose the problem & learn CUPS/IPP at the same time. Fun!

I first tried simple things like cupsdisable/reject/accept/cupsenable for each queue, then restarted the CUPS service. No luck.

I changed the CUPS log level to "debug", printed to all printers again, then took a look at /var/log/cups/error_log. For the queues that don't work, I see errors in the Ghostscript stage of the print jobs, including:

Code:
Error: Could not load libomni.so
Error: Loading "/usr/lib/ghostscript/libomni.so" returns "/usr/lib/ghostscript/libomni.so: invalid mode for dlopen(): Invalid argument"
Error: Loading "/usr/lib/Omni/libomni.so" returns "/usr/lib/Omni/libomni.so: invalid mode for dlopen(): Invalid argument"
Error: Loading "/opt/Omni/bin/libomni.so" returns "/opt/Omni/bin/libomni.so: invalid mode for dlopen(): Invalid argument"
Error: Loading "/opt/Omni/lib/libomni.so" returns "/opt/Omni/lib/libomni.so: invalid mode for dlopen(): Invalid argument"
Error: Loading "./libomni.so" returns "./libomni.so: invalid mode for dlopen(): Invalid argument"
Error: Loading "libomni.so" returns "libomni.so: invalid mode for dlopen(): Invalid argument"
If I look through the same logs for details about each printer job, I can see that the printers using a "Foomatic/omni-compiled" model type are the ones that are failing. The one using a Foomatic/Postscript model is ok.

In poking around on other RHEL machines in our network, I see that the Omni Print Driver System package, "Omni" is not part of RHEL 5.1 anymore. I think that maybe all I need to do here is reconfigure these four printers to use a different model type, but I haven't been able to figure that out for CUPS yet. I know in System V, I would just point the printer to a different interface file. Is it that simple in this case? If someone could point me to up to date documentation for CUPS, I would be glad to rtfm. Everything I've gotten from Google, Red Hat and even cups.org has been incomplete or full of GUI instructions. Uggg.

All the details I could think to include are below. Please ask for anything you need:


Printer Model info:
Working printer:
Printer 1 model: HP LaserJet 1300 Foomatic/Postscript

Non-functional printers:
Printer 2 model: HP LaserJet 4000T/TN Foomatic/omni-compiled
Printer 3 model: HP LaserJet 2000 Foomatic/omni-compiled
Printer 4 model: HP LaserJet 5000 Foomatic/omni-compiled

Machine info:
2.6.18-53.1.14.el5 #1 SMP

CUPS info:
libgnomecups-0.2.2-8
hal-cups-utils-0.6.2-5
cups-1.2.4-11.14.el5_1.6
cups-libs-1.2.4-11.14.el5_1.6

Omni Printer driver:
Omni-0.9.1-7.1

Full log of Ghostscript error (see bolded text especially))
Code:
D [03/Apr/2008:16:13:40 -0700] [Job 356] renderer command: gs -q -dPARANOIDSAFER -dBATCH -dNOPAUSE -sOutputFile=- -sDEVICE=omni -sDeviceName=HP_LaserJet_2000 -sproperties=" Form=na_letter_8.50x11.00in InputTray=Top media=MEDIA_PLAIN Resolution=300x300 printmode=PRINT_MODE_1_ANY dither=dither=DITHER_LEVEL Rotation=Portrait" -
D [03/Apr/2008:16:13:40 -0700] [Job 356] foomatic-gswrapper: gs '-dPARANOIDSAFER' '-dBATCH' '-dNOPAUSE' '-sOutputFile=/dev/fd/3' '-sDEVICE=omni' '-sDeviceName=HP_LaserJet_2000' '-sproperties= Form=na_letter_8.50x11.00in InputTray=Top media=MEDIA_PLAIN Resolution=300x300 printmode=PRINT_MODE_1_ANY dither=dither=DITHER_LEVEL Rotation=Portrait' '/dev/fd/0' 3>&1 1>&2
D [03/Apr/2008:16:13:40 -0700] [Job 356] ESP Ghostscript 815.02 (2006-04-19)
D [03/Apr/2008:16:13:40 -0700] [Job 356] Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
D [03/Apr/2008:16:13:40 -0700] [Job 356] This software comes with NO WARRANTY: see the file PUBLIC for details.
D [03/Apr/2008:16:13:40 -0700] [Job 356] <<<<<<<<<<<<<<<<<<<<<< ERROR >>>>>>>>>>>>>>>>>>>>>>>
D [03/Apr/2008:16:13:40 -0700] [Job 356]
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Could not load libomni.so
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Loading "/usr/lib/ghostscript/libomni.so" returns "/usr/lib/ghostscript/libomni.so: invalid mode for dlopen(): Invalid argument"
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Loading "/usr/lib/Omni/libomni.so" returns "/usr/lib/Omni/libomni.so: invalid mode for dlopen(): Invalid argument"
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Loading "/opt/Omni/bin/libomni.so" returns "/opt/Omni/bin/libomni.so: invalid mode for dlopen(): Invalid argument"
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Loading "/opt/Omni/lib/libomni.so" returns "/opt/Omni/lib/libomni.so: invalid mode for dlopen(): Invalid argument"
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Loading "./libomni.so" returns "./libomni.so: invalid mode for dlopen(): Invalid argument"
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Loading "libomni.so" returns "libomni.so: invalid mode for dlopen(): Invalid argument"
D [03/Apr/2008:16:13:40 -0700] [Job 356]
D [03/Apr/2008:16:13:40 -0700] [Job 356] <<<<<<<<<<<<<<<<<<<<<< ERROR >>>>>>>>>>>>>>>>>>>>>>>
D [03/Apr/2008:16:13:40 -0700] [Job 356]
D [03/Apr/2008:16:13:40 -0700] [Job 356] Error: Could not load libomni.so
D [03/Apr/2008:16:13:40 -0700] [Job 356] renderer return value: 1
D [03/Apr/2008:16:13:40 -0700] [Job 356] renderer received signal: 1
D [03/Apr/2008:16:13:40 -0700] [Job 356] tail process done writing data to STDOUT
D [03/Apr/2008:16:13:40 -0700] [Job 356] KID4 finished
D [03/Apr/2008:16:13:40 -0700] [Job 356] KID4 exited with status 0
D [03/Apr/2008:16:13:40 -0700] [Job 356] KID3 exited with status 3
D [03/Apr/2008:16:13:40 -0700] [Job 356] Renderer exit stat: 3
Full error log during CUPS restart:
Code:
I [03/Apr/2008:16:13:13 -0700] Scheduler shutting down normally.
I [03/Apr/2008:16:13:13 -0700] Saving remote.cache...
I [03/Apr/2008:16:13:13 -0700] Saving job cache file "/var/cache/cups/job.cache"...
D [03/Apr/2008:16:13:13 -0700] cupsdDenyIP(loc=0x8dcd048(/), address=0:0:0:0, netmask=0:0:0:0)
W [03/Apr/2008:16:13:13 -0700] "AuthClass System" is deprecated; consider using "Require @SYSTEM" on line 838.
D [03/Apr/2008:16:13:13 -0700] cupsdDenyIP(loc=0x8dd42a0(/admin), address=0:0:0:0, netmask=0:0:0:0)
D [03/Apr/2008:16:13:13 -0700] cupsdDenyIP(loc=0x8dd4350(/printers/Li2800p), address=0:0:0:0, netmask=0:0:0:0)
D [03/Apr/2008:16:13:13 -0700] cupsdDenyIP(loc=0x8dd43f8(/printers/ae192-hplj4050), address=0:0:0:0, netmask=0:0:0:0)
D [03/Apr/2008:16:13:13 -0700] cupsdDenyIP(loc=0x8dd44a8(/printers/li2800-matsdotptr-01), address=0:0:0:0, netmask=0:0:0:0)
D [03/Apr/2008:16:13:13 -0700] cupsdDenyIP(loc=0x8dd4560(/printers/LI1092a-HPLJ1320n-CLASS), address=0:0:0:0, netmask=0:0:0:0)
D [03/Apr/2008:16:13:13 -0700] cupsdDenyIP(loc=0x8dd4618(/printers/LI2800-HPLJ2015), address=0:0:0:0, netmask=0:0:0:0)
I [03/Apr/2008:16:13:13 -0700] Listening to 127.0.0.1:631 (IPv4)
I [03/Apr/2008:16:13:13 -0700] Loaded configuration file "/etc/cups/cupsd.conf"
I [03/Apr/2008:16:13:13 -0700] Using default TempDir of /var/spool/cups/tmp...
I [03/Apr/2008:16:13:13 -0700] Cleaning out old temporary files in "/var/spool/cups/tmp"...
I [03/Apr/2008:16:13:13 -0700] Configured for up to 100 clients.
I [03/Apr/2008:16:13:13 -0700] Allowing up to 100 client connections per host.
I [03/Apr/2008:16:13:13 -0700] Creating CUPS default administrative policy:
I [03/Apr/2008:16:13:13 -0700] <Policy default>
I [03/Apr/2008:16:13:13 -0700] <Limit Send-Document Send-URI Cancel-Job Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job CUPS-Authenticate-Job>
I [03/Apr/2008:16:13:13 -0700] Order Deny,Allow
I [03/Apr/2008:16:13:13 -0700] Require user @OWNER @SYSTEM
I [03/Apr/2008:16:13:13 -0700] </Limit>
I [03/Apr/2008:16:13:13 -0700] <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
I [03/Apr/2008:16:13:13 -0700] Order Deny,Allow
I [03/Apr/2008:16:13:13 -0700] AuthType Basic
I [03/Apr/2008:16:13:13 -0700] Require user @SYSTEM
I [03/Apr/2008:16:13:13 -0700] </Limit>
I [03/Apr/2008:16:13:13 -0700] <Limit All>
I [03/Apr/2008:16:13:13 -0700] Order Deny,Allow
I [03/Apr/2008:16:13:13 -0700] </Limit>
I [03/Apr/2008:16:13:13 -0700] </Policy>
I [03/Apr/2008:16:13:13 -0700] Full reload is required.
I [03/Apr/2008:16:13:13 -0700] Loaded MIME database from '/etc/cups': 28 types, 37 filters...
D [03/Apr/2008:16:13:13 -0700] Loading printer ae192-hplj4050...
D [03/Apr/2008:16:13:13 -0700] Loading printer LI1092a-HPLJ1320n-CLASS...
D [03/Apr/2008:16:13:13 -0700] Loading printer LI2800-HPLJ2015...
D [03/Apr/2008:16:13:13 -0700] Loading printer li2800-matsdotptr-01...
D [03/Apr/2008:16:13:13 -0700] Loading printer Li2800p...
I [03/Apr/2008:16:13:13 -0700] Loading job cache file "/var/cache/cups/job.cache"...
D [03/Apr/2008:16:13:13 -0700] Loading job 1 from cache...
  { This repeats for all 355 cached jobs }
D [03/Apr/2008:16:13:13 -0700] Loading job 355 from cache...
I [03/Apr/2008:16:13:13 -0700] Full reload complete.
I [03/Apr/2008:16:13:13 -0700] Listening to 127.0.0.1:631 on fd 3...
E [03/Apr/2008:16:13:13 -0700] Unable to set ACLs on root certificate "/var/run/cups/certs/0" - Operation not supported
To anyone who read this far: THANK YOU!
 
  


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
Upgrading from RHEL V3 to V5 bootstrap Linux - General 3 03-25-2007 08:52 AM
Upgrading from RHEL V3 to V5 bootstrap Red Hat 1 03-23-2007 07:27 AM
Login problems with XDMCP from a pre-RHEL-4 client to a RHEL-4 server running KDE cspao Red Hat 0 07-21-2006 07:30 AM
Upgrading FireFox in RHEL logosys Linux - Software 4 01-30-2006 08:50 AM
Upgrading Evolution 1.5.94.1 to 2.0 on RHEL jimburt372 Linux - Software 0 10-11-2004 01:24 AM

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

All times are GMT -5. The time now is 03:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration