We're Hiring!

Omero 5.0.0-beta1 and fastCGI

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.

Omero 5.0.0-beta1 and fastCGI

Postby bpavie » Tue Jan 14, 2014 2:40 pm

Hi everybody,

I finished to install OMERO 5 beta1 following the online tutorial available at https://www.openmicroscopy.org/site/support/omero5/sysadmins/unix/server-install-linux.html on Ubuntu 12.04 LTS and everything went fine.
However, when I tried to not use the web development and integrate the omero web interface into Apache, things didn't work:
I followed the tutorial available here:
http://www.openmicroscopy.org/site/supp ... l-web.html

But my main problem is that after configuring omero we to use fastcgi and started the web server:
Code: Select all
omero config set omero.web.application_server "fastcgi-tcp"
omero web start


I cannot see any omero.fcgi file mention in the /etc/apache2/sites-enabled/99-omero-web.conf generated by running the command
Code: Select all
omero web config apache


Code: Select all
RewriteEngine on
RewriteRule ^/?$ /omero/ [R]

###
### Stanza for OMERO.web created 2014-01-14 13:56:05.893149
###
FastCGIExternalServer "/opt/OMERO/OMERO.server/var/omero.fcgi" -socket "/opt/OMERO/OMERO.server/var/django_fcgi.sock"

<Directory "/opt/OMERO/OMERO.server/var">
    Options -Indexes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

<Directory "/opt/OMERO/OMERO.server/lib/python/omeroweb/static">
    Options -Indexes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

Alias /static /opt/OMERO/OMERO.server/lib/python/omeroweb/static
Alias /omero "/opt/OMERO/OMERO.server/var/omero.fcgi/"


So when I access to mywebserver.com/omero, I got an error message and the following in the apache.log file:
Code: Select all
[Tue Jan 14 15:35:54 2014] [notice] FastCGI: process manager initialized (pid 5318)
[Tue Jan 14 15:35:54 2014] [notice] Apache/2.2.22 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 configured -- resuming normal operations
Tue Jan 14 15:36:36 2014] [error] [client 10.35.78.30] (2)No such file or directory: FastCGI: failed to connect to server "/opt/OMERO/OMERO.server/var/omero.fcgi": connect() failed
[Tue Jan 14 15:36:36 2014] [error] [client 10.35.78.30] FastCGI: incomplete headers (0 bytes) received from server "/opt/OMERO/OMERO.server/var/omero.fcgi"


I am probably missing something, but I can't see what.

Any help will be appareciate
Thanks,
Benjamin
bpavie
 
Posts: 20
Joined: Fri Mar 01, 2013 5:57 pm

Re: Omero 5.0.0-beta1 and fastCGI

Postby atarkowska » Wed Jan 15, 2014 9:49 am

Hi Benjamin,

The first thing there is that you have a UNIX socket configuration when you are trying to use TCP.

Code: Select all
omero config set omero.web.application_server "fastcgi-tcp"

FastCGIExternalServer "/opt/OMERO/OMERO.server/var/omero.fcgi" -socket "/opt/OMERO/OMERO.server/var/django_fcgi.sock"


So configuration is definitely mismatched.

I am guessing, it came like this because apache config had been generated before setting "omero.web.application_server" to "fastcgi-tcp". Please either run "omero web config apache" again or just change the following:

Code: Select all
FastCGIExternalServer "/opt/OMERO/OMERO.server/var/omero.fcgi" -host 0.0.0.0:4080

I hope it will help.

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

Re: Omero 5.0.0-beta1 and fastCGI

Postby bpavie » Wed Jan 15, 2014 2:25 pm

Thanks Ola for your answer, it was exactly the problem, which is solved now...
Thanks again!
bpavie
 
Posts: 20
Joined: Fri Mar 01, 2013 5:57 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest