Page 1 of 1

Nginx Gunicorn - error arg type invalid choice nginx-wsgi

PostPosted: Mon Nov 16, 2015 1:18 pm
by rhamedy
Hi All,

As a part of upgrade from OMERO 5.1.4 to 5.2.0 we installed Gunicorn 19.3.0 as well as upgraded Django to 1.8 (LTS) from 1.6. I am following instructions in https://www.openmicroscopy.org/site/support/omero5.1/sysadmins/unix/install-web/install-wsgi.html to create Gunicorn Nginx Configuration but, I get error when executing the following command:
Code: Select all
$ bin/omero web config nginx-wsgi

I get the following error
Gunicorn.PNG
Argument type Invalid choice nginx-wsgi
Gunicorn.PNG (8.04 KiB) Viewed 1727 times

What am I missing? OMERO web config does not recognize "nginx-wsgi" param and expects me to use either apache, nginx, nginx-development as arg.

Raf.

Re: Nginx Gunicorn - error arg type invalid choice nginx-wsg

PostPosted: Mon Nov 16, 2015 1:29 pm
by jmoore
Hi Raf,

you'll need to look at the 5.2 documentation:


which points to just using "web config nginx".

Cheers,
~Josh.

Re: Nginx Gunicorn - error arg type invalid choice nginx-wsg

PostPosted: Mon Nov 16, 2015 2:17 pm
by rhamedy
Thank you Josh.

I was looking in the wrong place. I had to update the omero-web.config in nginx with bin/omer web config content and I can now see the web interface.

Raf.