drupal-with-nginx icon indicating copy to clipboard operation
drupal-with-nginx copied to clipboard

unknown directive "aio" in /etc/nginx/apps/drupal/drupal.conf:144

Open pedrosanchezpernia opened this issue 11 years ago • 6 comments

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 avatar Nov 15 '13 13:11 pedrosanchezpernia

@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 ;)

yas375 avatar Nov 15 '13 13:11 yas375

I've always struggled w/these too, and always would just disable the configuration for it... thanks for the backgrounder information/links!

emjayess avatar Nov 15 '13 16:11 emjayess

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.

pedrosanchezpernia avatar Nov 15 '13 16:11 pedrosanchezpernia

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.

Paulmicha avatar Nov 28 '14 02:11 Paulmicha

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.

pedrosanchezpernia avatar Dec 09 '14 10:12 pedrosanchezpernia

http://hg.nginx.org/nginx/rev/4dc8e7b62216

it seems that aio has been removed

denics avatar Aug 23 '16 15:08 denics