Closed (outdated)
Project:
Varnish
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2011 at 10:51 UTC
Updated:
9 May 2018 at 23:52 UTC
Jump to comment: Most recent
Comments
Comment #1
fabsor commentedHi!
The Varnish terminal is not on the same port as the varnish process. You specify the port for the terminal should start on when you start the varnish daemon, with the -T flag. The default is usually something like this:
-T localhost:6082
In debian, you control these things in /etc/default/varnish. If you are on another distro, have a look at the init script for varnish, and try to figure out what port you are running the terminal on, it could be in /etc/init.d or /etc/rc.d, it all depends on the distribution.
Also note that you need to specify this flag when starting Varnish, I don't think the terminal will start otherwise.
Comment #2
ghmercado commentedthank you so much i found mine at /etc/sysconfig/varnish, and my port was 2000.
Comment #3
fabsor commentedAlright! Setting this to fixed then!
Comment #5
ghmercado commentedHi it's me again.
Recent changes to my server have caused the varnish module to again output a 'The Varnish control terminal is not responding at 127.0.0.1 on port 2000' status.
I've tried '127.0.0.1:80', '127.0.0.1:8080', '127.0.0.1:6080' and '127.0.0.1:6081' to no avail.
here are the contents of my /etc/sysconfig/varnish
i tried placing '/etc/varnish/secret' in the Varnish Control Key as well, no go.
Please can someone help? I am not very adept at these things. Thank you very much in advance.
Comment #6
jordanmagnuson commentedI'm having the same issue in the 7.x version ("The Varnish control terminal is not responding at 127.0.0.1 on port 6082").
Varnish 2.1.x, control key entered on admin page to no effect.
My /etc/default/varnish file looks like this:
PS: Updating the version of this issue to 7.x dev, as my understanding is that issues are always supposed to correspond with the highest version of a module at which they are an issue--but if I'm wrong please move the version back. Also changing the port number to the default, since that would be the expected working scenario, and it's failing for both of us.
Comment #7
jordanmagnuson commentedTried '127.0.0.1' instead of 'localhost' in my varnish file, but didn't seem to make a difference.
Comment #8
jordanmagnuson commentedSorry, not trying to spam! This will be my last post for the day. Just wanted to say that I tried a couple other port numbers in case of weird fire-walling, but no luck with that. Also, in case it's helpful, here's the result of 'dpkg -s varnish' on my system:
Comment #9
jordanmagnuson commentedSorry, forgot to re-open this. Argh... I probably should have just posted a new issue, right? Anyway, sorry for all the fumbling :(
Comment #10
Cristian.Andrei commentedCheck for your varnish secret key (mine is at /etc/varnish/secret). Had the same problem as you and all worked after I placed the varnish secret key in the designated field in the admin UI.
Comment #12
stred commentedthanks control key was the key ;)
Comment #13
geekgirlweb commented(Opps, ignore, closed wrong issue)
Comment #14
geekgirlweb commentedComment #15
blogers commentedI hace the same problem but tha key dont work for me
Comment #16
felgharb commentedHello,
I had this pb but by entering secret key and setting to 127.0.0.1:6082 has fixed and the varnish is running
Comment #17
eule commentedhello, i have this problem with pressflow 2.8 and varnish 3.x
i try some but nothing is helping!
status says Varnish status Varnish running. Observe more detailed statistics here.
but no stats because of The Varnish control terminal is not responding at 127.0.0.1 on port 6082
Comment #18
spineless commentedI had to do the following to get varnish to work. I used a set on instructions provided by Andrew Dunkle. Here is a link:
http://andrewdunkle.com/how-install-varnish-drupal-7
Ofcourse the default.vcl code he provides has a bug in it so I had to fix that....
This is what I did.
1. I did not change the Apache2 setting. (see link above). I just made Varnish look at port 591.
2. I opened port 591 in UFW
ufw allow 591
3. I modified the default.vcl file.
Note: I am using Localhost here instead of 127.0.0.1
4. I updated the setting.php file to what Andrew mentioned.
5. On the Drupal website. Go to /admin/config/development/varnish
Then enter the following
Flush page cache on Cron?: Disabled (Drupal should not be controlling cron on anyway.)
Varnish Version: 3.x
Varnish Control Terminal: localhost:6082
Varnish Control Key: [ Enter the value of the secret key from the secret file located at /etc/varnish]
Varnish connection timeout: 100
Varnish Cache Clearing: Drupal Default
Varnish ban type: Normal
Save the configuration and it should return a "Varnish running" statement.
Comment #19
wOOge commentedSolution in #10 worked for me: Using the secret key inside the
/etc/varnish/secretfile on the module config page fixed it for me.Comment #20
click2tman commentedI had the same problem but solution in #10 worked for me: I used the secret key inside the the file /etc/varnish/secret file on the module config page at admin/config/development/varnish to fix it.
Comment #21
bdupls commentedMaybe a silly question to some but how do I edit/open the secret file to read the key, permissions issue?
Comment #22
john_b commentedLog in to server from command line. Issue command
cat /etc/varnish/secret
Comment #23
socialnicheguru commentedNumber 10, 22 are right
Comment #24
misc commentedComment #25
prakashsingh commented#18 worked for me on Ubuntu 14.x
I had to make the said changes in settings.php as mentioned.. above.
Thanks
Comment #26
mrcelli commentedSolution in #10 worked for me too on RHEL.
type the following:
more /etc/varnish/secret
then copy paste the secret key into the Varnish Control Key field of the UI.
Comment #27
francescosciamanna commentedTo whom may running this problem, you need to take in account that the Varnish Control Key may change over the time, so if you are running into this error over the time, you need to check if the Varnish Control Key changed recently in your /etc/varnish/secret, and compare its value if is the same set to your Varnish Control Key, in your Drupal Varnish module settings.