nand2 / libvmod-throttle

Varnish: Reject or delay requests after given tresholds are reached. (Think API rate limit, or per-ip MISS rate limit)
Other
100 stars 21 forks source link

Install with varnish 3.0.7-1 #16

Open papiveron opened 8 years ago

papiveron commented 8 years ago

Hi,

I have varnish 3.0.7-1 already installed on my server.

In order to compile and install libvmod-throttle, I have to download varsnish source, but I have trouble when trying to get the source of the installed version.

I the varhnih source to run this command :

./configure VARNISHSRC=DIR [VMODDIR=DIR]

This is what I get when trying to download the sources

[admin@preprod-webfront-10-3-43-221]~ ❯❯❯ apt-cache policy varnish  
varnish:
  Installed: 3.0.7-1~wheezy
  Candidate: 3.0.7-1~wheezy
  Version table:
 *** 3.0.7-1~wheezy 0
        500 http://repo.varnish-cache.org/debian/ wheezy/varnish-3.0 amd64 Packages
        100 /var/lib/dpkg/status
     3.0.6-1~wheezy 0
        500 http://repo.varnish-cache.org/debian/ wheezy/varnish-3.0 amd64 Packages
     3.0.5-1~wheezy 0
        500 http://repo.varnish-cache.org/debian/ wheezy/varnish-3.0 amd64 Packages
     3.0.4-1~wheezy 0
        500 http://repo.varnish-cache.org/debian/ wheezy/varnish-3.0 amd64 Packages
     3.0.3-1~wheezy 0
        500 http://repo.varnish-cache.org/debian/ wheezy/varnish-3.0 amd64 Packages
     3.0.2-2+deb7u2 0
        500 http://cloudfront.debian.net/debian/ wheezy/main amd64 Packages
        500 http://security.debian.org/ wheezy/updates/main amd64 Packages
        500 ftp://ftp.debian.org/debian/ wheezy/main amd64 Packages
[admin@preprod-webfront-10-3-43-221]~ ❯❯❯ 
[admin@preprod-webfront-10-3-43-221]~ ❯❯❯ sudo sudo apt-get source -t wheezy varnish
sudo: unable to resolve host ec2-preprod-webfront-lesinrocks-preprod-webfront-10-3-43-221
sudo: unable to resolve host ec2-preprod-webfront-lesinrocks-preprod-webfront-10-3-43-221
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Ignore unavailable version '3.0.7-1' of package 'varnish'
E: Unable to find a source package for varnish
[admin@preprod-webfront-10-3-43-221]~ ❯❯❯ 

I even tried with apt-src, but it didn't work. I went to the varnish debian repo but didn't find this version of varnish. And I can't find the way to get sources on google.

Do someone have ever got this situation?

How can I get to fix it please?

Regards.