unable to write to output, fd=1, count=4096: Broken pipe

Bug #439550 reported by martin_jacobs on 2009-09-30
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HPLIP
Undecided
Unassigned

Bug Description

hplip-3.9.8, compiled using following options
 --disable-foomatic-drv-install
 --disable-foomatic-ppd-install
 --disable-gui-build
 --disable-fax-build
 --disable-dbus-build
 --enable-doc-build
 --enable-hpijs-install
 --enable-scan-build
 --enable-network-build
 --enable-hpcups-install
 --disable-cups-drv-install
 --enable-cups-ppd-install
gcc 3.4.6 on Linux 2.4.21-smp (SuSE 8.1), running CUPS 1.3.11, Printer HP PhotoSmart C 7280, connected via WLAN, printing in general works perfect. But if CUPS gets a print job and Printer is switched on after placing job into queue, hplip driver fails to start printing and creates high CPU load. Full error message found in syslog thousands of times is:
litfass: prnt/hpijs/services.cpp 386: unable to write to output, fd=1, count=4096: Broken pipe
with litfass being the queue name.
Workaround: stop cups printer and restart cups printer, then job is processed correctly.

Any idea how to get rid of that?
Is this a hplip bug or is CUPS the culprit?

<hp-check -t > hp-check.log>
hp-check[30680]: info: :
Initializing. Please wait...
Scheduler wird ausgefÃŒhrt

1.3.11

Linux Schnecke 2.4.21-273-smp #1 SMP Mon Jan 17 13:15:15 UTC 2005 i686 unknown

hp-check[30680]: info: :
hp-check[30680]: info: :---------------
hp-check[30680]: info: :| SYSTEM INFO |
hp-check[30680]: info: :---------------
hp-check[30680]: info: :
hp-check[30680]: info: :Basic system information:
hp-check[30680]: info: :Linux Schnecke 2.4.21-273-smp #1 SMP Mon Jan 17 13:15:15 UTC 2005 i686 unknown
hp-check[30680]: info: :
hp-check[30680]: info: :Distribution:
hp-check[30680]: info: :suse 8.1
hp-check[30680]: info: :
hp-check[30680]: info: :Checking Python version...
hp-check[30680]: info: :OK, version 2.6.0 installed
hp-check[30680]: info: :
hp-check[30680]: info: :Checking PyQt 4.x version...
error: NOT FOUND OR FAILED TO LOAD!
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for CUPS...
hp-check[30680]: info: :Status: Scheduler wird ausgefÃŒhrt
hp-check[30680]: info: :Version: 1.3.11
warning: /etc/cups/cupsd.conf file not found or not accessible.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dbus/python-dbus...
warning: dbus daemon is not running.
warning: python-dbus not installed.
hp-check[30680]: info: :
hp-check[30680]: info: :
hp-check[30680]: info: :------------------------------------
hp-check[30680]: info: :| COMPILE AND RUNTIME DEPENDENCIES |
hp-check[30680]: info: :------------------------------------
hp-check[30680]: info: :
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).
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: CUPS - Common Unix Printing System...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: CUPS DDK - CUPS driver development kit...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: CUPS devel- Common Unix Printing System development files...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: CUPS image - CUPS image development files...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: DBus - Message bus system...
error: NOT FOUND! This is a REQUIRED dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: gcc - GNU Project C and C++ Compiler...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: GhostScript - PostScript and PDF language interpreter and previewer...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: libcrypto - OpenSSL cryptographic library...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: libjpeg - JPEG library...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: libnetsnmp-devel - SNMP networking library development files...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: libpthread - POSIX threads library...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: libtool - Library building support services...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: libusb - USB library...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: make - GNU make utility to maintain groups of programs...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :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.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: PolicyKit - Administrative policy framework...
warning: NOT FOUND! This is an OPTIONAL/RUNTIME ONLY dependency. Some HPLIP functionality may not function properly.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: PyQt 4 DBus - DBus Support for PyQt4...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: Python DBus - Python bindings for DBus...
error: NOT FOUND! This is a REQUIRED/RUNTIME ONLY dependency. Please make sure that this dependency is installed before installing or running HPLIP.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: Python devel - Python development files...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :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.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: Python XML libraries...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: Python 2.3 or greater - Required for fax functionality...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: Python 2.2 or greater - Python programming language...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :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.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: SANE - Scanning library...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: SANE - Scanning library development files...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: scanimage - Shell scanning program...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking for dependency: xsane - Graphical scanner frontend for SANE...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :
hp-check[30680]: info: :----------------------
hp-check[30680]: info: :| HPLIP INSTALLATION |
hp-check[30680]: info: :----------------------
hp-check[30680]: info: :
hp-check[30680]: info: :
hp-check[30680]: info: :Currently installed HPLIP version...
hp-check[30680]: info: :HPLIP 3.9.8 currently installed in '/usr/share/hplip'.
hp-check[30680]: info: :
hp-check[30680]: info: :Current contents of '/etc/hp/hplip.conf' file:
hp-check[30680]: info: :# hplip.conf. Generated from hplip.conf.in by configure.

[hplip]
version=3.9.8

[dirs]
home=/usr/share/hplip
run=/var/run
ppd=/usr/share/cups/model/HP
ppdbase=/usr/share/cups/model
doc=/usr/share/doc/hplip-3.9.8
icon=/usr/share/applications
cupsbackend=/usr/lib/cups/backend
cupsfilter=/usr/lib/cups/filter
drv=/usr/lib/cups/driver

# Following values are determined at configure time and cannot be changed.
[configure]
network-build=yes
pp-build=no
gui-build=no
scanner-build=yes
fax-build=no
dbus-build=no
cups11-build=no
doc-build=yes
shadow-build=no
hpijs-install=yes
foomatic-drv-install=no
foomatic-ppd-install=no
foomatic-rip-hplip-install=no
hpcups-install=yes
cups-drv-install=no
cups-ppd-install=yes
internal-tag=3.9.8.36
restricted-build=no
ui-toolkit=no
qt3=no
qt4=no
policy-kit=no
hpijs-only-build=no
lite-build=no
udev-acl-rules=no

hp-check[30680]: info: :
hp-check[30680]: info: :Current contents of '/var/lib/hp/hplip.state' file:
hp-check[30680]: info: :# hplip.state - HPLIP runtime persistent variables.

[plugin]
installed=0
eula=0

hp-check[30680]: info: :
hp-check[30680]: info: :Current contents of '~/.hplip/hplip.conf' file:
hp-check[30680]: info: :[last_used]
device_uri = hp:/net/Photosmart_C7200_series?ip=192.168.47.121

[installation]
version = 3.9.8.36
date_time = 09/30/09 20:53:26

