Varnish stoped working and dies after start OK
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I run varnish whit drupal, on centos. It worked just file, when suddenly it stopped working. On :
service varnish start
I get:
Starting varnish HTTP accelerator: [ OK ]
But when I check status I get :
varnishd dead but pid file exists
The logs are empty. I get no errors, and:
varnishncsa (pid 2205) is running...
I hope someone can help me. I couldn't find anything on this issue.
This is my deaflt.vcl:
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
backend default
.host = "mydomain.com";
.port = "port_num";
.connect_timeout = 3600s;
.first_byte_timeout = 3600s;
.between_bytes_timeout = 3600s;
#
# Below is a commented-out copy of the default VCL logic. If you
# redefine any of these subroutines, the built-in logic will be
# appended to your code.
#
sub vcl_recv has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");
if (req.http.Authorization /*
#
# sub vcl_pipe
# # Note that only the first request to the backend will have
# # X-Forwarded-For set. If you use X-Forwarded-For and want to
# # have it set for all requests, make sure to have:
# # set bereq.http.connection = "close";
# # here. It is not set by default as it might break some broken web
# # applications, like IIS with NTLM authentication.
# return (pipe);
#
#
# sub vcl_pass
# return (pass);
#
#
# sub vcl_hash
# set req.hash += req.url;
# if (req.http.host)
# set req.hash += req.http.host;
# else
# set req.hash += server.ip;
#
# return (hash);
#
#
# sub vcl_hit
# if (!obj.cacheable)
# return (pass);
#
# return (deliver);
#
#
# sub vcl_miss
# return (fetch);
#
#
sub vcl_fetch
if (beresp.ttl > 0s)
/* Remove Expires from backend, it's not long enough */
unset beresp.http.expires;
/* Set the clients TTL on this object */
set beresp.http.cache-control = "max-age=900";
/* Set how long Varnish will keep it */
set beresp.ttl = 1w;
/* marker for vcl_deliver to reset Age: */
set beresp.http.magicmarker = "1";
# vary on the custom header
if (beresp.http.Vary)
set beresp.http.Vary = beresp.http.Vary ", X-ABtesting";
else
set beresp.http.Vary = "X-ABtesting";
if (!beresp.cacheable)
return (pass);
if (beresp.http.Set-Cookie)
return (pass);
return (deliver);
#
sub vcl_deliver
if (resp.http.Vary)
set resp.http.Vary = regsub(resp.http.Vary, "X-ABtesting", "Cookie");
if (resp.http.magicmarker)
/* Remove the magic marker */
unset resp.http.magicmarker;
/* By definition we have a fresh object */
set resp.http.age = "0";
return (deliver);
#
# sub vcl_error
# set obj.http.Content-Type = "text/html; charset=utf-8";
# synthetic "
# <?xml version="1.0" encoding="utf-8"?>
# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
# "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
# <html>
# <head>
# <title>" obj.status " " obj.response "</title>
# </head>
# <body>
# <h1>Error " obj.status " " obj.response "</h1>
# <p>" obj.response "</p>
# <h3>Guru Meditation:</h3>
# <p>XID: " req.xid "</p>
# <hr>
# <p>Varnish cache server</p>
# </body>
# </html>
# ";
# return (deliver);
#
linux centos drupal varnish
add a comment |Â
up vote
0
down vote
favorite
I run varnish whit drupal, on centos. It worked just file, when suddenly it stopped working. On :
service varnish start
I get:
Starting varnish HTTP accelerator: [ OK ]
But when I check status I get :
varnishd dead but pid file exists
The logs are empty. I get no errors, and:
varnishncsa (pid 2205) is running...
I hope someone can help me. I couldn't find anything on this issue.
This is my deaflt.vcl:
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
backend default
.host = "mydomain.com";
.port = "port_num";
.connect_timeout = 3600s;
.first_byte_timeout = 3600s;
.between_bytes_timeout = 3600s;
#
# Below is a commented-out copy of the default VCL logic. If you
# redefine any of these subroutines, the built-in logic will be
# appended to your code.
#
sub vcl_recv has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");
if (req.http.Authorization /*
#
# sub vcl_pipe
# # Note that only the first request to the backend will have
# # X-Forwarded-For set. If you use X-Forwarded-For and want to
# # have it set for all requests, make sure to have:
# # set bereq.http.connection = "close";
# # here. It is not set by default as it might break some broken web
# # applications, like IIS with NTLM authentication.
# return (pipe);
#
#
# sub vcl_pass
# return (pass);
#
#
# sub vcl_hash
# set req.hash += req.url;
# if (req.http.host)
# set req.hash += req.http.host;
# else
# set req.hash += server.ip;
#
# return (hash);
#
#
# sub vcl_hit
# if (!obj.cacheable)
# return (pass);
#
# return (deliver);
#
#
# sub vcl_miss
# return (fetch);
#
#
sub vcl_fetch
if (beresp.ttl > 0s)
/* Remove Expires from backend, it's not long enough */
unset beresp.http.expires;
/* Set the clients TTL on this object */
set beresp.http.cache-control = "max-age=900";
/* Set how long Varnish will keep it */
set beresp.ttl = 1w;
/* marker for vcl_deliver to reset Age: */
set beresp.http.magicmarker = "1";
# vary on the custom header
if (beresp.http.Vary)
set beresp.http.Vary = beresp.http.Vary ", X-ABtesting";
else
set beresp.http.Vary = "X-ABtesting";
if (!beresp.cacheable)
return (pass);
if (beresp.http.Set-Cookie)
return (pass);
return (deliver);
#
sub vcl_deliver
if (resp.http.Vary)
set resp.http.Vary = regsub(resp.http.Vary, "X-ABtesting", "Cookie");
if (resp.http.magicmarker)
/* Remove the magic marker */
unset resp.http.magicmarker;
/* By definition we have a fresh object */
set resp.http.age = "0";
return (deliver);
#
# sub vcl_error
# set obj.http.Content-Type = "text/html; charset=utf-8";
# synthetic "
# <?xml version="1.0" encoding="utf-8"?>
# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
# "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
# <html>
# <head>
# <title>" obj.status " " obj.response "</title>
# </head>
# <body>
# <h1>Error " obj.status " " obj.response "</h1>
# <p>" obj.response "</p>
# <h3>Guru Meditation:</h3>
# <p>XID: " req.xid "</p>
# <hr>
# <p>Varnish cache server</p>
# </body>
# </html>
# ";
# return (deliver);
#
linux centos drupal varnish
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I run varnish whit drupal, on centos. It worked just file, when suddenly it stopped working. On :
service varnish start
I get:
Starting varnish HTTP accelerator: [ OK ]
But when I check status I get :
varnishd dead but pid file exists
The logs are empty. I get no errors, and:
varnishncsa (pid 2205) is running...
I hope someone can help me. I couldn't find anything on this issue.
This is my deaflt.vcl:
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
backend default
.host = "mydomain.com";
.port = "port_num";
.connect_timeout = 3600s;
.first_byte_timeout = 3600s;
.between_bytes_timeout = 3600s;
#
# Below is a commented-out copy of the default VCL logic. If you
# redefine any of these subroutines, the built-in logic will be
# appended to your code.
#
sub vcl_recv has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");
if (req.http.Authorization /*
#
# sub vcl_pipe
# # Note that only the first request to the backend will have
# # X-Forwarded-For set. If you use X-Forwarded-For and want to
# # have it set for all requests, make sure to have:
# # set bereq.http.connection = "close";
# # here. It is not set by default as it might break some broken web
# # applications, like IIS with NTLM authentication.
# return (pipe);
#
#
# sub vcl_pass
# return (pass);
#
#
# sub vcl_hash
# set req.hash += req.url;
# if (req.http.host)
# set req.hash += req.http.host;
# else
# set req.hash += server.ip;
#
# return (hash);
#
#
# sub vcl_hit
# if (!obj.cacheable)
# return (pass);
#
# return (deliver);
#
#
# sub vcl_miss
# return (fetch);
#
#
sub vcl_fetch
if (beresp.ttl > 0s)
/* Remove Expires from backend, it's not long enough */
unset beresp.http.expires;
/* Set the clients TTL on this object */
set beresp.http.cache-control = "max-age=900";
/* Set how long Varnish will keep it */
set beresp.ttl = 1w;
/* marker for vcl_deliver to reset Age: */
set beresp.http.magicmarker = "1";
# vary on the custom header
if (beresp.http.Vary)
set beresp.http.Vary = beresp.http.Vary ", X-ABtesting";
else
set beresp.http.Vary = "X-ABtesting";
if (!beresp.cacheable)
return (pass);
if (beresp.http.Set-Cookie)
return (pass);
return (deliver);
#
sub vcl_deliver
if (resp.http.Vary)
set resp.http.Vary = regsub(resp.http.Vary, "X-ABtesting", "Cookie");
if (resp.http.magicmarker)
/* Remove the magic marker */
unset resp.http.magicmarker;
/* By definition we have a fresh object */
set resp.http.age = "0";
return (deliver);
#
# sub vcl_error
# set obj.http.Content-Type = "text/html; charset=utf-8";
# synthetic "
# <?xml version="1.0" encoding="utf-8"?>
# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
# "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
# <html>
# <head>
# <title>" obj.status " " obj.response "</title>
# </head>
# <body>
# <h1>Error " obj.status " " obj.response "</h1>
# <p>" obj.response "</p>
# <h3>Guru Meditation:</h3>
# <p>XID: " req.xid "</p>
# <hr>
# <p>Varnish cache server</p>
# </body>
# </html>
# ";
# return (deliver);
#
linux centos drupal varnish
I run varnish whit drupal, on centos. It worked just file, when suddenly it stopped working. On :
service varnish start
I get:
Starting varnish HTTP accelerator: [ OK ]
But when I check status I get :
varnishd dead but pid file exists
The logs are empty. I get no errors, and:
varnishncsa (pid 2205) is running...
I hope someone can help me. I couldn't find anything on this issue.
This is my deaflt.vcl:
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
backend default
.host = "mydomain.com";
.port = "port_num";
.connect_timeout = 3600s;
.first_byte_timeout = 3600s;
.between_bytes_timeout = 3600s;
#
# Below is a commented-out copy of the default VCL logic. If you
# redefine any of these subroutines, the built-in logic will be
# appended to your code.
#
sub vcl_recv has_js)=[^;]*", "");
// Remove a ";" prefix, if present.
set req.http.Cookie = regsub(req.http.Cookie, "^;s*", "");
if (req.http.Authorization /*
#
# sub vcl_pipe
# # Note that only the first request to the backend will have
# # X-Forwarded-For set. If you use X-Forwarded-For and want to
# # have it set for all requests, make sure to have:
# # set bereq.http.connection = "close";
# # here. It is not set by default as it might break some broken web
# # applications, like IIS with NTLM authentication.
# return (pipe);
#
#
# sub vcl_pass
# return (pass);
#
#
# sub vcl_hash
# set req.hash += req.url;
# if (req.http.host)
# set req.hash += req.http.host;
# else
# set req.hash += server.ip;
#
# return (hash);
#
#
# sub vcl_hit
# if (!obj.cacheable)
# return (pass);
#
# return (deliver);
#
#
# sub vcl_miss
# return (fetch);
#
#
sub vcl_fetch
if (beresp.ttl > 0s)
/* Remove Expires from backend, it's not long enough */
unset beresp.http.expires;
/* Set the clients TTL on this object */
set beresp.http.cache-control = "max-age=900";
/* Set how long Varnish will keep it */
set beresp.ttl = 1w;
/* marker for vcl_deliver to reset Age: */
set beresp.http.magicmarker = "1";
# vary on the custom header
if (beresp.http.Vary)
set beresp.http.Vary = beresp.http.Vary ", X-ABtesting";
else
set beresp.http.Vary = "X-ABtesting";
if (!beresp.cacheable)
return (pass);
if (beresp.http.Set-Cookie)
return (pass);
return (deliver);
#
sub vcl_deliver
if (resp.http.Vary)
set resp.http.Vary = regsub(resp.http.Vary, "X-ABtesting", "Cookie");
if (resp.http.magicmarker)
/* Remove the magic marker */
unset resp.http.magicmarker;
/* By definition we have a fresh object */
set resp.http.age = "0";
return (deliver);
#
# sub vcl_error
# set obj.http.Content-Type = "text/html; charset=utf-8";
# synthetic "
# <?xml version="1.0" encoding="utf-8"?>
# <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
# "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
# <html>
# <head>
# <title>" obj.status " " obj.response "</title>
# </head>
# <body>
# <h1>Error " obj.status " " obj.response "</h1>
# <p>" obj.response "</p>
# <h3>Guru Meditation:</h3>
# <p>XID: " req.xid "</p>
# <hr>
# <p>Varnish cache server</p>
# </body>
# </html>
# ";
# return (deliver);
#
linux centos drupal varnish
asked Mar 6 at 8:44
matisa
306
306
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f428444%2fvarnish-stoped-working-and-dies-after-start-ok%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password