Varnish stoped working and dies after start OK

The name of the pictureThe name of the pictureThe name of the pictureClash 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);
#






share|improve this question
























    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);
    #






    share|improve this question






















      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);
      #






      share|improve this question












      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);
      #








      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 6 at 8:44









      matisa

      306




      306

























          active

          oldest

          votes











          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );








           

          draft saved


          draft discarded


















          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



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes










           

          draft saved


          draft discarded


























           


          draft saved


          draft discarded














          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













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay