Want to subscribe to topics you're interested in?
Become a Member

Using latest Beta, Nginx doesn't start on upgrading nginx

Discussion in 'Bug Reports' started by rdan, Jun 9, 2014.

Tags:
  1. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    Full log:
    Code:
    *************************************************
    
    Mon Jun  9 08:36:16 PHT 2014
    Success: Nginx make ok
    
    *************************************************
    Stopping nginx:                                            [  OK  ]
    
    nginx seems to be still running, trying to stop it again...
    
    Stopping nginx:                                            [  OK  ]
    make -f objs/Makefile install
    make[1]: Entering directory `/svr-setup/nginx-1.7.1'
    test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
    test -d '/usr/local/sbin'               || mkdir -p '/usr/local/sbin'
    test ! -f '/usr/local/sbin/nginx'               || mv '/usr/local/sbin/nginx'                   '/usr/local/sbin/nginx.old'
    cp objs/nginx '/usr/local/sbin/nginx'
    test -d '/usr/local/nginx/conf'                 || mkdir -p '/usr/local/nginx/conf'
    cp conf/koi-win '/usr/local/nginx/conf'
    cp conf/koi-utf '/usr/local/nginx/conf'
    cp conf/win-utf '/usr/local/nginx/conf'
    test -f '/usr/local/nginx/conf/mime.types'              || cp conf/mime.types '/usr/local/nginx/conf'
    cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
    test -f '/usr/local/nginx/conf/fastcgi_params'          || cp conf/fastcgi_params '/usr/local/nginx/conf'
    cp conf/fastcgi_params          '/usr/local/nginx/conf/fastcgi_params.default'
    test -f '/usr/local/nginx/conf/fastcgi.conf'            || cp conf/fastcgi.conf '/usr/local/nginx/conf'
    cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
    test -f '/usr/local/nginx/conf/uwsgi_params'            || cp conf/uwsgi_params '/usr/local/nginx/conf'
    cp conf/uwsgi_params            '/usr/local/nginx/conf/uwsgi_params.default'
    test -f '/usr/local/nginx/conf/scgi_params'             || cp conf/scgi_params '/usr/local/nginx/conf'
    cp conf/scgi_params             '/usr/local/nginx/conf/scgi_params.default'
    test -f '/usr/local/nginx/conf/nginx.conf'              || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
    cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
    test -d '/usr/local/nginx/logs'                 || mkdir -p '/usr/local/nginx/logs'
    test -d '/usr/local/nginx/logs' ||              mkdir -p '/usr/local/nginx/logs'
    test -d '/usr/local/nginx/html'                 || cp -R html '/usr/local/nginx'
    test -d '/usr/local/nginx/logs' ||              mkdir -p '/usr/local/nginx/logs'
    make[1]: Leaving directory `/svr-setup/nginx-1.7.1'
    
    real    0m0.040s
    user    0m0.013s
    sys     0m0.010s
    *************************************************
    
    Mon Jun  9 08:36:32 PHT 2014
    Success: Nginx was installed properly
    
    *************************************************
    *************************************************
    * nginx updated
    *************************************************
    
    
    ccache stats:
    cache directory                     /home/.ccache
    cache hit (direct)                  1633
    cache hit (preprocessed)             773
    cache miss                          5562
    called for link                      526
    called for preprocessing             271
    compile failed                        77
    preprocessor error                    70
    bad compiler arguments                63
    unsupported source language          120
    autoconf compile/link                652
    unsupported compiler option           14
    no input file                        165
    files in cache                     12562
    cache size                         329.2 Mbytes
    max cache size                       2.0 Gbytes
    
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.07 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 22
    --------------------------------------------------------
    
    --------------------------------------------------------
    Please bookmark:
    --------------------------------------------------------
    ###############################################################
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Find the latest Centmin Mod version - http://centminmod.com
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Google+ Page latest news http://centminmod.com/gpage
    * Community Forums https://community.centminmod.com (signup)
    ###############################################################
    # Cheap VPS Hosting at Digitalocean
    # https://www.digitalocean.com/?refcode=c1cb367108e8
    ###############################################################
    [root@server32 centmin-v1.2.3mod]# nprestart
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Stopping nginx:                                            [FAILED]
    Starting nginx:                                            [  OK  ]
    Gracefully shutting down php-fpm . done
    Starting php-fpm  done
    
    As you can see, Nginx doesn't Started after install but still say's Success: Nginx was installed properly
    What's wrong?

     
  2. eva2000

    eva2000 Administrator Staff Member

    54,602
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    started fine

    Code:
    Starting nginx:                                            [  OK  ]
    failed is for nginx stop, that is normal as Nginx is already stopped at that stage
     
  3. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    Yes, that is because I run nprestart manually:
    Code:
    # nprestart
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Stopping nginx:                                            [FAILED]
    Starting nginx:                                            [  OK  ]
    But before that, after nginx upgrade/re-install nginx is dead and my forum is not responding so I tried to run nprestart and that I know nginx doesn't started after update.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,602
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    ah i see.. strange indeed

    it should restart.. did when i updated my forums recently
     
  5. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    Something mis on the latest beta?
    I don't know where to check that part.
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,602
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    none of the betas messed with anything related to Nginx like that

    maybe you might need to raise sleep value in centmin.sh to higher than 3 seconds ?

    Code:
    NGINXUPGRADESLEEP='3'
     
  7. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    I thought it was fix already before? :)
     
  8. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    But as you can see, there's no problem on stoping nginx.
    Raising will only affect stoping nginx not on starting as I understand.
     
  9. eva2000

    eva2000 Administrator Staff Member

    54,602
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Yeah it has for me heh I haven't had any problems at all.. you have a weird server :p j/k

    raising value tells to wait longer to let Nginx properly stop before starting.. right now it's your stop phase is taking too long

    Code:
    Mon Jun  9 08:36:16 PHT 2014
    Success: Nginx make ok
    
    *************************************************
    Stopping nginx:                                            [  OK  ]
    
    nginx seems to be still running, trying to stop it again...
    
    Stopping nginx:                                            [  OK  ]
     
  10. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    Hahaha I have weird setup.
    I have medium/semi large forum, so maybe that's the case.
     
  11. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    I raise it to 4 seconds, trying again now :)
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,602
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:26 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  13. rdan

    rdan Well-Known Member

    5,446
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:26 PM
    Mainline
    10.2
    Fine now:
    Code:
    *************************************************
    
    Mon Jun  9 08:57:00 PHT 2014
    Success: Nginx make ok
    
    *************************************************
    Stopping nginx:                                            [  OK  ]
    
    nginx seems to be still running, trying to stop it again...
    
    Stopping nginx:                                            [  OK  ]
    make -f objs/Makefile install
    make[1]: Entering directory `/svr-setup/nginx-1.7.1'
    test -d '/usr/local/nginx' || mkdir -p '/usr/local/nginx'
    test -d '/usr/local/sbin'               || mkdir -p '/usr/local/sbin'
    test ! -f '/usr/local/sbin/nginx'               || mv '/usr/local/sbin/nginx'                   '/usr/local/sbin/nginx.old'
    cp objs/nginx '/usr/local/sbin/nginx'
    test -d '/usr/local/nginx/conf'                 || mkdir -p '/usr/local/nginx/conf'
    cp conf/koi-win '/usr/local/nginx/conf'
    cp conf/koi-utf '/usr/local/nginx/conf'
    cp conf/win-utf '/usr/local/nginx/conf'
    test -f '/usr/local/nginx/conf/mime.types'              || cp conf/mime.types '/usr/local/nginx/conf'
    cp conf/mime.types '/usr/local/nginx/conf/mime.types.default'
    test -f '/usr/local/nginx/conf/fastcgi_params'          || cp conf/fastcgi_params '/usr/local/nginx/conf'
    cp conf/fastcgi_params          '/usr/local/nginx/conf/fastcgi_params.default'
    test -f '/usr/local/nginx/conf/fastcgi.conf'            || cp conf/fastcgi.conf '/usr/local/nginx/conf'
    cp conf/fastcgi.conf '/usr/local/nginx/conf/fastcgi.conf.default'
    test -f '/usr/local/nginx/conf/uwsgi_params'            || cp conf/uwsgi_params '/usr/local/nginx/conf'
    cp conf/uwsgi_params            '/usr/local/nginx/conf/uwsgi_params.default'
    test -f '/usr/local/nginx/conf/scgi_params'             || cp conf/scgi_params '/usr/local/nginx/conf'
    cp conf/scgi_params             '/usr/local/nginx/conf/scgi_params.default'
    test -f '/usr/local/nginx/conf/nginx.conf'              || cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf'
    cp conf/nginx.conf '/usr/local/nginx/conf/nginx.conf.default'
    test -d '/usr/local/nginx/logs'                 || mkdir -p '/usr/local/nginx/logs'
    test -d '/usr/local/nginx/logs' ||              mkdir -p '/usr/local/nginx/logs'
    test -d '/usr/local/nginx/html'                 || cp -R html '/usr/local/nginx'
    test -d '/usr/local/nginx/logs' ||              mkdir -p '/usr/local/nginx/logs'
    make[1]: Leaving directory `/svr-setup/nginx-1.7.1'
    
    real    0m0.043s
    user    0m0.016s
    sys     0m0.010s
    *************************************************
    
    Mon Jun  9 08:57:16 PHT 2014
    Success: Nginx was installed properly
    
    *************************************************
    *************************************************
    * nginx updated
    *************************************************
    
    
    ccache stats:
    cache directory                     /home/.ccache
    cache hit (direct)                  2565
    cache hit (preprocessed)             779
    cache miss                          5563
    called for link                      649
    called for preprocessing             290
    compile failed                        81
    preprocessor error                    73
    bad compiler arguments                70
    unsupported source language          139
    autoconf compile/link                677
    unsupported compiler option           14
    no input file                        184
    files in cache                     12565
    cache size                         329.2 Mbytes
    max cache size                       2.0 Gbytes
    
    --------------------------------------------------------
    Centmin Mod 1.2.3-eva2000.07 - http://centminmod.com
    --------------------------------------------------------
                       Centmin Mod Menu
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2, 5.5, 10 Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install ioping.sh vbtechsupport.com/1239/
    14). SELinux disable
    15). Install/Re-install ImageMagick PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2,p7zip etc
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Re-install
    21). Update - Nginx + PHP-FPM + Siege
    22). Exit
    --------------------------------------------------------
    Enter option [ 1 - 22 ] 22
    --------------------------------------------------------
    
    --------------------------------------------------------
    Please bookmark:
    --------------------------------------------------------
    ###############################################################
    * Getting Started Guide - http://centminmod.com/getstarted.html
    * Find the latest Centmin Mod version - http://centminmod.com
    * Centmin Mod FAQ - http://centminmod.com/faq.html
    * Change Log - http://centminmod.com/changelog.html
    * Google+ Page latest news http://centminmod.com/gpage
    * Community Forums https://community.centminmod.com (signup)
    ###############################################################
    # Cheap VPS Hosting at Digitalocean
    # https://www.digitalocean.com/?refcode=c1cb367108e8
    ###############################################################
    [root@server32 centmin-v1.2.3mod]# ngxrestart
    nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
    Stopping nginx:                                            [  OK  ]
    Starting nginx:                                            [  OK  ]