Skip to content

Troubleshooting

Yuri Voinov edited this page Apr 12, 2023 · 2 revisions

To make sure adapter is loaded and running, you can use this command:

# pldd `pgrep -o squid` | grep ecap
/usr/local/lib/libecap.so.3.0.0

If command above return empty string, check your Squid's configuration.

The most common cause is an incorrectly specified service name:

ecap_service gzip_service respmod_precache ecap://www.thecacheworks.com/ecap_gzip_deflate [maxsize=16777216] [level=6] [errlog=0] [complog=0] bypass=off

Service name (ecap://www.thecacheworks.com/ecap_gzip_deflate) must always be the same like specified in macro ECAP_SERVICE_NAME:

#define ECAP_SERVICE_NAME "ecap://www.thecacheworks.com/ecap_gzip_deflate"

as defined in src\adapter_gzip.h.in.

Note: If you have specified a log file, the squid must have write access to this file at the specified path. Default log file is:

#define ECAP_ERROR_LOG "/var/log/ecap_gzip_err.log"

You can re-define log file name and path with parameter:

errlogname (default path/filename is /var/log/ecap_gzip_err.log)	- arbitrary error log name.

as described in README.

Clone this wiki locally