Welcome to Centmin Mod Community
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

    842
    172
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +314
    Local Time:
    6:07 PM
    1.17.x Cluster
    10.3.x Cluster & Redis
    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

    42,798
    9,693
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,956
    Local Time:
    7:07 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    contents of your persistent config file at /etc/centminmod/custom_config.inc ?
     
  3. steph40

    steph40 Premium Member Premium Member

    64
    13
    8
    Jan 28, 2019
    Ratings:
    +25
    Local Time:
    4:07 PM
    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

    42,798
    9,693
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,956
    Local Time:
    7:07 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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 Premium Member Premium Member

    64
    13
    8
    Jan 28, 2019
    Ratings:
    +25
    Local Time:
    4:07 PM
    1.1.5
    mariadb 10
    Code:
    5.4.7-1.el7.elrepo.x86_64
    
    Code:
    5004007000
    
     
  6. EckyBrazzz

    EckyBrazzz Active Member

    842
    172
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +314
    Local Time:
    6:07 PM
    1.17.x Cluster
    10.3.x Cluster & Redis
     
  7. eva2000

    eva2000 Administrator Staff Member

    42,798
    9,693
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,956
    Local Time:
    7:07 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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
     
    • Informative Informative x 1
  8. EckyBrazzz

    EckyBrazzz Active Member

    842
    172
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +314
    Local Time:
    6:07 PM
    1.17.x Cluster
    10.3.x Cluster & Redis
    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 Premium Member Premium Member

    64
    13
    8
    Jan 28, 2019
    Ratings:
    +25
    Local Time:
    4:07 PM
    1.1.5
    mariadb 10
     
  10. EckyBrazzz

    EckyBrazzz Active Member

    842
    172
    43
    Mar 28, 2018
    >>>>Click here<<<< i'm nearby......
    Ratings:
    +314
    Local Time:
    6:07 PM
    1.17.x Cluster
    10.3.x Cluster & Redis
    @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 Premium Member Premium Member

    64
    13
    8
    Jan 28, 2019
    Ratings:
    +25
    Local Time:
    4:07 PM
    1.1.5
    mariadb 10
    No clue, it just installed with centminmod install I guess.
     
  12. eva2000

    eva2000 Administrator Staff Member

    42,798
    9,693
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,956
    Local Time:
    7:07 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    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