We're Hiring!

OMERO.web 4.4.6 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.web 4.4.6 and fastcgi

Postby cmonjeau » Thu Apr 11, 2013 3:24 pm

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
cmonjeau
 
Posts: 3
Joined: Tue Sep 04, 2012 12:23 pm

Re: OMERO.web 4.4.6 and fastcgi

Postby wmoore » Thu Apr 11, 2013 3:41 pm

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.
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: OMERO.web 4.4.6 and fastcgi

Postby cmonjeau » Fri Apr 12, 2013 7:46 am

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.
cmonjeau
 
Posts: 3
Joined: Tue Sep 04, 2012 12:23 pm

Re: OMERO.web 4.4.6 and fastcgi

Postby atarkowska » Fri Apr 12, 2013 9:55 am

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
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: OMERO.web 4.4.6 and fastcgi

Postby cmonjeau » Tue Apr 30, 2013 2:50 pm

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
cmonjeau
 
Posts: 3
Joined: Tue Sep 04, 2012 12:23 pm

Re: OMERO.web 4.4.6 and fastcgi

Postby atarkowska » Wed May 01, 2013 7:54 am

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
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest