I'm having an odd problem with omero web. I wanted to install on a Ubuntu 14.04 virtualbox using my username for development purposes. I had already installed on a 14.04 server and I used the same procedure, but with the virtualbox 'omero web start' says:
Starting OMERO.web... [OK]
But 'omero web status' says:
OMERO.web status... [NOT STARTED]
And when I go to the nginx page I get "502 - Bad Gateway". The Insight clients work fine.
If I set omero.web.application_server.host=0.0.0.0 and run the dev server to connect to port 4080 everything works fine.
The weird part is if I run "gunicorn --bind 127.0.0.1:4080 omeroweb.wsgi:application" I get a python traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/gunicorn/arbiter.py", line 557, in spawn_worker
worker.init_process()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 126, in init_process
self.load_wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/workers/base.py", line 136, in load_wsgi
self.wsgi = self.app.wsgi()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/base.py", line 67, in wsgi
self.callable = self.load()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 65, in load
return self.load_wsgiapp()
File "/usr/local/lib/python2.7/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
return util.import_app(self.app_uri)
File "/usr/local/lib/python2.7/dist-packages/gunicorn/util.py", line 357, in import_app
__import__(module)
ImportError: No module named omeroweb.wsgi
Until I run "export PYTHONPATH=/home/omero/OMERO.server/lib/python:$PYTHONPATH". Then the error disappears, gunicorn runs and I can reach the web interface through nginx. The thing is I don't have any folder /home/omero.
I'm fine using the dev server here (It's what I was planning on using this install for), but I'd like to better understand what's going on here so I can better administer Omero.
Any thoughts?