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

    check_reload_status Could not connect to /var/run/php-fpm.socket

    Scheduled Pinned Locked Moved General pfSense Questions
    9 Posts 2 Posters 3.1k 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.
    • A
      ashima LAYER 8
      last edited by

      Hello Everyone,

        Pfsense Version : 2.4.5
      
        Packages installed : Freeradius, Sudo, Cron OpenVPNclient,  MailReport
      
      Issue faced :  My log is filled with 
      
      check_reload_status  Could not connect to /var/run/php-fpm.socket
      

      Users are unable to login from LAN. Get the following error :

        Gateway 502 not found nginx  
      

      The box is unreponsive even via VPN.
      The only way to solve the issue is to reboot the device.
      I have gone through previous threads but nothing seems to work. It is happening every alternate day and has become a pain in the neck. The issue has appeared after an upgrade to 2.4.5.

      Any pointer,
      Regards,
      Ashima

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @ashima
        last edited by

        @ashima said in check_reload_status Could not connect to /var/run/php-fpm.socket:

        even via VPN

        If noting works, the console is your last resort.
        Most things work, the GUI might help.
        The very last thing to 'admin' : the VPN access (the slightest error will throw you out).

        Btw :

        check_reload_status  Could not connect to /var/run/php-fpm.socket
        

        PHP says what in the logs ? If it can't start it will complain.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • A
          ashima LAYER 8
          last edited by

          @Gertjan , Thank you for responding.

          I am not near console. I access the device remotely using vpn.

          I am not very sure where php logs are created. Is it in
          /var/log/nginx/error.log

          I have attached a copy of this log in case that's the one.
          error.txt

          Looking at the log, I guess this error started appearing on
          2020/07/19 22:39:10.

          I think we started facing the issue sometime during that time. ( I am not very sure.)

          Please help.

          GertjanG 1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @ashima
            last edited by

            @ashima said in check_reload_status Could not connect to /var/run/php-fpm.socket:

            I am not near console. I access the device remotely using vpn.

            Intermediate solution : activate SSH and you have SSH access (install Putyy if you have windows, MAC have a build in SSH client).

            @ashima said in check_reload_status Could not connect to /var/run/php-fpm.socket:

            /var/log/nginx/error.log

            Noop, these are only the errors from nginx.

            clog /var/log/system.log to see the principal log file, the one PHP is using.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • A
              ashima LAYER 8
              last edited by

              @Gertjan SSH done. Thanks for that tip.

              Also attaching /var/log/system.log

              error3.txt

              1 Reply Last reply Reply Quote 0
              • GertjanG
                Gertjan
                last edited by

                It's not PHP that complains in that log file : it's the entire pfSense that reboots without notice - several times.

                Goto Youtube => Netgate channel and do what's being said in the "fsck" video. Just to be sure the file system is ok.
                Example : the last time my pfSense rebooted by itself, me not understanding why, was in .... 2017 - I guess.

                Hardware error ?
                Resource problem ? Check memory motoring, number of processes, processor utilisation, etc.
                Power issues ?

                No "help me" PM's please. Use the forum, the community will thank you.
                Edit : and where are the logs ??

                1 Reply Last reply Reply Quote 0
                • A
                  ashima LAYER 8
                  last edited by

                  @Gertjan Well when I lose the remote access and the users complain about Gateway 502 error. I ask some local person to hard reboot the firewall. That is why those entries. This has been happening every alternate day.

                  Now that ssh is enable I'll try to restart php-fpm n check the status.
                  Also I'll watch those youtube videos and look for hardware issues.

                  1 Reply Last reply Reply Quote 0
                  • A
                    ashima LAYER 8
                    last edited by

                    @Gertjan Also forgot to mention I am using zfs - mirror.

                    UPS with good backup is installed at location.

                    I'll anyway check for other hardware issues.

                    1 Reply Last reply Reply Quote 0
                    • A
                      ashima LAYER 8
                      last edited by

                      FeedBack :

                      There is no hardware failure related issue reported in System logs.
                      I am monitoring the system remotely.
                      CPU usage showing 7%-8%.
                      Memory usage is 27% (out of 4GB RAM).
                      Approx 50-60 users are connected.

                      Waiting for the problem to reoccur.

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