We're Hiring!

OMERO.web setup problem - SOLVED

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Re: OMERO.web setup problem

Postby PhilippeP » Fri Apr 29, 2016 6:51 am

forgot to ask you about apache.conf.tmp config
Here it is:
Code: Select all
###
### Apache 2.4+ stanza for OMERO.web created 2016-04-28 11:58:34.994110
###

<VirtualHost _default_:80>

  WSGIDaemonProcess omeroweb processes=5 threads=1 maximum-requests=0 display-name=%{GROUP} user=omero python-path=/usr/lib/python2.7/dist-packages:/home/omero/OMERO.server/lib/python:/home/omero/OMERO.server/lib/fallback:/home/omero/OMERO.server/lib/python/omeroweb

  WSGIScriptAlias / /home/omero/OMERO.server/lib/python/omeroweb/wsgi.py process-group=omeroweb

  <Directory "/home/omero/OMERO.server/lib/python/omeroweb">
    WSGIProcessGroup omeroweb
    WSGIApplicationGroup %{GLOBAL}
    Require all granted
  </Directory>

  Alias /static /home/omero/OMERO.server/lib/python/omeroweb/static
  <Directory "/home/omero/OMERO.server/lib/python/omeroweb/static">
    Options -Indexes -FollowSymLinks
    Require all granted
  </Directory>

</VirtualHost>

# see https://code.google.com/p/modwsgi/wiki/ConfigurationIssues
WSGISocketPrefix run/wsgi
# Use this on Ubuntu/Debian/MacOSX systems:
# WSGISocketPrefix /var/run/wsgi
Not sure I understand what this
# Use this on Ubuntu/Debian/MacOSX systems:
# WSGISocketPrefix /var/run/wsgi
means nor what I am supposed to do... :?

I modified the "apache.conf.tmp" to:
Code: Select all
###
### Apache 2.4+ stanza for OMERO.web created 2016-04-28 11:58:34.994110
###

<VirtualHost _default_:80>

  WSGIDaemonProcess omeroweb processes=5 threads=1 maximum-requests=0 display-name=%{GROUP} user=omero python-path=/usr/lib/python2.7/dist-packages:/home/omero/OMERO.server/lib/python:/home/omero/OMERO.server/lib/fallback:/home/omero/OMERO.server/lib/python/omeroweb

  WSGIScriptAlias / /home/omero/OMERO.server/lib/python/omeroweb/wsgi.py process-group=omeroweb

  <Directory "/home/omero/OMERO.server/lib/python/omeroweb">
    WSGIProcessGroup omeroweb
    WSGIApplicationGroup %{GLOBAL}
    Require all granted
  </Directory>

  Alias /static /home/omero/OMERO.server/lib/python/omeroweb/static
  <Directory "/home/omero/OMERO.server/lib/python/omeroweb/static">
    Options -Indexes -FollowSymLinks
    Require all granted
  </Directory>

</VirtualHost>

# see https://code.google.com/p/modwsgi/wiki/ConfigurationIssues
#WSGISocketPrefix run/wsgi
# Use this on Ubuntu/Debian/MacOSX systems:
WSGISocketPrefix /var/run/wsgi
and ran
Code: Select all
cp ~omero/OMERO.server/apache.conf.tmp /etc/apache2/sites-available/omero-web.conf
a2dissite 000-default.conf
a2ensite omero-web.conf
service apache2 start
When running
Code: Select all
OMERO.server/bin/omero web start
I again got
Code: Select all
omero@pc5944:~$ OMERO.server/bin/omero web start
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'

0 static files copied to '/home/omero/OMERO.server/lib/python/omeroweb/static', 618 unmodified, 2 post-processed.
Clearing expired sessions. This may take some time... [OK]
You are deploying OMERO.web using apache and mod_wsgi. Generate apache config using 'omero web config apache' and reload web server.
omero@pc5944:~$
Apparently no change, still saying:
"You are deploying OMERO.web using apache and mod_wsgi. Generate apache config using 'omero web config apache' and reload web server"
and still no web connection. I rebooted the server just in case, but to no avail.
:?:

EDIT: I just tried with "WSGISocketPrefix /var/run/apache2/wsgi" instead of " WSGISocketPrefix /var/run/wsgi" in "apache.conf.tmp" file. Same exact result.
PhilippeP
 
Posts: 44
Joined: Tue Oct 22, 2013 1:31 pm

Re: OMERO.web setup problem

Postby atarkowska » Fri Apr 29, 2016 9:33 am

Hi Philippe

I would like to remind you that walkthrough http://www.openmicroscopy.org/site/supp ... unix-linux ask you to run

Code: Select all
OMERO.server/bin/omero web syncmedia


You are deploying OMERO.web using Apache and mod_wsgi. OMERO.web does not provide any management for ‘daemon’ process which communicate with Apache child processes using UNIX sockets to handle a request.


You have to reload/restart apache and web will be running.

What exactly is not working? What is the error?

NOTE: Please note that running production server without comprehensive knowledge about security, maintenance and backups can cause data loss. I would strongly recommend you to ask your IT department to help you to set it up securely.

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.web setup problem

Postby PhilippeP » Fri Apr 29, 2016 10:29 am

Hi Ola,
I would strongly recommend you to ask your IT department to help you to set it up securely.
I wish I could... It took me months (litteraly) to have them install an automatic backup of our OMERO data on a remote server in case of disaster. They are apparently not available to help us running our server maintenance and upgrades. Thus these hours I am spending trying to figure out how to have the web access working...
What exactly is not working? What is the error?
I tried to answer that question higher up in this post. Let me know if the description and logs are not sufficient, and what information is missing.

Philippe

PS: Apache is running on our server:
Code: Select all
omero@pc5944:~$ pgrep apache
4398
4401
4402
omero@pc5944:~$
PhilippeP
 
Posts: 44
Joined: Tue Oct 22, 2013 1:31 pm

Re: OMERO.web setup problem

Postby atarkowska » Fri Apr 29, 2016 10:41 am

Hi Philippe, based on the error on Apache logs I suggested you to try one of these in apache.conf.tmp


Code: Select all
WSGISocketPrefix run/wsgi
or
WSGISocketPrefix /var/run/wsgi
or
WSGISocketPrefix /var/run/apache2/wsgi


One of them should work. After changing config you have to restart Apache server and try http://pc5944.unice.fr/ rather then omero@pc5944:~$ OMERO.server/bin/omero web start

As I said Apache manage OMERO.web for you.

If you tried each of them and still you do not see login page you have to send us apache error.log.

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.web setup problem

Postby PhilippeP » Fri Apr 29, 2016 11:00 am

By curiosity, I checked out the file /etc/apache2/sites-available/omero-web.conf, which if I understood is replaced by omero/OMERO.server/apache.conf.tmp when running
Code: Select all
cp ~omero/OMERO.server/apache.conf.tmp /etc/apache2/sites-available/omero-web.conf

For some unknown reason, it had not been modified when I earlier wanted to correct it via apache.conf.tmp to
Code: Select all
WSGISocketPrefix /var/run/wsgi
I thus directly modified /etc/apache2/sites-available/omero-web.conf, and now...

IT DOES WORK!!!!!!

Thanks Ola, and all of you guys for your patience and patience and patience.

Philippe
PhilippeP
 
Posts: 44
Joined: Tue Oct 22, 2013 1:31 pm

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest