Navigation

    • Register
    • Login
    • Search
    • Recent
    • Users
    • Groups

    502 Gateway Timeout on Varnish

    CWP - Panel
    2
    7
    52
    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.
    • will b
      will b last edited by

      Hi there,

      I keep on experiencing random 502 gateway timeout when enabling varnish on my domains Sandeep. I tried tweaking everything but I really can't seem to find what's causing this which forces me to just disable varnish completely...

      Error log:
      2020/09/09 00:20:02 [error] 30318#30318: 1742 connect() failed (111: Connection refused) while connecting to upstream, client: 54...219, server: domain.tld, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "http://...*:82/wp-admin/admin-ajax.php", host: "domain.tld", referrer:

      1 Reply Last reply Reply Quote 0
      • sandeep
        sandeep last edited by

        is apache was running that time?

        1 Reply Last reply Reply Quote 0
        • will b
          will b last edited by

          Hi Sandeep! Yes it is running NGINX+Apache+Varnish and Apache is running fine. I've read that it could be caused by php-fpm but I tried using php-cgi but the same thing happens

          I also tried changing from mallaloc to file to test if memory is running out but still happens. This happens on my cwp on centos 7

          1 Reply Last reply Reply Quote 0
          • sandeep
            sandeep last edited by

            try this
            https://www.mysterydata.com/how-to-increase-apache-timeout-in-cwp-control-webpanel/

            1 Reply Last reply Reply Quote 1
            • will b
              will b last edited by

              That seems to got it fixed! As usual, you're the best sandeep!

              Also, I saw your referral code to servercheap, do you recommend servercheap for servers that gets around 20,000 visitors or more per month? I heard that servercheap oversells their server and suspends accounts even if they use what they paid for.

              Best regards,

              Wilfred B

              sandeep 1 Reply Last reply Reply Quote 0
              • sandeep
                sandeep @will b last edited by

                @will-b they dont suspend untill tos is maintained, and they don't oversell server, if you found any let us know here, I'll let him know.
                They suspend server before that they notices you, when your server is :

                • Infected

                • Ddos

                • Spaming

                • Illegal things

                • High load cpu, breaking cpu fair usage.

                Regarding 20000 k visitors yes they can handle.

                will b 1 Reply Last reply Reply Quote 1
                • will b
                  will b @sandeep last edited by

                  @sandeep Okay thank you brother! Will try their service once I use up all my credits to my current cloud host

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post

                  Recent Topics

                  • How to add a new disk?

                  • Module IPv6 CWP

                  • PHP 8.0.0 testing - CWP

                  • Serious error with quotas

                  • Centos 8 Stream CWP - Delayed Update and CWP repositories are added

                  • Update NGINX Stable v1.16.1 to latest NGINX Stable v1.18.0 for CWP & CWP PRO!

                  • Phpmyadmin New Verison with autologin - CWP

                  • M

                    Install php 7.4 on cwp

                  URLs HOME | Blog | Support Portal