Page 1 of 1

OMERO.web 4.4.6 and fastcgi

PostPosted: Thu Apr 11, 2013 3:24 pm
by cmonjeau
Hello all,

I have tried to put the OMERO web application in production on my server (the development version is working well). I've followed the tutorial (https://www.openmicroscopy.org/site/support/omero4/sysadmins/unix/install-web.html) but I've a problem in the end. In my apache error_log file, I've this error when I tried to access to omero:

[Thu Apr 11 16:56:46 2013] [error] [client 131.254.14.106] (2)No such file or directory: FastCGI: stat() of "/opt/OMERO.server-4.4.6-ice34-b102/var/omero.fcgi" failed


my http.conf:

SetHandler fastcgi-script
<IfModule fastcgi-module>
AddHandler fastcgi-script fcgi fcg fpl
Options +ExecCGI
</IfModule>

RewriteEngine on
RewriteRule ^/?$ /omero [R]

FastCGIExternalServer "/opt/OMERO.server-4.4.6-ice34-b102/var/omero.fcgi" -host 0.0.0.0:4080

###
### Stanza for OMERO.web created 2013-04-09 15:26:53.905212
###

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

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

Alias /static "/opt/OMERO.server-4.4.6-ice34-b102/lib/python/omeroweb/static"
Alias /omero "/opt/OMERO.server-4.4.6-ice34-b102/var/omero.fcgi/"



my web app is launched with the pid file in $OMERO/var. It's my first time with mod_fastcgi and I don't know how it works.

Have you any ideas about this issue?

Thanks!
Cyril

Re: OMERO.web 4.4.6 and fastcgi

PostPosted: Thu Apr 11, 2013 3:41 pm
by wmoore
I'm not an expert on this, but since you mention omero.fcgi, I was reminded of this post: viewtopic.php?f=4&t=4782#p9651

Does that help at all? Is the omero.fcgi present and readable?

Will.

Re: OMERO.web 4.4.6 and fastcgi

PostPosted: Fri Apr 12, 2013 7:46 am
by cmonjeau
Hi,

I've already tried to add the omero.fcgi manually but I have got some problems with fastcgi.

[Fri Apr 12 09:36:24 2013] [error] [client 131.254.14.106] FastCGI: comm with (dynamic) server "/opt/OMERO.server-4.4.6-ice34-b102/var/omero.fcgi" aborted: (first read) idle timeout (20 sec)
[Fri Apr 12 09:36:24 2013] [error] [client 131.254.14.106] FastCGI: incomplete headers (0 bytes) received from server "/opt/OMERO.server-4.4.6-ice34-b102/var/omero.fcgi"


Apache has all rights to access and write in the var directory.
In the documentation of fastcgi, it is mentionned that :

The FastCgiExternalServer directive defines filename as an external FastCGI application. If filename does not begin with a slash (/) then it is assumed to be relative to the ServerRoot. The filename does not have to exist in the local filesystem. URIs that Apache resolves to this filename will be handled by this external FastCGI application.


I don't know why fastcgi wants this file in the filesystem.

Re: OMERO.web 4.4.6 and fastcgi

PostPosted: Fri Apr 12, 2013 9:55 am
by atarkowska
Hi Cyril

Do you have fastcgi library and fcgi apache module installed? Could you please confirm you have something like
Code: Select all
LoadModule fastcgi_module libexec/apache2/mod_fastcgi.so

in your httpd.conf?

Could you please check whether is any problem with apache via:
Code: Select all
apachectl -t


Thanks
Ola

Re: OMERO.web 4.4.6 and fastcgi

PostPosted: Tue Apr 30, 2013 2:50 pm
by cmonjeau
Hello,

I have this line in my httpd conf :
Code: Select all
LoadModule fastcgi_module modules/mod_fastcgi.so


Furthermore, when I execute this command line
Code: Select all
apachectl -t

I don't have any error :
Syntax OK


Cyril

Re: OMERO.web 4.4.6 and fastcgi

PostPosted: Wed May 01, 2013 7:54 am
by atarkowska
Hi Cyril

Could you give us brief information what operation system do you use?
When you go to http://your_host/omero what exactly the error you see on the web browser?

Ola