Author Topic: Magento 1.9 & Varnish:  (Read 6167 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Magento 1.9 & Varnish:
« on: August 25, 2017, 07:03:02 AM »
Hi, I try to configure varnish on default CWP. I use latest turpentine from Magento Connect and Varnish 5.

My Error in Magento admin after configuration save:
Code: [Select]
Error determining Varnish version: Got unexpected response code from Varnish: 500
Failed to apply the VCL to 127.0.0.1:6082: Failed to load configurator
Error determining Varnish version: Got unexpected response code from Varnish: 500
Failed to load configurator

My  /etc/varnish/varnish.params:
Code: [Select]
# Varnish environment configuration description. This was derived from
# the old style sysconfig/defaults settings

# Set this to 1 to make systemd reload try to switch VCL without restart.
RELOAD_VCL=1

# Set WARMUP_TIME to force a delay in reload-vcl between vcl.load and vcl.use
# This is useful when backend probe definitions need some time before declaring
# configured backends healthy, to avoid routing traffic to a non-healthy backend.
#WARMUP_TIME=0

# Main configuration file. You probably want to change it.
VARNISH_VCL_CONF=/etc/varnish/default.vcl

# Default address and port to bind to. Blank address means all IPv4
# and IPv6 interfaces, otherwise specify a host name, an IPv4 dotted
# quad, or an IPv6 address in brackets.
# VARNISH_LISTEN_ADDRESS=192.168.1.5
VARNISH_LISTEN_PORT=80

# Admin interface listen address and port
VARNISH_ADMIN_LISTEN_ADDRESS=127.0.0.1
VARNISH_ADMIN_LISTEN_PORT=6082

# Shared secret file for admin interface
VARNISH_SECRET_FILE=/etc/varnish/secret

# Backend storage specification, see Storage Types in the varnishd(5)
# man page for details.
VARNISH_STORAGE="malloc,256M"

# User and group for the varnishd worker processes
VARNISH_USER=varnish
VARNISH_GROUP=varnish

# Other options, see the man page varnishd(1)
DAEMON_OPTS="-p thread_pool_min=5 -p thread_pool_max=500 -p thread_pool_timeout=300 -p feature=+esi_disable_xml_check -p cli_buffer=16384"

My netstat:
Code: [Select]
[root@host bin]# netstat -tulpn | grep httpd
tcp6       0      0 :::8181                 :::*                    LISTEN      1909/httpd         
tcp6       0      0 :::443                  :::*                    LISTEN      1909/httpd         
[root@host bin]# netstat -tulpn | grep varnish
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      738/varnishd       
tcp        0      0 127.0.0.1:6082          0.0.0.0:*               LISTEN      738/varnishd       
tcp6       0      0 :::80                   :::*                    LISTEN      738/varnishd       

My Turpentine Configuration:



Offline
*
Re: Magento 1.9 & Varnish:
« Reply #1 on: August 25, 2017, 09:19:37 PM »
by reading this
Code: [Select]
tcp6       0      0 :::8181                 :::*                    LISTEN      1909/httpd   
I would say that your backend port is 8181 and not 8080.

Also you would need to make your configuration files in varnish and make sure its correct, try googling your error, example:
https://github.com/nexcess/magento-turpentine/issues/278
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.