Want more timely Centmin Mod News Updates?
Become a Member

PHP-FPM Can not upgrade to php 7.4.3

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Sunka, Feb 19, 2020.

  1. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    4:37 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ?
    Code (Text):
    # cat /etc/centminmod/custom_config.inc
    NGINX_LIBBROTLI=y # Brotly extension
    NGXDYNAMIC_BROTLI=y # Brotly dynamic module extension
    NGINX_BROTLIDEP_UPDATE='y' # use the latest tagged version of Google Brotli - http://bit.ly/2S9y3tI
    PHP_MEMCACHE=n # memcache PHP extension
    PHP_MEMCACHED=n # memcached PHP extension
    PHP_PGO='y' # PGO Let It Go - Profile Guided Optimizations for PHP 7
    PHPPGO_INDEXPATH='/home/nginx/domains/pijanitvor.com/public/index.php' # path for PGO training
    AUDITD_ENABLE='y' # Auditd skripta
    RCLONE_ENABLE='y' # Rclone skripta
    NGINX_DEVTOOLSETGCC='y' # umjesto clang ide gcc kompilacija kod nginx
    DEVTOOLSETEIGHT='y' # ide 8.x verzija gcc kompilacije umjesto defaultne 5.x ili 6.x ili 7.x
    #CRYPTO_DEVTOOLSETGCC='y' # newer Intel GCC
    #NGINX_HPACK='y' # enabling HPACK for Nginx
    NGINX_DYNAMICTLS='y' # add Nginx Dynamic TLS Cloudflare Patch - http://bit.ly/2EYzhk7
    NGINXPATCH='y' # add Nginx Dynamic TLS Cloudflare Patch - http://bit.ly/2EYzhk7
    NGINX_GEOIPTWOLITE='y' # GeoIP2 Lite nginx module
    NGXDYNAMIC_GEOIPTWOLITE='y' # GeoIP2 Lite nginx module
    ENABLE_MARIADBTENTHREEUPGRADE='y' # enabling upgrade MariaDB from 10.2.x to 10.3.x
    MARCH_TARGETNATIVE='n' # potrebno da ne zblesira nginx kod reboota servera - http://bit.ly/2SlX3hd
    #MARCH_TARGETNATIVE_ALWAYS='y' #za sada ovo gore disableano a ovo omoguceno - http://bit.ly/2VODBHf
    PHP_ARGON='y' # potrebno za bolji hash algoritam passworda na xenforu
    PHP_BROTLI='y' # brotli php extension https://github.com/kjdev/php-ext-brotli
    PHP_LZFOUR='y' # lz4 php extension https://github.com/kjdev/php-ext-lz4
    PHP_LZF='y' # lzf php extension https://github.com/php/pecl-file_formats-lzf php-ext-lzf
    PHP_ZSTD='y' # zstd php extension https://github.com/kjdev/php-ext-zstd
    #AUTODETECPHP_OVERRIDE='y' # recompile php exensions on minor php (aka 7.3.x) upgrade
    MM_LICENSE_KEY='8vwpqCLzTMjBFYav'
    

    [/LIST]


    Updated centmin first, then trying to update php from 7.4.2 to 7.4.3 leads to error during upgrade.
    @any thoughts @eva2000 or anybody else

    Upgrade log - https://pastebin.com/1zvLskKN

    Second time upgrade log - https://pastebin.com/KxRfPZb0

     
  2. pamamolf

    pamamolf Premium Member Premium Member

    3,950
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    5:37 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    I can see this:

    Code:
    configure: WARNING: unrecognized options: --with-mcrypt, --with-libzip, --with-mysql, --enable-gd-native-ttf, --with-png-dir, --with-t1lib, --with-mysql
    and:

    Code:
    Preprocessed source stored into /tmp/cc81eHN7.out file, please attach this to your bugreport.
    make[1]: *** [ext/date/lib/astro.lo] Error 1
    make[1]: *** Waiting for unfinished jobs....
    Preprocessed source stored into /tmp/ccippCZd.out file, please attach this to your bugreport.
    make[1]: *** [ext/date/php_date.lo] Error 1
    make[1]: Leaving directory `/svr-setup/php-7.4.3/fpm-build'
    make: *** [prof-use] Error 2
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,950
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    5:37 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Maybe someone also need to report this:

    Code:
    /svr-setup/php-7.4.3/ext/date/lib/astro.c:76:2: internal compiler error: Illegal instruction
      return (x - 360.0 * floor(x * INV360));
      ^~~~~~
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
    /svr-setup/php-7.4.3/ext/date/php_date.c: In function ‘date_object_get_properties_interval’:
    /svr-setup/php-7.4.3/ext/date/php_date.c:2515:2: internal compiler error: Illegal instruction
      ZVAL_DOUBLE(&zv, (double)intervalobj->diff->us / 1000000.0);
      ^~~~~~~~~~~
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <http://bugzilla.redhat.com/bugzilla> for instructions.
     
  4. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    4:37 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Strange mix on my server, as usually.
    Solved with rebooting server, than update php.

    I always have problem after shutdown/restart server because of "MARCH_TARGETNATIVE" setting in my custom confing.
    Sometimes all mixed up if setting is "Y" after shutdown/restart server, and sometimes if option is set "N".
    Also I can not stop nor restart mariadb, and finished with kill -9 process and after that, for now, seems that nginx, php and mariadb working ok.
     
  5. rdan

    rdan Well-Known Member

    5,104
    1,264
    113
    May 25, 2014
    Ratings:
    +1,932
    Local Time:
    11:37 PM
    Mainline
    10.2
    Strange as I updated my 2 servers fine on PHP 7.4.3.
    I got this problem also on single server.
    Can't stop or restart.
     
  6. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    4:37 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Use kill -9 pid
    pid - number of mysqld process
    then start mariadb and then reboot server
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    3,950
    402
    83
    May 31, 2014
    Ratings:
    +782
    Local Time:
    5:37 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Any error messages when you can't restart MariaDB?

    On a big database i had the same problem long time ago and now i do stop and then start as usually that works...

    When i was trying to do the restart it was like a timeout problem and was not working....

    I think it is related to the flush of data before the restart that may are a lot and needs a lot of time....

    On small databases i never had any issues...

    For php and Nginx also never had any issues....
     
  8. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    could be with specific cpu model what is output for
    Code (Text):
    lscpu


    are all of you using PGO enabled PHP-FPM builds ? try with PHP_PGO='n' could be something broke depending on cpu model
    Code (Text):
    PHP_PGO='y'
    

    I have no problems updating to PHP 7.4.3
     
  9. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    that can corrupt mysql data and cause future mariadb mysql restart issues if you have done it frequently depending on innodb auto recovery process if it's triggered on restart
     
  10. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Also doesn't downgrading to PHP 7.4.2 work from 7.4.3 ?
     
  11. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    @Sunka you had similar problem with my outlined solution at https://community.centminmod.com/threads/php-7-3-3-released.16822/#post-71467 and https://community.centminmod.com/threads/php-7-3-3-released.16822/#post-71482 and https://community.centminmod.com/threads/php-7-3-3-released.16822/#post-71483 due to your specific cpu model on your Upcloud KVM VPS. Long term probably easier to migrate to a newly spun up Upcloud KVM VPS with the new Intel Xeon Scalable Gold based cpus instead of your old Intel Xeon Haswell based E5v3 cpu.
     
  12. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    another possibility is i see there was a devtoolset-8-binutils yum package update so might want to do a yum update before re-running centmin.sh menu option 5
    Code (Text):
    yum history list devtoolset-8-binutils
    Loaded plugins: fastestmirror, priorities, versionlock
    ID     | Command line             | Date and time    | Action(s)      | Altered
    -------------------------------------------------------------------------------
       105 | update --disableplugin=p | 2020-02-19 05:22 | E, I, U        |   57   
        52 | -y -q install devtoolset | 2019-07-12 19:09 | Install        |   13   
    history list
    
     
  13. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
  14. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    4:37 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    So, I have to create new "server" on upcload and install centmin and configure all like it is on old server? But how to know that cpus wont be the same?

    Here it is
     
  15. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    check cpu model via
    Code (Text):
    lscpu
     
  16. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    4:37 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I have this:
    Code (Text):
    # lscpu
    Architecture:          x86_64
    CPU op-mode(s):        32-bit, 64-bit
    Byte Order:            Little Endian
    CPU(s):                4
    On-line CPU(s) list:   0-3
    Thread(s) per core:    1
    Core(s) per socket:    1
    Socket(s):             4
    NUMA node(s):          1
    Vendor ID:             GenuineIntel
    CPU family:            6
    Model:                 85
    Model name:            Intel(R) Xeon(R) Gold 6136 CPU @ 3.00GHz
    Stepping:              4
    CPU MHz:               2992.968
    BogoMIPS:              5985.93
    Hypervisor vendor:     KVM
    Virtualization type:   full
    L1d cache:             32K
    L1i cache:             32K
    L2 cache:              4096K
    L3 cache:              16384K
    NUMA node0 CPU(s):     0-3
    Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology eagerfpu pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single ssbd ibrs ibpb fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat umip pku ospke spec_ctrl


    and this in custom config:
    Code (Text):
    # cat /etc/centminmod/custom_config.inc
    NGINX_LIBBROTLI=y # Brotly extension
    NGXDYNAMIC_BROTLI=y # Brotly dynamic module extension
    NGINX_BROTLIDEP_UPDATE='y' # use the latest tagged version of Google Brotli - http://bit.ly/2S9y3tI
    PHP_MEMCACHE=n # memcache PHP extension
    PHP_MEMCACHED=n # memcached PHP extension
    PHP_PGO='y' # PGO Let It Go - Profile Guided Optimizations for PHP 7
    PHPPGO_INDEXPATH='/home/nginx/domains/pijanitvor.com/public/index.php' # path for PGO training
    AUDITD_ENABLE='y' # Auditd skripta
    RCLONE_ENABLE='y' # Rclone skripta
    NGINX_DEVTOOLSETGCC='y' # umjesto clang ide gcc kompilacija kod nginx
    #DEVTOOLSETEIGHT='y' # ide 8.x verzija gcc kompilacije umjesto defaultne 5.x ili 6.x ili 7.x
    DEVTOOLSETNINE='y' # ide 9.x verzija gcc kompilacije umjesto defaultne 5.x - 8.x
    #CRYPTO_DEVTOOLSETGCC='y' # newer Intel GCC
    #NGINX_HPACK='y' # enabling HPACK for Nginx
    NGINX_DYNAMICTLS='y' # add Nginx Dynamic TLS Cloudflare Patch - http://bit.ly/2EYzhk7
    NGINXPATCH='y' # add Nginx Dynamic TLS Cloudflare Patch - http://bit.ly/2EYzhk7
    NGINX_GEOIPTWOLITE='y' # GeoIP2 Lite nginx module
    NGXDYNAMIC_GEOIPTWOLITE='y' # GeoIP2 Lite nginx module
    ENABLE_MARIADBTENTHREEUPGRADE='y' # enabling upgrade MariaDB from 10.2.x to 10.3.x
    MARCH_TARGETNATIVE='n' # potrebno da ne zblesira nginx kod reboota servera - http://bit.ly/2SlX3hd
    #MARCH_TARGETNATIVE_ALWAYS='y' #za sada ovo gore disableano a ovo omoguceno - http://bit.ly/2VODBHf
    PHP_ARGON='y' # potrebno za bolji hash algoritam passworda na xenforu
    PHP_BROTLI='y' # brotli php extension https://github.com/kjdev/php-ext-brotli
    PHP_LZFOUR='y' # lz4 php extension https://github.com/kjdev/php-ext-lz4
    PHP_LZF='y' # lzf php extension https://github.com/php/pecl-file_formats-lzf php-ext-lzf
    PHP_ZSTD='y' # zstd php extension https://github.com/kjdev/php-ext-zstd
    #AUTODETECPHP_OVERRIDE='y' # recompile php exensions on minor php (aka 7.3.x) upgrade
    MM_LICENSE_KEY='xxxxxxxxx'
     
  17. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yup newer and faster Intel Xeon Gold 6136 Scalable cpu better than your own Intel Xeon E-2687v3 Haswell cpu and shouldn't have your issues as I test Centmin Mod 123.09beta01 builds on Upcloud everyday :)
     
  18. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    4:37 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    but I do not created new server. This is only server I have.
    Did they change cpus?
    So, with this cpus version, my custom config variables are OK?
    Particularly this two (one is disabled):
    Code:
    MARCH_TARGETNATIVE='n'
    #MARCH_TARGETNATIVE_ALWAYS='y' 
     
  19. Sunka

    Sunka Well-Known Member

    1,147
    317
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +515
    Local Time:
    4:37 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    6 days ago I have this:
    Code:
    # cminfo
    ------------------------------------------------------------------
     Centmin Mod Quick Info:
    ------------------------------------------------------------------
    Server Location Info
    
      ip: 94.237.xxx.xxx
      city: Helsinki
      region: Uusimaa
      country: FI
      timezone: Europe/Helsinki
    
    Processors physical = 4, cores = 4, virtual = 4, hyperthreading = no
    
          4  3099.996
          4  Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz
          4  16384 KB
    
     System Up Since:     2020-02-14 00:20:19
     System Uptime:     up 2 hours, 57 minutes
     MySQL Server Started     2020-02-14 01:20:22
     MySQL Uptime:         1 hour 57 min 53 sec
     MySQL Uptime (secs):     7073
     Server Type:         kvm
     CentOS Version:     7.7
     Centmin Mod:         123.09beta01.b429
     Nginx PageSpeed:     ON
     Nginx Version:     1.17.8 (220120-005032-centos7-kvm-50774ee)
     PHP-FPM Version:     7.4.2
     MariaDB Version:     10.3.22
     CSF Firewall:         v14.01
     Memcached Server:     1.5.12
     NSD Version:          -
     Siege Version:     4.0.4
     Maldet Version:     v1.6.4
     ClamAV Version:     not installed
     ElasticSearch:     6.8.6
    ------------------------------------------------------------------
    
    and now I have this:
    Code:
    # cminfo
    ------------------------------------------------------------------
     Centmin Mod Quick Info:
    ------------------------------------------------------------------
    Server Location Info
    
      ip: 94.237.xxx.xxx
      city: Helsinki
      region: Uusimaa
      country: FI
      timezone: Europe/Helsinki
    
    Processors physical = 4, cores = 4, virtual = 4, hyperthreading = no
    
          4  2992.968
          4  Intel(R) Xeon(R) Gold 6136 CPU @ 3.00GHz
          4  16384 KB
    
     System Up Since:       2020-02-19 00:23:18
     System Uptime:         up 1 day, 14 hours, 59 minutes
     MySQL Server Started   2020-02-19 18:08:46
     MySQL Uptime:          21 hours 13 min 49 sec
     MySQL Uptime (secs):   76429
     Server Type:           kvm
     CentOS Version:        7.7
     Centmin Mod:           123.09beta01.b434
     Nginx PageSpeed:       ON
     Nginx Version:         1.17.8 (190220-175553-centos7-kvm-a88b917)
     PHP-FPM Version:       7.4.3
     MariaDB Version:       10.3.22
     CSF Firewall:          v14.01
     Memcached Server:      1.5.12
     NSD Version:            -
     Siege Version:         4.0.4
     Maldet Version:        v1.6.4
     ClamAV Version:        not installed
     ElasticSearch:         6.8.6
    ------------------------------------------------------------------
    
     
    Last edited by a moderator: Feb 21, 2020
  20. eva2000

    eva2000 Administrator Staff Member

    47,475
    10,760
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,718
    Local Time:
    1:37 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    that is why you have your php compile issues, you had Intel Xeon E5-2687v3 haswell when you initially installed PHP with optionally enabled MARCH_TARGETNATIVE_ALWAYS='y' to force march=native compilations to optimise for E5-2687v3 haswell cpu. But on reboot I suspect or VPS migration, your cpu got changed to Intel Xeon Gold 6136 which PHP-FPM isn't compiled for.

    so set
    Code (Text):
    MARCH_TARGETNATIVE='n'
    #MARCH_TARGETNATIVE_ALWAYS='y'
    PHP_PGO='n'
    NGINX_DEVTOOLSETGCC='y'
    CRYPTO_DEVTOOLSETGCC='y'
    

    run ccache clear command to clear it's cache
    Code (Text):
    ccache -C

    and then run cmupdate commnad and re-compile nginx, php, memcached via centmin.sh menu option 4, 5 and 10

    this is why 123.09beta01 when it detects upcloud, vultr, linode and digitalocean will set MARCH_TARGETNATIVE='n' to disable march=native so you don't run into issues you ran into as these web hosts have varying cpu models between VPS host nodes. For MARCH_TARGETNATIVE_ALWAYS='y' that overrides this to force march=native for better performance but you need to know everytime cpu model changes to recompile or just leave it as default MARCH_TARGETNATIVE_ALWAYS='n'

    I think your problem partially comes from using Upcloud dashbard to reboot server as opposed to reboot via SSH command = reboot or shutdown -h now as the Upcloud dashboard probably doesn't additional things which force your VPS onto a different VPS host node with different cpu - haven't experienced this myself as I always reboot from SSH not VPS dashboards unless web host instructs me to do so