Re: not able to start ecap with squid

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 15 Jul 2010 00:21:06 +0000

On Wed, 14 Jul 2010 16:08:23 -0600, Alex Rousskov
<rousskov_at_measurement-factory.com> wrote:
> On 07/13/2010 12:00 PM, Sandeep K Kuttal wrote:
>>
>> Hi All,
>>
>> I am new to ecap and squid. I am stuck with starting the squid. I
>> installed ecap gzip and adapters code configured, make and installed
>> them.
>> squid 3.1.1
>> OS ubuntu
>> ecap_adapter_sample-0.0.2
>> squid-ecap-gzip-1.2.0
>> But when I just run the squid with gzip loadable module squid is
running.
>> But for my research I need to make changes to the passthru file. So
when
>> I
>> changed my config file (i.e. squid.conf) as below
>>
>> ecap_enable on
>> ecap_service gzip_service respmod_precache 0
>> ecap://www.vigos.com/ecap_gzip
>> loadable_modules /usr/local/lib/ecap_adapter_gzip.so
>> acl GZIP_HTTP_STATUS http_status 200
>> adaptation_access gzip_service allow GZIP_HTTP_STATUS
>>
>> ecap_service eReqmod reqmod_precache 0
>> ecap://e-cap.org/ecap/services/sample/passthru
>> ecap_service eRespmod respmod_precache 0
>> ecap://e-cap.org/ecap/services/sample/passthru
>> loadable_modules /usr/local/lib/ecap_adapter_passthru.so
>> adaptation_service_set reqFilter eReqmod
>> adaptation_service_set respFilter eRespmod
>>
>> adaptation_access respFilter allow all
>> adaptation_access reqFilter allow all
>>
>> I am not able to run the icap since I am getting the error "icap
protocol
>> error" that icap is not working. Kindly suggest me how to get through
it.
>> the cache.log is as here:
>>
>> 2010/07/13 12:00:48| Starting Squid Cache version 3.1.1 for
>> i686-pc-linux-gnu...
>> 2010/07/13 12:00:48| Process ID 1934
>> 2010/07/13 12:00:48| With 1024 file descriptors available
>> 2010/07/13 12:00:48| Initializing IP Cache...
>> 2010/07/13 12:00:48| DNS Socket created at [::], FD 7
>> 2010/07/13 12:00:48| Adding domain unl.edu from /etc/resolv.conf
>> 2010/07/13 12:00:48| Adding domain unl.edu from /etc/resolv.conf
>> 2010/07/13 12:00:48| Adding nameserver 129.93.1.180 from
/etc/resolv.conf
>> 2010/07/13 12:00:48| Adding nameserver 129.93.6.189 from
/etc/resolv.conf
>> 2010/07/13 12:00:49| Unlinkd pipe opened on FD 12
>> 2010/07/13 12:00:49| Swap maxSize 102400 + 262144 KB, estimated 28041
>> objects
>> 2010/07/13 12:00:49| Target number of buckets: 1402
>> 2010/07/13 12:00:49| Using 8192 Store buckets
>> 2010/07/13 12:00:49| Max Mem size: 262144 KB
>> 2010/07/13 12:00:49| Max Swap size: 102400 KB
>> 2010/07/13 12:00:49| Version 1 of swap file with LFS support
detected...
>> 2010/07/13 12:00:49| Rebuilding storage in
>> /home/skuttal/libecap-0.0.2/squid-ecap-gzip/squid-3.1.1/var/cache
(DIRTY)
>> 2010/07/13 12:00:49| Using Least Load store dir selection
>> 2010/07/13 12:00:49| Set Current Directory to
>> /home/skuttal/libecap-0.0.2/squid-ecap-gzip/squid-3.1.1/var/cache
>> 2010/07/13 12:00:49| Loaded Icons.
>> 2010/07/13 12:00:49| Adaptation support is on
>> 2010/07/13 12:00:49| Warning: configured ecap_service was not loaded:
>> ecap://e-cap.org/ecap/services/sample/passthru
>> 2010/07/13 12:00:49| Warning: configured ecap_service was not loaded:
>> ecap://e-cap.org/ecap/services/sample/passthru
>> 2010/07/13 12:00:49| Ready to serve requests.
>> 2010/07/13 12:00:49| Done reading
>> /home/skuttal/libecap-0.0.2/squid-ecap-gzip/squid-3.1.1/var/cache
swaplog
>> (2253 entries)
>> 2010/07/13 12:00:49| Finished rebuilding storage from disk.
>> 2010/07/13 12:00:49| 2163 Entries scanned
>> 2010/07/13 12:00:49| 0 Invalid entries.
>> 2010/07/13 12:00:49| 0 With invalid flags.
>> 2010/07/13 12:00:49| 2073 Objects loaded.
>> 2010/07/13 12:00:49| 0 Objects expired.
>> 2010/07/13 12:00:49| 90 Objects cancelled.
>> 2010/07/13 12:00:49| 0 Duplicate URLs purged.
>> 2010/07/13 12:00:49| 0 Swapfile clashes avoided.
>> 2010/07/13 12:00:49| Took 0.24 seconds (8704.34 objects/sec).
>> 2010/07/13 12:00:49| Beginning Validation Procedure
>> 2010/07/13 12:00:49| Completed Validation Procedure
>> 2010/07/13 12:00:49| Validated 4169 Entries
>> 2010/07/13 12:00:49| store_swap_size = 19172
>> 2010/07/13 12:00:50| storeLateRelease: released 0 objects
>>
>> It seems like ecap_service is not loaded:
>> ecap://e-cap.org/ecap/services/sample/passthru. how to get over this.
Or
>> is there something else I am missing. Kindly suggest. another thing I
>> haven't loaded any patches.
>
> For the record: Sandeep posted the same question on the eCAP Answers
> site and got help there. So far, the existing eCAP patches unrelated to
> Squid solved the problem but there may be more and Squid-specific fixes
> necessary down the road.
>
> Alex.

It's been a number of months since 0.0.2 was published and AFAICS there
are quite a number of people suffering with the official package due to
some of the long-ago solved bugs.
Is there any timeline for a 0.0.3 release with the known fixes please?

Amos
Received on Thu Jul 15 2010 - 00:21:09 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 15 2010 - 12:00:09 MDT