Get the most out of your Centmin Mod LEMP stack
Become a Member

Upgrade Nginx Error After Upgrade

Discussion in 'Install & Upgrades or Pre-Install Questions' started by gasak, Jul 24, 2017.

  1. gasak

    gasak New Member

    23
    1
    3
    May 15, 2017
    Ratings:
    +2
    Local Time:
    12:12 AM
    1.13.0
    10.1.23-MariaDB
    Hi @eva2000

    After upgrade from 123.08stable to 123.09beta01 got error in nginx as below:
    Code:
    [root@hostname ~]# ngxrestart
    nginx: [emerg] dlopen() "/usr/local/nginx/modules/ngx_http_image_filter_module.so" failed (/lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/nginx/modules/ngx_http_image_filter_module.so)) in /usr/local/nginx/conf/dynamic-modules.conf:4
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
    Please help me out. Thank you.

    • CentOS Version: CentOS 6 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.13.3
    • PHP Version Installed: 5.6.31
    • MariaDB MySQL Version Installed: 10.0.31
    • When was last time upgrade Centmin Mod code base ? : centmin.sh menu option 23 submenu option 3
    • Persistent Config: No
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,743
    Local Time:
    3:12 AM
    Nginx 1.13.x
    MariaDB 5.5
    Tried running centmin.sh menu option 4 to recompile nginx 1.13.3?
     
  3. gasak

    gasak New Member

    23
    1
    3
    May 15, 2017
    Ratings:
    +2
    Local Time:
    12:12 AM
    1.13.0
    10.1.23-MariaDB
    Yes. Tried to recompile nginx because I was try to apply ngx_pagespeed to my server as your tutorial. But ends with that error.
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,925
    6,566
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,743
    Local Time:
    3:12 AM
    Nginx 1.13.x
    MariaDB 5.5
    To troubleshoot, you need to check the the nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log