Print jobs not working correctly in cups
Hello,
I have a server that was set up to print orders from our salespeople every 15 minutes. A cron job checks to see if there are any new orders in a database. The cron job queries the database and any new orders since the last cron was run are sent to cups for printing. A couple months ago we updated the server to fix some problems. Well, those problems were fixed but it broke something so that these orders no longer print. I checked a few places for clues as to what is going on. The cron jobs are running correctly according to teh /var/log/messages file. In the /var/log/cups/error_log file I see this:
E [05/Aug/2012:01:04:28 -0500] Unable to encrypt connection from 192.168.0.254.
E [05/Aug/2012:01:04:28 -0500] error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol
E [06/Aug/2012:08:10:19 -0500] Fatal error during SSL shutdown!
E [06/Aug/2012:08:10:19 -0500] Fatal error during SSL shutdown!
The first two occur every Sunday night and I am able to go onto the printer on Monday morning, pause the print job, set the status of the new orders in the database to new, and the start the printer to get them printed. But I have to do this every Monday and it really is a pain. Not only that, but there are two other order sheets just like this one that stopped printing altogether.
The specific error I see in the print queue is:
Paused- "/usr/libexec/cups/backend/hp failed"
I looked this up and it led me to run an hp-check command, which I got this output:
---------------
| SYSTEM INFO |
---------------
Basic system information:
Linux centraldb 2.6.36-gentoo-r5 #1 SMP Wed Feb 16 09:03:16 Local time zone must be set--see zic x86_64 Intel(R) Xeon(R) CPU E5506 2.13GHz GenuineIntel GNU/Linux
Distribution:
gentoo 0.0
Checking Python version...
OK, version 2.6.6 installed
Checking PyQt 4.x version...
OK, version 4.8.1 installed.
Checking for CUPS... Status: scheduler is running Version: 1.5.3
error_log is set to level: debug
Checking for dbus/python-dbus... dbus daemon is running.
python-dbus version: 1.0.0
------------------------------------
| COMPILE AND RUNTIME DEPENDENCIES |
------------------------------------
note: To check for compile-time only dependencies, re-run hp-check with the -c parameter (ie, hp-check -c).
note: To check for run-time only dependencies, re-run hp-check with the -r parameter (ie, hp-check -r).
Checking for dependency: CUPS - Common Unix Printing System...
OK, found.
Checking for dependency: CUPS devel- Common Unix Printing System development files...
OK, found.
Checking for dependency: CUPS image - CUPS image development files...
OK, found.
Checking for dependency: DBus - Message bus system...
OK, found.
Checking for dependency: gcc - GNU Project C and C++ Compiler...
OK, found.
Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
OK, found.
Checking for dependency: libcrypto - OpenSSL cryptographic library...
OK, found.
Checking for dependency: libjpeg - JPEG library...
OK, found.
Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
OK, found.
Checking for dependency: libpthread - POSIX threads library...
OK, found.
Checking for dependency: libtool - Library building support services...
OK, found.
Checking for dependency: libusb - USB library...
OK, found.
Checking for dependency: make - GNU make utility to maintain groups of programs...
OK, found.
Checking for dependency: PIL - Python Imaging Library (required for commandline scanning with hp-scan)...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: PolicyKit - Administrative policy framework...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
OK, found.
Checking for dependency: Python DBus - Python bindings for DBus...
OK, found.
Checking for dependency: Python devel - Python development files...
OK, found.
Checking for dependency: Python libnotify - Python bindings for the libnotify Desktop notifications...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: Python XML libraries...
OK, found.
Checking for dependency: Python 2.3 or greater - Required for fax functionality...
OK, found.
Checking for dependency: Python 2.2 or greater - Python programming language...
OK, found.
Checking for dependency: Reportlab - PDF library for Python...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: SANE - Scanning library...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: SANE - Scanning library development files...
error: NOT FOUND! This is a REQUIRED/COMPILE TIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
Checking for dependency: scanimage - Shell scanning program...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
Checking for dependency: xsane - Graphical scanner frontend for SANE...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
----------------------
| HPLIP INSTALLATION |
----------------------
Currently installed HPLIP version...
HPLIP 3.11.10 currently installed in '/usr/share/hplip'.
Current contents of '/etc/hp/hplip.conf' file:
# hplip.conf. Generated from hplip.conf.in by configure.
[hplip]
version=3.11.10
[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/ppd/HP
ppdbase=/usr/share/ppd
doc=/usr/share/doc/hplip-3.11.10
html=/usr/share/doc/hplip-3.11.10/html
icon=/usr/share/applications
cupsbackend=/usr/libexec/cups/backend
cupsfilter=/usr/libexec/cups/filter
drv=/usr/share/cups/drv/hp
# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=yes
scanner-build=no
fax-build=no
dbus-build=yes
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=no
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=yes
cups-ppd-install=no
internal-tag=3.11.10
restricted-build=no
ui-toolkit=qt4
qt3=no
qt4=yes
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=yes
hpcups-only-build=no
hpijs-only-build=no
Current contents of '/var/lib/hp/hplip.state' file:
Plugins are not installed. Could not access file: No such file or directory
Current contents of '~/.hplip/hplip.conf' file:
error: Could not access file: No such file or directory
--------------------------
| DISCOVERED USB DEVICES |
--------------------------
No devices found.
---------------------------------
| INSTALLED CUPS PRINTER QUEUES |
---------------------------------
hp_laserjet_2035n
-----------------
Type: Unknown
Device URI: ///dev/null
HP_LaserJet_P2035n
------------------
Type: Printer
Device URI: hp:/net/HP_LaserJet_P2035n?ip=****
PPD: /etc/cups/ppd/HP_LaserJet_P2035n.ppd
PPD Description: HP LaserJet p2035n zjs, hpcups 3.10.9, requires proprietary plugin Printer status: printer HP_LaserJet_P2035n is idle. enabled since Mon Aug 6 09:03:48 2012
error: Required plug-in status: Not installed
Communication status: Good
hplaserjet_p2035n
-----------------
Type: Unknown
Device URI: ///dev/null
Tosh-237
--------
Type: Unknown
Device URI: socket:*****
PPD: /etc/cups/ppd/Tosh-237.ppd
PPD Description: TOSHIBA e-STUDIO850 Series PS Printer sReady to print.Tosh-237 is idle. enabled since Mon Aug 6 08:53:31 2012
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
---------------------
| PYTHON EXTENSIONS |
---------------------
Checking 'cupsext' CUPS extension...
OK, found.
Checking 'pcardext' Photocard extension...
OK, found.
Checking 'hpmudext' I/O extension...
OK, found.
---------------
| USER GROUPS |
---------------
root bin daemon sys adm disk wheel floppy dialout tape video
-----------
| SUMMARY |
-----------
error: 10 errors and/or warnings.
I try to update hplip and it fails to install the required dependencies. I'm not sure if I'm even on the right trail here or not. I have experience with a few distros but Gentoo is very new to me. Does anyone have any ideas as to what I should check/do?
Thanks ahead of time!