[cups] snmp backend started a job failed

Helge Blischke helgeblischke at web.de
Sat Jul 25 03:47:02 PDT 2015


It only opens a connection to the printer’s SNMP agent if that exists and works,
if it is used by the backend/filters involved  or not. 
I think it is simply an implementation decision to provide this by one central
routine.

> Am 24.07.2015 um 21:50 schrieb Alex Korobkin <korobkin at gmail.com>:
> 
> Yeah, that's what I'm saying: cupsSNMPsupples is set to false, but it still
> opens the backend. Why?
> On Jul 24, 2015 15:43, "Helge Blischke" <helgeblischke at web.de> wrote:
> 
>> The message concerning the snmp_fd that baffles you does *not* mean that
>> the SNMP backend has beed started. Instead, every network related backend
>> tries to open a snmp socket (in case the cusSNMPsupplies keyword is set to
>> true and thus needed).
>> The problem is apparently that the foomatic-rip filter exits with the abort
>> system call (signal 6 is SIGABORT). You should try to find out the reason
>> for
>> this abortion.
>> 
>>> Am 24.07.2015 um 17:55 schrieb Alex Korobkin <korobkin+cups at gmail.com>:
>>> 
>>> Hi all,
>>> 
>>> I just noticed that a couple of failed jobs seem to have launched snmp
>>> backend for no apparent reason. One of them failed because foomatic-rip
>> had
>>> crashed on signal 6. Another one failed because "Error reading
>> back-channel
>>> data: Connection reset by peer."
>>> 
>>> Both have this line in the log:
>>> [Job X] backendWaitLoop(snmp_fd=5, addr=0x7..., side_cb=0x7...)
>>> 
>>> I checked the logs and found that this happens every time when a job
>> fails
>>> with one of these errors.
>>> All my printers have cupsSNMPsupples set to False in the PPD.
>>> 
>>> Is this a bug, or does CUPS intentionally start snmp when a job fails?
>>> 
>>> 
>>> Typical end of a job log below:
>>> [Job 399799] Started filter pdftocairo (PID 5283)
>>> [Job 399799] Started filter pstops (PID 5284)
>>> [Job 399799] PID 5283 (pdftocairo) exited with no errors.
>>> [Job 399799] Page = 612x792; 12,12 to 600,780
>>> [Job 399799] slow_collate=0, slow_duplex=1, slow_order=0
>>> [Job 399799] Before copy_comments - %!PS-Adobe-3.0
>>> [Job 399799] %!PS-Adobe-3.0
>>> [Job 399799] %%Creator: cairo 1.14.2 (http://cairographics.org)
>>> [Job 399799] %%CreationDate: Wed Jul 22 20:45:01 2015
>>> [Job 399799] %%Pages: 2
>>> [Job 399799] %%DocumentData: Clean7Bit
>>> [Job 399799] %%LanguageLevel: 3
>>> [Job 399799] %%DocumentMedia: Letter 612 792 0 () ()
>>> [Job 399799] %%BoundingBox: 35 70 455 757
>>> [Job 399799] %%EndComments
>>> [Job 399799] Before copy_prolog - %%BeginProlog
>>> [Job 399799] Before copy_setup - %%BeginSetup
>>> [Job 399799] Before page loop - %%Page: 1 1
>>> [Job 399799] Copying page 1...
>>> [Job 399799] pagew = 588.0, pagel = 768.0
>>> [Job 399799] bboxx = 0, bboxy = 0, bboxw = 612, bboxl = 792
>>> [Job 399799] PageLeft = 12.0, PageRight = 600.0
>>> [Job 399799] PageTop = 780.0, PageBottom = 12.0
>>> [Job 399799] PageWidth = 612.0, PageLength = 792.0
>>> [Job 399799] Copying page 2...
>>> [Job 399799] PID 5280 (/usr/lib/cups/filter/foomatic-rip) crashed on
>>> signal 6.
>>> [Job 399799] Hint: Try setting the LogLevel to "debug" to find out more.
>>> [Job 399799] pagew = 588.0, pagel = 768.0
>>> [Job 399799] bboxx = 0, bboxy = 0, bboxw = 612, bboxl = 792
>>> [Job 399799] PageLeft = 12.0, PageRight = 600.0
>>> [Job 399799] PageTop = 780.0, PageBottom = 12.0
>>> [Job 399799] PageWidth = 612.0, PageLength = 792.0
>>> [Job 399799] Wrote 2 pages...
>>> [Job 399799] PID 5284 (pstops) exited with no errors.
>>> [Job 399799] PID 5279 (/usr/lib/cups/filter/pdftops) exited with no
>> errors.
>>> [Job 399799] PID 5281 (/usr/lib/cups/backend/socket) exited with no
>> errors.
>>> [Job 399799] backendWaitLoop(snmp_fd=5, addr=0x7f35d39f3d58,
>>> side_cb=0x7f35d28581d0)
>>> [Job 399799] End of messages
>>> [Job 399799] printer-state=3(idle)
>>> [Job 399799] printer-state-message="Filter failed"
>>> [Job 399799] printer-state-reasons=none
>>> [Job 399799] Stopping unresponsive job.
>>> 
>>> --
>>> -Alex
>>> _______________________________________________
>>> cups mailing list
>>> cups at cups.org
>>> https://www.cups.org/mailman/listinfo/cups
>> 
>> _______________________________________________
>> cups mailing list
>> cups at cups.org
>> https://www.cups.org/mailman/listinfo/cups
>> 
> _______________________________________________
> cups mailing list
> cups at cups.org
> https://www.cups.org/mailman/listinfo/cups




More information about the cups mailing list