hp-check[30680]: info: :
hp-check[30680]: info: :--------------------------
hp-check[30680]: info: :| DISCOVERED USB DEVICES |
hp-check[30680]: info: :--------------------------
hp-check[30680]: info: :
hp-check[30680]: info: :No devices found.
hp-check[30680]: info: :
hp-check[30680]: info: :---------------------------------
hp-check[30680]: info: :| INSTALLED CUPS PRINTER QUEUES |
hp-check[30680]: info: :---------------------------------
hp-check[30680]: info: :
hp-check[30680]: info: :
hp-check[30680]: info: :litfass
hp-check[30680]: info: :-------
hp-check[30680]: info: :Type: Printer
hp-check[30680]: info: :Device URI: hp:/net/Photosmart_C7200_series?ip=192.168.47.121
hp-check[30680]: info: :PPD: /etc/cups/ppd/litfass.ppd
hp-check[30680]: info: :PPD Description: HP Photosmart c7200 Series, hpcups 3.9.8.36
hp-check[30680]: info: :Printer status: Drucker litfass ist inaktiv. Aktiviert seit Mit 30 Sep 2009 20:25:31 MEST
hp-check[30680]: info: :Communication status: Good
hp-check[30680]: info: :
hp-check[30680]: info: :litfass-duplex
hp-check[30680]: info: :--------------
hp-check[30680]: info: :Type: Printer
hp-check[30680]: info: :Device URI: hp:/net/Photosmart_C7200_series?ip=192.168.47.121
hp-check[30680]: info: :PPD: /etc/cups/ppd/litfass-duplex.ppd
hp-check[30680]: info: :PPD Description: HP Photosmart c7200 Series, hpcups 3.9.6b.4
hp-check[30680]: info: :Printer status: Drucker litfass-duplex ist inaktiv. Aktiviert seit Mon 28 Sep 2009 21:23:16 MEST
hp-check[30680]: info: :Communication status: Good
hp-check[30680]: info: :
hp-check[30680]: info: :psdjet
hp-check[30680]: info: :------
hp-check[30680]: info: :Type: Unknown
hp-check[30680]: info: :Device URI: parallel:/dev/lp0
hp-check[30680]: info: :PPD: /etc/cups/ppd/psdjet.ppd
hp-check[30680]: info: :PPD Description: HP Deskjet 500, hpcups 3.9.6b.4
hp-check[30680]: info: :Printer status: Drucker psdjet deaktiviert seit Mon 28 Sep 2009 20:22:51 MEST - Paused
warning: Printer is not HPLIP installed. Printers must use the hp: or hpfax: CUPS backend to function in HPLIP.
hp-check[30680]: info: :
hp-check[30680]: info: :rembrandt
hp-check[30680]: info: :---------
hp-check[30680]: info: :Type: Printer
hp-check[30680]: info: :Device URI: hp:/net/Photosmart_C7200_series?ip=192.168.47.121
hp-check[30680]: info: :PPD: /etc/cups/ppd/rembrandt.ppd
hp-check[30680]: info: :PPD Description: HP Photosmart c7200 Series, hpcups 3.9.6b.4
hp-check[30680]: info: :Printer status: Drucker rembrandt ist inaktiv. Aktiviert seit Sam 19 Sep 2009 13:27:03 MEST
hp-check[30680]: info: :Communication status: Good
hp-check[30680]: info: :
hp-check[30680]: info: :rembrandt-duplex
hp-check[30680]: info: :----------------
hp-check[30680]: info: :Type: Printer
hp-check[30680]: info: :Device URI: hp:/net/Photosmart_C7200_series?ip=192.168.47.121
hp-check[30680]: info: :PPD: /etc/cups/ppd/rembrandt-duplex.ppd
hp-check[30680]: info: :PPD Description: HP Photosmart c7200 Series, hpcups 3.9.6b.4
hp-check[30680]: info: :Printer status: Drucker rembrandt-duplex ist inaktiv. Aktiviert seit Fre 21 Aug 2009 16:43:39 MEST
hp-check[30680]: info: :Communication status: Good
hp-check[30680]: info: :
hp-check[30680]: info: :rembrandt-photo
hp-check[30680]: info: :---------------
hp-check[30680]: info: :Type: Printer
hp-check[30680]: info: :Device URI: hp:/net/Photosmart_C7200_series?ip=192.168.47.121
hp-check[30680]: info: :PPD: /etc/cups/ppd/rembrandt-photo.ppd
hp-check[30680]: info: :PPD Description: HP Photosmart c7200 Series, hpcups 3.9.6b.4
hp-check[30680]: info: :Printer status: Drucker rembrandt-photo ist inaktiv. Aktiviert seit Sam 22 Aug 2009 09:34:33 MEST
hp-check[30680]: info: :Communication status: Good
hp-check[30680]: info: :
hp-check[30680]: info: :
hp-check[30680]: info: :----------------------
hp-check[30680]: info: :| SANE CONFIGURATION |
hp-check[30680]: info: :----------------------
hp-check[30680]: info: :
hp-check[30680]: info: :'hpaio' in '/etc/sane.d/dll.conf'...
hp-check[30680]: info: :OK, found. SANE backend 'hpaio' is properly set up.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking output of 'scanimage -L'...
hp-check[30680]: info: :device `rembrandt' is a Hewlett-Packard Photosmart_C7200_series all-in-one

hp-check[30680]: info: :
hp-check[30680]: info: :---------------------
hp-check[30680]: info: :| PYTHON EXTENSIONS |
hp-check[30680]: info: :---------------------
hp-check[30680]: info: :
hp-check[30680]: info: :Checking 'cupsext' CUPS extension...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking 'pcardext' Photocard extension...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking 'hpmudext' I/O extension...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :Checking 'scanext' SANE scanning extension...
hp-check[30680]: info: :OK, found.
hp-check[30680]: info: :
hp-check[30680]: info: :
hp-check[30680]: info: :
hp-check[30680]: info: :---------------
hp-check[30680]: info: :| USER GROUPS |
hp-check[30680]: info: :---------------
hp-check[30680]: info: :
hp-check[30680]: info: :users dialout video games trusted cdburners backupop scanner

hp-check[30680]: info: :
hp-check[30680]: info: :-----------
hp-check[30680]: info: :| SUMMARY |
hp-check[30680]: info: :-----------
hp-check[30680]: info: :
error: 10 errors and/or warnings.
hp-check[30680]: info: :
hp-check[30680]: info: :Please refer to the installation instructions at:
hp-check[30680]: info: :http://hplip.sourceforge.net/install/index.html

hp-check[30680]: info: :
hp-check[30680]: info: :Done.

</hp-check -t > hp-check.log>

Johannes Meixner (jsmeix) wrote :

Any news here?

Note that the worst side-effect of this is that
those zillions of log messages fill up the harddisk.

For example see
https://bugzilla.novell.com/show_bug.cgi?id=557000
and
https://bugzilla.novell.com/show_bug.cgi?id=656197

Regardless whether or not a syslog service filters out
duplicate log messages, first and foremost the applications
which send log messages to a syslog service must care
not to flood the syslog service with unlimited messages
(regadless if same or different messages) at the same time.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.