Welcome to Centmin Mod Community
Register Now

Install Nginx nginx upgrade problem

Discussion in 'Install & Upgrades or Pre-Install Questions' started by petrichbg, Sep 10, 2020.

  1. petrichbg

    petrichbg New Member

    4
    0
    1
    Aug 2, 2017
    Bulgaria
    Ratings:
    +0
    Local Time:
    2:11 PM
    1.13.3
    Hello

    i need help pls

    after update nginx got error !!!

    Code:
    Sep 10 13:02:37  systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Sep 10 13:02:38  nginx[32273]: Starting nginx: nginx: [warn] invalid parameter "spdy": ngx_http_spdy_module was superseded by ngx_http_v2_module in /usr/local/nginx/conf/conf.d/news.petrichbg.net.ssl.conf:16
    Sep 10 13:02:38  nginx[32273]: nginx: [warn] invalid directive "spdy_headers_comp": ngx_http_spdy_module was superseded by ngx_http_v2_module in /usr/local/nginx/conf/conf.d/news.petrichbg.net.ssl.conf:40
    Sep 10 13:02:38 isp.net-plus.bg nginx[32273]: nginx: [emerg] unknown "q_ignorearg" variable
    Sep 10 13:02:38 * nginx[32273]: [FAILED]
    Sep 10 13:02:38 isp.net-plus.bg systemd[1]: nginx.service: control process exited, code=exited status=1
    Sep 10 13:02:38 * systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Sep 10 13:02:38 * systemd[1]: Unit nginx.service entered failed state.
    Sep 10 13:02:38 * systemd[1]: nginx.service failed.
    
    can help me to fix
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,933
    Local Time:
    9:11 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    spdy directive is very very very old and deprecated!

    and
    is recently added nginx rule for Wordpress cache enabler configs created via centmin.sh menu option 22

    Please fill in any relevant information that applies to you:
    • CentOS Version: i.e. CentOS 6 32bit or 64bit / CentOS 7 64bit ?
    • Centmin Mod Version Installed: i.e. 123.08stable or 123.09beta01
    • Nginx Version Installed: i.e. 1.15.3
    • PHP Version Installed: i.e. 5.6.37, 7.0.31, 7.1.21, 7.2.9
    • MariaDB MySQL Version Installed: i.e. 10.0.x or 10.1.xx or 10.2.xx
    • When was last time updated Centmin Mod code base ? : i.e. run centmin.sh menu option 23 submenu option 2 or cmupdate command
    • Persistent Config: Do you have any persistent config file options set in /etc/centminmod/custom_config.inc ? You can check via this command:
      Code (Text):
      cat /etc/centminmod/custom_config.inc
      

      Post output in CODE tags.
    also nginx version and centmin mod version info
    Code (Text):
    nginx -V
    

    wrap this output in QUOTE tags
     
  3. petrichbg

    petrichbg New Member

    4
    0
    1
    Aug 2, 2017
    Bulgaria
    Ratings:
    +0
    Local Time:
    2:11 PM
    1.13.3
    Now i update nginx
    nginx -v
    nginx version: nginx/1.19.2 (100920-140553-centos7-1134d5d-br-25f86f0)

    and show me another error
    Nginx
    I have been using Cendminmod for almost 3 years and I have not had any problems so far
     
    Last edited: Sep 11, 2020
  4. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,933
    Local Time:
    9:11 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    strange you're missing the --with-http_v2_module nginx module i.e.
    To troubleshoot, you need to check the full 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
     
  5. eva2000

    eva2000 Administrator Staff Member

    45,201
    10,279
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,933
    Local Time:
    9:11 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    your nginx build line is nginx/1.19.2 (100920-140553-centos7-1134d5d-br-25f86f0) is 1134d5d seems you're using an alpha in development 123.09beta01-nginx-http3-preview1 branch which for Nginx with BoringSSL/QUICHE HTTP/3 so not ready for live use

    You need to use centmin.sh menu option 23 submenu option 3 to switch back to working 123.09beta01 branch first and then exit centmin.sh menu

    and then run centmin.sh menu option 4 to recompile nginx
     
  6. petrichbg

    petrichbg New Member

    4
    0
    1
    Aug 2, 2017
    Bulgaria
    Ratings:
    +0
    Local Time:
    2:11 PM
    1.13.3
    Thank you now all is OK :)