We're Hiring!

Problem after upgrade 5.06 to 5.1

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: Problem after upgrade 5.06 to 5.1

Postby atarkowska » Thu Apr 16, 2015 8:51 am

Could you please show us your access_log and request_log from arround [Wed Apr 15 17:41:39 2015]. All pasted above are 17:44. I need to know which request is trying to look at /var/www/html/static.

Is that not because of
Code: Select all
omero.web.login_logo=/static/webclient/image/logo_CIRB.jpg

I understand that you changed to /omero/static

Either try with omero prefix
Code: Select all
/omero/static/webclient/image/logo_CIRB.jpg
or I think you should set full URL https://www.openmicroscopy.org/site/sup ... login_logo


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

Re: Problem after upgrade 5.06 to 5.1

Postby phm » Thu Apr 16, 2015 9:15 am

atarkowska wrote:Hi Philippe,

I think I answered some of your posts before on our forum. Which webserver did you use with 5.0.6? I remember you had some issues with nginx and php-fpm. DId you manage to start it or you permanently switched to apache and didn't use nginx anymore?

Disabling SELinux seems to be a big security hole.
Ola

Hi Ola,
Yes in the past I was running on nginx and php-fpm server, however due to problems with ngnix and Huygens Remote Manager (HRM) with nginx, I go back to Apache 2.
I disabled SELinux just for testing of course and in fact I do not disabled completely SELinux but put in permissive mode (setenforce 0).
And with SELinux permissive mode of course I didn't have ssl-error_log and the ssl-reques_log is

Code: Select all
tail /var/log/httpd/ssl_request_log
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/webgateway/css/ome.login.css?_5.1.0-ice35-b40 HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/3rdparty/jquery-1.11.1.js HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/3rdparty/jquery-migrate-1.2.1.js HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/webgateway/js/ome.csrf.js?_5.1.0-ice35-b40 HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/webclient/javascript/jquery.infieldlabel-0.1.js HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/webclient/image/logo_CIRB.jpg HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/webgateway/img/nuvola_encrypted_grey16.png HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/webclient/image/logo_login_web.png HTTP/1.1" -
[16/Apr/2015:11:34:15 +0200] 192.168.188.18 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /omero/static/webgateway/img/OME_logo_grey_110.png HTTP/1.1" -


Philippe
Last edited by phm on Thu Apr 16, 2015 9:37 am, edited 2 times in total.
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Problem after upgrade 5.06 to 5.1

Postby phm » Thu Apr 16, 2015 9:26 am

atarkowska wrote:Could you please show us your access_log and request_log from arround [Wed Apr 15 17:41:39 2015]. All pasted above are 17:44. I need to know which request is trying to look at /var/www/html/static.

Is that not because of
Code: Select all
omero.web.login_logo=/static/webclient/image/logo_CIRB.jpg

I understand that you changed to /omero/static

Either try with omero prefix
Code: Select all
/omero/static/webclient/image/logo_CIRB.jpg
or I think you should set full URL https://www.openmicroscopy.org/site/sup ... login_logo


Hi Ola,
You right, I change the image logo to
Code: Select all
omero.web.login_logo=/omero/static/webclient/image/logo_CIRB.jpg

and the error disappears
Code: Select all
[Wed Apr 15 17:41:39 2015] [error] [client 192.168.188.18] File does not exist: /var/www/html/static, referer: https://omero.college-de-france.fr/omero/webclient/login/?url=%2Fomero%2Fwebclient%2F

But should I use with the 5.1 version omero.prefix or omero.web.login_logo command ?

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Problem after upgrade 5.06 to 5.1

Postby phm » Thu Apr 16, 2015 9:56 am

HI,

Finally, it seems that there are a lot of problems with SELinux and apache with Centos 6. One solution is to set permissive mode just for the apache domain (httpd_t) with semanage permissive -a httpd_t. That permit to do not set permissive mode for all system.

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Problem after upgrade 5.06 to 5.1

Postby atarkowska » Thu Apr 16, 2015 10:03 am

Code: Select all
omero.prefix
is used as the value of the SCRIPT_NAME environment variable in any HTTP request. https://docs.djangoproject.com/en/1.6/r ... cript-name

Code: Select all
omero.web.login_logo
customize webclient login page with your own logo. Logo images should ideally be 150 pixels high or less and will appear above the OMERO logo. You will need to host the image somewhere else and link to it with "http://www.openmicroscopy.org/site/logo.jpg".

I understand that you copy logo_CIRB.jpg to /opt/OMERO.server/lib/python/omeroweb/static/webclient/image everytime you upgrade the server. You may want to just put it in your default DocumentRoot or create new Directory?

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

Re: Problem after upgrade 5.06 to 5.1

Postby phm » Thu Apr 16, 2015 12:07 pm

Hi Ola,

atarkowska wrote:
Code: Select all
omero.prefix
is used as the value of the SCRIPT_NAME environment variable in any HTTP request. https://docs.djangoproject.com/en/1.6/r ... cript-name

Code: Select all
omero.web.login_logo
customize webclient login page with your own logo. Logo images should ideally be 150 pixels high or less and will appear above the OMERO logo. You will need to host the image somewhere else and link to it with "http://www.openmicroscopy.org/site/logo.jpg".

Yes
I understand that you copy logo_CIRB.jpg to /opt/OMERO.server/lib/python/omeroweb/static/webclient/image everytime you upgrade the server.

I made a script to copy some files from old version to new version

You may want to just put it in your default DocumentRoot or create new Directory?

It's a good idea.

Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Problem after upgrade 5.06 to 5.1

Postby sbesson » Fri Apr 17, 2015 8:20 am

Small correction,

the server configuration property to use for the SCRIPT_NAME environment variable is

Code: Select all
omero.web.prefix


See https://www.openmicroscopy.org/site/sup ... web-prefix

Best,
Sebastien
User avatar
sbesson
Team Member
 
Posts: 421
Joined: Tue Feb 28, 2012 7:20 pm

Previous

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 0 guests