atarkowska wrote:Hi Philippe,
To be able to identify what is exactly the problem, could you:
- send your omero nginx conf,
- send what is in the nginx logfile when you access the URL
- send output of your bin/omero config get
If this is due to the upgrade of php-fpm what exactly nginx log says ?
Ola
Hi Ola,
Thanks for the answer. First I didn't change the conf files either for OMERO or Nginx. And I have implemented the HRM web interface to do Huygens devolutions on the OMERO server and it's work.
However, here the conf files :
Nginx omero conf server {
listen 80 default;
server_name omero.college-de-france.fr;
rewrite ^
https://$server_name$request_uri? permanent;
}
server {
listen 443 default ssl;
server_name omero.college-de-france.fr;
ssl on;
ssl_certificate /etc/nginx/omero.college-de-france.fr.crt;
ssl_certificate_key /etc/nginx/omero.college-de-france.fr.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;
ssl_prefer_server_ciphers on;
# weblitz django apps serve media from here
location /static {
alias /opt/OMERO.server/lib/python/omeroweb/static;
}
location /omero {
if (-f /opt/OMERO.server/var/maintenance.html) {
error_page 503 /maintenance.html;
return 503;
}
fastcgi_pass 0.0.0.0:4080;
fastcgi_split_path_info ^(/omero)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_INFO $fastcgi_script_name;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
fastcgi_param SERVER_NAME $server_name;
fastcgi_param SERVER_PROTOCOL $server_protocol;
fastcgi_param SERVER_PORT $server_port;
fastcgi_pass_header Authorization;
fastcgi_intercept_errors on;
fastcgi_read_timeout 300;
# Uncomment if nginx SSL module is enabled or you are using nginx 1.1.11 or later
# -- See: #10273,
http://nginx.org/en/CHANGES fastcgi_param HTTPS $https;
}
location /maintenance.html {
root /opt/OMERO.server/var;
}
location / {
root /usr/share/nginx/html;
index index.html index.htm;
}
}
nginx access.log when I try to load the web omero page with Bad gateway192.168.188.18 - - [09/Dec/2014:17:48:08 +0100] "GET /omero/webclient/login/?url=%2Fomero%2Fwebclient%2F HTTP/1.1" 502 574 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Safari/537.36" "-"
nginx error.log2014/12/09 17:51:39 [crit] 33674#0: *219 stat() "/opt/OMERO.server/var/maintenance.html" failed (13: Permission denied), client: 192.168.188.18, server: omero.college-de-france.fr, request: "GET /omero/webclient/login/?url=%2Fomero%2Fwebclient%2F HTTP/1.1", host: "omero.college-de-france.fr"
2014/12/09 17:51:39 [crit] 33674#0: *219 connect() to 0.0.0.0:4080 failed (13: Permission denied) while connecting to upstream, client: 192.168.188.18, server: omero.college-de-france.fr, request: "GET /omero/webclient/login/?url=%2Fomero%2Fwebclient%2F HTTP/1.1", upstream: "fastcgi://0.0.0.0:4080", host: "omero.college-de-france.fr"
omero config getomero.data.dir=/OMERO
omero.db.name=omero_database
omero.db.pass=**************************************
omero.db.user=db_omero
omero.web.admins=["Philippe", "**************@**********"]
omero.web.application_server=fastcgi-tcp
omero.web.apps=["figure"]
omero.web.force_script_name=/omero
omero.web.login_logo=/static/webclient/image/logo_CIRB.jpg
omero.web.server_email=****************@******************
omero.web.ui.top_links=[["Figure", "figure_index", {"target": "figure"}]]
[omero@omero ~]$ omero config edit
[omero@omero ~]$ omero config get
omero.data.dir=/OMERO
omero.db.name=omero_database
omero.db.pass=********************************
omero.db.user=db_omero
omero.web.admins=["Philippe", "*************@******************"]
omero.web.application_server=fastcgi-tcp
omero.web.apps=["figure"]
omero.web.force_script_name=/omero
omero.web.login_logo=/static/webclient/image/logo_CIRB.jpg
omero.web.server_email=************@*************
omero.web.ui.top_links=[["Figure", "figure_index", {"target": "figure"}]]
php-fpm www-error.log is emptyand php-fpm error.log[09-déc.-2014 12:29:46] NOTICE: fpm is running, pid 14611
[09-déc.-2014 12:29:46] NOTICE: ready to handle connections
[09-déc.-2014 12:39:27] NOTICE: Terminating ...
[09-déc.-2014 12:39:27] NOTICE: exiting, bye-bye!
[09-déc.-2014 12:39:27] NOTICE: fpm is running, pid 15049
[09-déc.-2014 12:39:27] NOTICE: ready to handle connections
[09-déc.-2014 12:40:52] NOTICE: Terminating ...
[09-déc.-2014 12:40:52] NOTICE: exiting, bye-bye!
[09-déc.-2014 12:40:52] NOTICE: fpm is running, pid 15143
[09-déc.-2014 12:40:52] NOTICE: ready to handle connections
Philippe