Join the community today
Become a Member

PHP-FPM 502 gateway error on multiple servers this am.

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Matt, Mar 9, 2017.

  1. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    Anyone else had issues with php-fpm this morning? I've had 502 errors multiple servers running both Centminmod and cPanel. All running php-fpm and on both 5.6 and 7.

    Error Log showed multiple errors where fpm was exiting with error code 27.

    R
    All started around the same time as well (5.30 UTC).
     
  2. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    Code:
    WARNING: [pool www] child 5850 exited with code 127 after 0.189647 seconds from start [09-Mar-2017 05:31:26] WARNING: [pool www] child 5852 exited with code 127 after 0.787524 seconds from start [09-Mar-2017 05:31:27] WARNING: [pool www] child 5856 exited with code 127 after 1.207739 seconds from start [09-Mar-2017 05:31:28] WARNING: [pool www] child 5858 exited with code 127 after 1.161426 seconds from start
     
  3. eva2000

    eva2000 Administrator Staff Member

    30,142
    6,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,131
    Local Time:
    3:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    what specific php versions ? dedicated or vps servers (xen, kvm or openvz) ?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,142
    6,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,131
    Local Time:
    3:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    check yum history list does this coincide with an yum updates for php dependency packages ? i.e. imagemagick update for imagick php extension ? if it is try centmin.sh menu option 15 in Centmin Mod 123.09beta01 beta to update imagick php extension and imagemagick package.
     
  5. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    5.6.30 and 7.0.16

    Dedicated and VPS
     
  6. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    Not just Centminmod servers though, happened on 2 different cPanel servers.
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,142
    6,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,131
    Local Time:
    3:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    anything in yum history list around those date/times ? you have yum-cron setup ?
     
  8. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    Only thing in there on my own server

    Code:
    Mar 09 01:10:53 Updated: nspr.x86_64 4.13.1-1.0.el7_3
    Mar 09 01:10:53 Updated: nss-util.x86_64 3.28.2-1.1.el7_3
    Mar 09 01:10:53 Updated: nss.x86_64 3.28.2-1.6.el7_3
    Mar 09 01:10:53 Updated: nss-sysinit.x86_64 3.28.2-1.6.el7_3
    Mar 09 01:10:53 Updated: nspr-devel.x86_64 4.13.1-1.0.el7_3
    Mar 09 01:10:53 Updated: nss-util-devel.x86_64 3.28.2-1.1.el7_3
    Mar 09 01:10:53 Updated: nss-devel.x86_64 3.28.2-1.6.el7_3
    Mar 09 01:10:53 Updated: nss-tools.x86_64 3.28.2-1.6.el7_3
    Mar 09 01:10:54 Updated: tzdata.noarch 2017a-1.el7
    Mar 09 01:10:54 Updated: tzdata-java.noarch 2017a-1.el7
    
     
  9. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    cPanel server
    Code:
    Mar 09 04:16:02 Updated: nspr-4.13.1-1.0.el7_3.x86_64
    Mar 09 04:16:02 Updated: nss-util-3.28.2-1.1.el7_3.x86_64
    Mar 09 04:16:02 Updated: nss-3.28.2-1.6.el7_3.x86_64
    Mar 09 04:16:02 Updated: nss-sysinit-3.28.2-1.6.el7_3.x86_64
    Mar 09 04:16:03 Updated: nss-tools-3.28.2-1.6.el7_3.x86_64
    Mar 09 04:16:03 Updated: tzdata-2017a-1.el7.noarch
    
     
  10. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    Dedicated server

    Code:
    Mar 09 05:30:19 Updated: nspr-4.13.1-1.0.el7_3.x86_64
    Mar 09 05:30:19 Updated: nss-util-3.28.2-1.1.el7_3.x86_64
    Mar 09 05:30:19 Updated: nss-3.28.2-1.6.el7_3.x86_64
    Mar 09 05:30:19 Updated: nss-sysinit-3.28.2-1.6.el7_3.x86_64
    Mar 09 05:30:20 Updated: nss-tools-3.28.2-1.6.el7_3.x86_64
    Mar 09 05:30:20 Updated: tzdata-2017a-1.el7.noarch
    Mar 09 05:30:20 Updated: tzdata-java-2017a-1.el7.noarch
    
     
  11. Matt

    Matt Moderator Staff Member

    691
    319
    63
    May 25, 2014
    Sheffield, UK
    Ratings:
    +444
    Local Time:
    6:46 AM
    1.7.1
    MariaDB 10
    A restart of php-fpm has fixed the issue on all the servers, so I'm a bit perplexed as to what has actually caused this.
     
  12. eva2000

    eva2000 Administrator Staff Member

    30,142
    6,781
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,131
    Local Time:
    3:46 PM
    Nginx 1.13.x
    MariaDB 5.5
    could possibly be related to yum nss related updates
    Code (Text):
     ldd $(which php) | grep nss
            libnss3.so => /lib64/libnss3.so (0x00007fbcf57ee000)
            libnssutil3.so => /lib64/libnssutil3.so (0x00007fbcf55c2000)
    

    Code (Text):
    yum provides /lib64/libnss3.so -q
    nss-3.21.3-2.el7_3.x86_64 : Network Security Services
    Repo        : @cr
    Matched from:
    Filename    : /lib64/libnss3.so
    
    yum provides /lib64/libnssutil3.so -q
    nss-util-3.21.3-1.1.el7_3.x86_64 : Network Security Services Utilities Library
    Repo        : @cr
    Matched from:
    Filename    : /lib64/libnssutil3.so
    
     
    • Informative Informative x 2