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

0 Members and 1 Guest are viewing this topic.

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 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.

# 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.

# Main configuration file. You probably want to change it.

# 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.

# Admin interface listen address and port

# Shared secret file for admin interface

# Backend storage specification, see Storage Types in the varnishd(5)
# man page for details.

# User and group for the varnishd worker processes

# 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    *               LISTEN      738/varnishd       
tcp        0      0*               LISTEN      738/varnishd       
tcp6       0      0 :::80                   :::*                    LISTEN      738/varnishd       

My Turpentine Configuration:

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:
VPS & Dedicated server provider with included FREE Managed support for CWP.

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