Initialization failure following squid -k reconfigure

Bug #800281 reported by John Bull
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Squid
New
Medium
eCAP
Fix Released
Undecided
Unassigned

Bug Description

eCAP fails to start following squid -k reconfigure

Loading Squid module from '/usr/lib/ecap_clamav_adapter.so'
Squid plugin modules loaded: 1
Adaptation support is on
ERROR: failed to start optional eCAP service: ecap://e-cap.org/ecap/services/clamav?mode=REQMOD: Service.cc::73: !scanner
WARNING: optional eCAP service is down after initialization failure: ecap://e-cap.org/ecap/services/clamav?mode=REQMOD
ERROR: failed to start optional eCAP service: ecap://e-cap.org/ecap/services/clamav?mode=RESPMOD:
Service.cc::73: !scanner
WARNING: optional eCAP service is down after initialization failure: ecap://e-cap.org/ecap/services/clamav?mode=RESPMOD

Restarting squid successful initializes eCAP service.

Tags: clamav
Alex Rousskov (rousskov)
tags: added: clamav
Revision history for this message
Alex Rousskov (rousskov) wrote :

This is probably a Squid bug: During reconfiguration, Squid should call libecap::Service::reconfigure() but calls libecap::Service::configure() instead. Unfortunately, I do not see a quick way to fix Squid -- it seems to be missing the whole concept of service reconfiguration. It always creates and configures service representatives from scratch.

It should be possible to work around this problem in the adapter itself. I will post a patch.

Alex Rousskov (rousskov)
Changed in ecap:
status: New → Triaged
Revision history for this message
Alex Rousskov (rousskov) wrote :

Does the attached patch help?

Revision history for this message
John Bull (jbull) wrote :

Alex,

Thank you for the patch, it appears to be effective. eCAP service starts without issue following Squid reconfigure.

Thanks,
John

Alex Rousskov (rousskov)
Changed in ecap:
status: Triaged → Fix Committed
Alex Rousskov (rousskov)
Changed in ecap:
milestone: none → 1.0.0
Alex Rousskov (rousskov)
Changed in ecap:
status: Fix Committed → Fix Released
Changed in squid:
importance: Unknown → Medium
status: Unknown → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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