[cups] broken pipe but job successfull

Helge Blischke helgeblischke at web.de
Wed Aug 19 09:15:45 PDT 2020



> Am 19.08.2020 um 15:42 schrieb Lorenzo Milesi <lorenzo.milesi at gmail.com>:
> 
> I'm having a weird issue: the job is reported as printed but the document
> is not. After enabling debug I found the connection is established, some
> data is sent to the printer but during the transport the commands returns a
> broken pipe error. Despite of this the job is reported as successfully
> printed by CUPS, so it's lost.
> Is it some configuration parameter or the driver itself not reporting the
> job as not printed?
> Thanks
> 
> 
> printers.conf is configured as:
> 
>   + Info: KONICA MINOLTA C352/C300 PS(P)
>   + MakeModel: KONICA MINOLTA C352/C300 PS(P)
>   + DeviceURI: socket://192.168.11.185 <callto:192.168.11.185>
> 
> PPD file is in /etc/cups/ppd/OLIVETTI_d-Copia_3500MF.ppd (the printer is an
> Olivetti, basically a rebranding of a Konica Minolta).
> 
> 
> Log:
> D [09/Aug/2020:19:53:18 +0200] [Job 33149] Connecting to 192.168.11.185
> <callto:192.168.11.185>:9100
> I [09/Aug/2020:19:53:18 +0200] [Job 33149] Connessione alla stampante in
> corso.
> D [09/Aug/2020:19:53:18 +0200] [Job 33149] Set job-printer-state-message to
> "Connessione alla stampante in corso.", current level=INFO
> D [09/Aug/2020:19:53:18 +0200] [Job 33149] STATE: -connecting-to-device
> I [09/Aug/2020:19:53:18 +0200] [Job 33149] Connesso alla stampante.
> D [09/Aug/2020:19:53:18 +0200] [Job 33149] Set job-printer-state-message to
> "Connesso alla stampante.", current level=INFO
> D [09/Aug/2020:19:53:18 +0200] [Job 33149] Connected to 192.168.11.185
> <callto:192.168.11.185>:9100...
> D [09/Aug/2020:19:53:18 +0200] [Job 33149] backendRunLoop(print_fd=0,
> device_fd=7, snmp_fd=6, addr=0x55cdce2bf6d8, use_bc=1,
> side_cb=0x55cdcd65e000)
> D [09/Aug/2020:19:53:18 +0200] [Job 33149] Read 8192 bytes of print data...
> D [09/Aug/2020:19:53:19 +0200] [Job 33149] ATTR:
> marker-levels=81,82,83,16,93,99,93,99,95,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
> D [09/Aug/2020:19:53:19 +0200] [Job 33149] new_supply_state=0,
> change_state=a2
> D [09/Aug/2020:19:53:19 +0200] [Job 33149] STATE: -developer-empty-warning
> D [09/Aug/2020:19:53:19 +0200] [Job 33149] STATE: -opc-life-over-warning
> D [09/Aug/2020:19:53:19 +0200] [Job 33149] STATE: -toner-empty-warning
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] new_state=100, change_state=0
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Wrote 8192 bytes of print data...
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Read 8192 bytes of print data...
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Wrote 8192 bytes of print data...
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Read 8192 bytes of print data...
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Wrote 8192 bytes of print data...
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Read 8192 bytes of print data...
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Wrote 8192 bytes of print data...
> D [09/Aug/2020:19:53:20 +0200] [Job 33149] Read 1329 bytes of print data...
> D [09/Aug/2020:19:53:26 +0200] [Job 33149] ATTR:
> marker-levels=81,82,83,16,93,99,93,99,95,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
> D [09/Aug/2020:19:53:26 +0200] [Job 33149] new_supply_state=0,
> change_state=0
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] Error reading back-channel data:
> Connection reset by peer
> E [09/Aug/2020:19:55:20 +0200] [Job 33149] Non è possibile scrivere i dati
> della stampa: Broken pipe
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] Set job-printer-state-message to
> "Non è possibile scrivere i dati della stampa: Broken pipe", current
> level=ERROR
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] STATE:
> +cups-waiting-for-job-completed
> I [09/Aug/2020:19:55:20 +0200] [Job 33149] In attesa che la stampante
> finisca.
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] ATTR:
> marker-levels=81,82,83,16,93,99,93,99,95,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] new_supply_state=0,
> change_state=0
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] new_state=100, change_state=0
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] PID 31542
> (/usr/lib/cups/backend/socket) exited with no errors.
> D [09/Aug/2020:19:55:20 +0200] [Job 33149] time-at-completed=1596995720
> <callto:1596995720>
> I [09/Aug/2020:19:55:20 +0200] [Job 33149] Job completed.
> D [09/Aug/2020:19:55:21 +0200] [Job 33149] Unloading…

My first suspicion is that the print file causes the printer’s PS interpreter to crash and restart.
Please send me the input file off the list (as the list deletes all attachments but text files).

Helge




More information about the cups mailing list