Want more timely Centmin Mod News Updates?
Become a Member

Nginx not restarting

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by Jon Snow, Oct 14, 2017.

  1. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    11:36 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    • CentOS Version: CentOS 7 64bit
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: Latest
    • PHP Version Installed: 7.1.x
    • MariaDB MySQL Version Installed: Latest
    Linode said I had to migrate so I pressed the migration button and it finished. Now I can't load my site and nginx isn't restarting. I get this when I run the command to find info :

    Code (Text):
    systemctl status nginx.service
    ‚óŹ nginx.service - SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server
       Loaded: loaded (/etc/rc.d/init.d/nginx; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since Fri 2017-10-13 22:55:52 UTC; 20s ago
         Docs: man:systemd-sysv-generator(8)
      Process: 4071 ExecStart=/etc/rc.d/init.d/nginx start (code=exited, status=1/FAILURE)
    
    Oct 13 22:55:51 hostname systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Oct 13 22:55:52 hostname nginx[4071]: Starting nginx: /bin/bash: line 1:  4083 Illegal instruction     /usr/local/sbin/nginx -c /usr/lo...inx.conf
    Oct 13 22:55:52 hostname nginx[4071]: [FAILED]
    Oct 13 22:55:52 hostname systemd[1]: nginx.service: control process exited, code=exited status=1
    Oct 13 22:55:52 hostname systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Oct 13 22:55:52 hostname systemd[1]: Unit nginx.service entered failed state.
    Oct 13 22:55:52 hostname systemd[1]: nginx.service failed.
    Hint: Some lines were ellipsized, use -l to show in full.
     
  2. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    11:36 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    nginx -t returns :
    Code (Text):
    nginx -t
    Illegal instruction
     
  3. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    11:36 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    Going to try recompiling nginx.
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,634
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    1:36 PM
    Nginx 1.13.x
    MariaDB 5.5
  5. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    11:36 PM
    Nginx 1.13.4
    MariaDB 10.1.26
  6. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    11:36 PM
    Nginx 1.13.4
    MariaDB 10.1.26
  7. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    11:36 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    @eva2000 nginx 1.13.6 was the problem. I tried 1.13.5 and it worked.
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,634
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    1:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    might have been NGINX_HPACK='y' related if you enabled it Nginx - [nginx-announce] nginx-1.13.6

    always update centminmod via centmin.sh menu option 23 submenu option 2, exit centmin.sh and then do whatever nginx or php upgrades thus ensuring on latest code base
     
  9. Jon Snow

    Jon Snow Active Member

    191
    27
    28
    Jun 30, 2017
    Ratings:
    +32
    Local Time:
    11:36 PM
    Nginx 1.13.4
    MariaDB 10.1.26
    If to enable it, I had to place that line in my custom_config file, then it was disabled by default. Unless I had to change "y" to "n" to force disable it.
    I think I had centminmod code up to date. I upgraded to nginx 1.13.6 a long time back. I just got the alert at Linode that they are migrating my server and after it was done, this happened :(

    So if I'm upgrading to nginx 1.13.6, I should add NGINX_HPACK='n'?
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,634
    6,862
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,308
    Local Time:
    1:36 PM
    Nginx 1.13.x
    MariaDB 5.5
    right now yes
     
    • Informative Informative x 1