Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Varnish stops working after few days

    Scheduled Pinned Locked Moved pfSense Packages
    23 Posts 3 Posters 7.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • marcellocM
      marcelloc
      last edited by

      canefield,

      something is messing up config:

      Message from VCC-compiler: Reference to unknown backend 'CANLB' at ('input' Line 55 Pos 28) .backend = CANLB; –-------------------------###########-
      In director specification starting at: ('input' Line 53 Pos 1) director CA client { ########------------ Running VCC-compiler failed, exit 1 VCL compilation failed'"

      Treinamentos de Elite: http://sys-squad.com

      Help a community developer! ;D

      1 Reply Last reply Reply Quote 0
      • X
        xudus
        last edited by

        marcelloc, is there any particular command that I could run that would help with finding the root cause?

        TIA,
        Dave

        1 Reply Last reply Reply Quote 0
        • marcellocM
          marcelloc
          last edited by

          xudus,

          try to run the startup command on console/ssh

          /usr/local/etc/rc.d/varnish.sh restart

          Treinamentos de Elite: http://sys-squad.com

          Help a community developer! ;D

          1 Reply Last reply Reply Quote 0
          • X
            xudus
            last edited by

            This is what I'm getting:

            
            kern.ipc.nmbclusters: 65536
            sysctl: kern.ipc.nmbclusters: Invalid argument
            kern.ipc.somaxconn: 16384 -> 16384
            kern.maxfiles: 131072 -> 131072
            kern.maxfilesperproc: 104856 -> 104856
            kern.threads.max_threads_per_proc: 4096 -> 4096
            storage_malloc: max size 128 MB.
            Using old SHMFILE
            
            
            1 Reply Last reply Reply Quote 0
            • marcellocM
              marcelloc
              last edited by

              @xudus:

              This is what I'm getting:

              There is no varnish fatal errors on this log, so it should be runinng.

              Treinamentos de Elite: http://sys-squad.com

              Help a community developer! ;D

              1 Reply Last reply Reply Quote 0
              • X
                xudus
                last edited by

                Sorry, it is running as I just restarted pfs. I'll post the output when it'll malfunction next time.

                1 Reply Last reply Reply Quote 0
                • X
                  xudus
                  last edited by

                  marcelloc, it did it again.

                  The output from /usr/local/etc/rc.d/varnish.sh restart is same as before (no errors). Is there any other place that I could poke to see what is braking varnish?

                  1 Reply Last reply Reply Quote 0
                  • marcellocM
                    marcelloc
                    last edited by

                    xudus,

                    check with netstat -an if varnish port are still up
                    check with ps ax | grep -i varnish if varnish is still running.

                    You can also create a cron job to restart varnish after two days for example to prevent this random error.

                    att,
                    Marcello Coutinho

                    Treinamentos de Elite: http://sys-squad.com

                    Help a community developer! ;D

                    1 Reply Last reply Reply Quote 0
                    • X
                      xudus
                      last edited by

                      Marcello,

                      Varnish is running and port 80 listening (*.80). Restarting varnish does not help. Restarting pfs does.

                      1 Reply Last reply Reply Quote 0
                      • X
                        xudus
                        last edited by

                        I disabled squidGuard (1.4_2 pkg v.1.9.1) and everything is working so far for the last 14 days. I'll give it another week or two before re-enabling squidGuard again.

                        1 Reply Last reply Reply Quote 0
                        • X
                          xudus
                          last edited by

                          After 20 days varnish goes belly up. Will be removing squid and squidGuard to see what difference it makes. There is no love between those three.

                          BTW does anybody have pfBlocker, pfflowd, squid, squidGuard and Varnish installed and stable on pfs 2.0.1?

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.