Want more timely Centmin Mod News Updates?
Become a Member

Upgrade Nginx Nginx recompile again twice aio on;

Discussion in 'Bug Reports' started by EckyBrazzz, Jan 4, 2020.

  1. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    10:57 AM
    Latest
    Latest
    Hi,

    For some reason OVH had put the old kernel back into my server, so I put 5.4.x again back.
    I had nginx complied for 5.4, so there was an entry in my nginx.conf


    To prevent the same issue again, I removed all old kernels.

    After I reinstalled the kernel 5.4.x and recompiled nginx and found this
    Code (Text):
    nginx -t
    nginx: [emerg] "aio" directive is duplicate in /usr/local/nginx/conf/nginx.conf:110
    nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
    


    Code (Text):
    aio on;
    aio on;
    
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,368
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    contents of your persistent config file at /etc/centminmod/custom_config.inc ?
     
  3. steph40

    steph40 Member

    84
    17
    8
    Jan 28, 2019
    Ratings:
    +34
    Local Time:
    8:57 AM
    1.1.5
    mariadb 10
    Same for me. Here is my custom_config:
    Code:
    LETSENCRYPT_DETECT='y'
    NGINX_IOURING_PATCH='y'
    NGINX_HPACK='y'
    NGINX_DYNAMICTLS='y'
    PHP_PGO='y'
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,368
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what kernels version are you both using ? output for
    Code (Text):
    uname -r

    and
    Code (Text):
    uname -r | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'
     
  5. steph40

    steph40 Member

    84
    17
    8
    Jan 28, 2019
    Ratings:
    +34
    Local Time:
    8:57 AM
    1.1.5
    mariadb 10
    Code:
    5.4.7-1.el7.elrepo.x86_64
    
    Code:
    5004007000
    
     
  6. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    10:57 AM
    Latest
    Latest
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,368
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    what's output for Nginx version
    Code (Text):
    nginx -V
    

    you can wrap Nginx version output in quote tags

    @EckyBrazzz you have NGINX_IOURING_PATCH='y' listed twice in your persistent config file, so if you only set 1st instance to = n, then it would of still been detected as y due to latter instance so would of inserted aio on directive setting
     
  8. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    10:57 AM
    Latest
    Latest
    Again twice? lol Thanks. Remove one of them. Did it sleepwalking I think.....:banghead: Think I did it twice to be sure it worked...
    Here is the config of this server
     
    Last edited: Jan 5, 2020
  9. steph40

    steph40 Member

    84
    17
    8
    Jan 28, 2019
    Ratings:
    +34
    Local Time:
    8:57 AM
    1.1.5
    mariadb 10
     
  10. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    10:57 AM
    Latest
    Latest
    @steph40 May I ask you why you use cast-function-type? One say yes, other no. Gnome, bug. I don't know.
     
  11. steph40

    steph40 Member

    84
    17
    8
    Jan 28, 2019
    Ratings:
    +34
    Local Time:
    8:57 AM
    1.1.5
    mariadb 10
    No clue, it just installed with centminmod install I guess.
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,368
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Centmin Mod determins that for Nginx build routines

    everything looks correct to me, remove the duplicate aio on entry and then try recompile nginx via centmin.sh menu option 4 again and see if it happens again
     
  13. Nik

    Nik Member

    93
    6
    8
    Dec 7, 2015
    Ratings:
    +16
    Local Time:
    8:57 AM
    I can confirm this duplicate also. I did centmin install, add wp site, upgrade kernel, recompile nginx,php, found the dupe in nginx.conf. No biggie commented it out.
     
  14. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    10:57 AM
    Latest
    Latest
    Again, the same, manually deleted from nginx.conf.

    If I did not have an online monitor, all my sites where offline until now because of this. And checked, no double NGINX_IOURING_PATCH='y' in the custom_config.inc

    Code (Text):
    Feb 20 12:42:10 <<SNIPPED>> systemd[1]: Starting SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server...
    Feb 20 12:42:10 <<SNIPPED>> nginx[26043]: Starting nginx: nginx: [emerg] "aio" directive is duplicate in /usr/local/nginx/conf/nginx.conf:117
    Feb 20 12:42:10 <<SNIPPED>> nginx[26043]: [FAILED]
    Feb 20 12:42:10 <<SNIPPED>> systemd[1]: nginx.service: control process exited, code=exited status=1
    Feb 20 12:42:10 <<SNIPPED>> systemd[1]: Failed to start SYSV: Nginx is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 proxy server.
    Feb 20 12:42:10 <<SNIPPED>> systemd[1]: Unit nginx.service entered failed state.
    Feb 20 12:42:10 <<SNIPPED>> systemd[1]: nginx.service failed.
    [12:43][root@<<SNIPPED>> ~]# nano /usr/local/nginx/conf/nginx.conf
    [12:43][root@<<SNIPPED>> ~]# nprestart
    Restarting nginx (via systemctl):                          [  OK  ]
    Restarting php-fpm (via systemctl) [  OK  ]
    
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,368
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    probably best to set NGINX_IOURING_PATCH='n' for now until I have time to investigate
     
  16. EckyBrazzz

    EckyBrazzz Active Member

    916
    189
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +362
    Local Time:
    10:57 AM
    Latest
    Latest
    Guess I stay with @Nik solution for now.

    Also, I had to kill -9 process# in another screen to finish the recompile.
     
  17. buik

    buik “The best traveler is one without a camera.”

    2,026
    524
    113
    Apr 29, 2016
    Flanders
    Ratings:
    +1,674
    Local Time:
    2:57 PM
    Had the same, but I thought of a personal error, so removed the double entry and kept no logs. @eva Thanks for looking after it.
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,368
    12,198
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,763
    Local Time:
    11:57 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    just tested and can't reproduce on my end, i only get a single aio on; instance

    when you get duplicate aio on; instances, post contents of your /usr/local/nginx/conf/nginx.conf
    Code (Text):
    cat -n /usr/local/nginx/conf/nginx.conf

    for posting code or output from commands to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)