Initialization failure following squid -k reconfigure

Bug #800281 reported by John Bull on 2011-06-21
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Squid
New
Medium
eCAP
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.

Alex Rousskov (rousskov) on 2011-06-21
tags: added: clamav
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) on 2011-06-21
Changed in ecap:
status: New → Triaged
Alex Rousskov (rousskov) wrote :

Does the attached patch help?

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) on 2013-09-12
Changed in ecap:
status: Triaged → Fix Committed
Alex Rousskov (rousskov) on 2013-09-18
Changed in ecap:
milestone: none → 1.0.0
Alex Rousskov (rousskov) on 2014-09-02
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  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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