drupal-with-nginx
drupal-with-nginx copied to clipboard
unknown directive "aio" in /etc/nginx/apps/drupal/drupal.conf:144
nginx -t drops this error: unknown directive "aio" in /etc/nginx/apps/drupal/drupal.conf:144 I can get rid of it just ##'d of course, but I would like to know more about it. I am using ubuntu 12.04 LTS and nginx-extras from nginx PPA's and I am (just) guessing that I have to install either a nginx module or an os package.
So far I have tried unsuccessfully with libio-aio-perl and I wonder if it is related to the file-aio nginx extension which should be present.
Any clue is welcome!
@pedrosanchezpernia http://man7.org/linux/man-pages/man7/aio.7.html http://nginx.org/en/docs/http/ngx_http_core_module.html#aio
Hope these links will help ;) I don't use this directive as well because I don't distribute audio files... Just made a quick search ;)
I've always struggled w/these too, and always would just disable the configuration for it... thanks for the backgrounder information/links!
Thanks ! So far I know that: "The POSIX AIO interfaces are provided by glibc since version 2.1." then "glibc is provided by eglibc in the libc6 package." ...and libc6 is already installed on Unbuntu :) I'll keep posted any news about.
Not finding anything anywhere, tried (Unbuntu "trusty" 14.04) :
aptitude install aio
Got :
Couldn't find package "aio". However, the following
packages contain "aio" in their name:
libaio1 libaio1:i386 libvistaio-dev libvistaio-dev:i386 libaio-dev libaio-dev:i386 libsane-hpaio libsane-hpaio:i386 libaio1-dbg libaio1-dbg:i386
libvistaio14-dbg libvistaio14-dbg:i386 libio-aio-perl libio-aio-perl:i386 libvistaio14 libvistaio14:i386
There's that : http://stackoverflow.com/questions/87892/what-is-the-status-of-posix-asynchronous-i-o-aio - all in all, nothing helpful.
Seems like waste of time -> gave up.
There we are, again, with Ubuntu 14 LTS, same error. AIO seems related to the file system and the ability to deal with Asynchronous I/O. The library, already installed seems to be libaio1. AIO can be used since kernel 2.5.22 and Ubuntu 14.04 is well beyond at 3.13.
The problem seems to come because my nginx package does not have the --with-file-aio argument, I chose nginx-extras from Ubuntu PPA.
You can check if you have this nginx module with nginx -V
I would stick for now with the un-fancy comment solution #aio on;
Hope that anyone can confirm this for the sake of future searches.
http://hg.nginx.org/nginx/rev/4dc8e7b62216
it seems that aio has been removed