Page 1 of 1

Problem upgrading from 5.4.1 to 5.4.5

PostPosted: Thu Mar 29, 2018 4:37 pm
by phm
Hi,
I have a problem with omero web after upgrading Omero from 5.4.1 to 5.4.5. The home page didn't show the images or icons. I notice that in my old nginx conf the static location is :
Code: Select all
# weblitz django apps serve media from here
    location /omero/static {
        alias /home/omero/OMERO.server/lib/python/omeroweb/static;
    }

However in the 5.4.5 version there is no static folder
Code: Select all
ls -l OMERO.server-5.4.5-ice36-b83/lib/python/omeroweb/
total 208
drwxr-xr-x 2 omero omero  4096 29 mars  18:23 api
-rw-r--r-- 1 omero omero  7899 27 mars  11:11 connector.py
-rw-r--r-- 1 omero omero  8665 29 mars  16:41 connector.pyc
-rw-r--r-- 1 omero omero   278 27 mars  11:11 custom_context_processor.py
-rw-r--r-- 1 omero omero  3354 27 mars  11:11 custom_forms.py
-rw-r--r-- 1 omero omero 22728 27 mars  11:11 decorators.py
drwxr-xr-x 5 omero omero  4096 29 mars  18:23 feedback
-rw-r--r-- 1 omero omero  8848 27 mars  11:11 filesessionstore.py
-rw-r--r-- 1 omero omero  1413 27 mars  11:11 http.py
-rw-r--r-- 1 omero omero     0 27 mars  11:11 __init__.py
-rw-r--r-- 1 omero omero   143 29 mars  16:41 __init__.pyc
drwxr-xr-x 2 omero omero  4096 29 mars  18:23 license
-rw-r--r-- 1 omero omero  1939 27 mars  11:11 manage.py
-rw-r--r-- 1 omero omero 47523 27 mars  11:11 settings.py
-rw-r--r-- 1 omero omero 35622 29 mars  16:41 settings.pyc
drwxr-xr-x 2 omero omero  4096 29 mars  18:23 testlib
-rw-r--r-- 1 omero omero  3485 27 mars  11:11 urls.py
-rw-r--r-- 1 omero omero  1562 27 mars  11:11 utils.py
-rw-r--r-- 1 omero omero  1514 29 mars  16:41 utils.pyc
drwxr-xr-x 5 omero omero  4096 29 mars  18:23 webadmin
drwxr-xr-x 6 omero omero  4096 29 mars  18:23 webclient
drwxr-xr-x 5 omero omero  4096 29 mars  18:23 webgateway
drwxr-xr-x 2 omero omero  4096 29 mars  18:23 webredirect
-rw-r--r-- 1 omero omero  1739 27 mars  11:11 wsgi.py


In the older version 5.4.1 the staic folder exists
Code: Select all
ls -l OMERO.server-5.4.1-ice36-b75/lib/python/omeroweb/
total 220
drwxr-xr-x  2 omero omero  4096 11 déc.  17:34 api
-rw-r--r--  1 omero omero  7899 22 nov.  20:38 connector.py
-rw-r--r--  1 omero omero  8665  7 déc.  03:43 connector.pyc
-rw-r--r--  1 omero omero   278 22 nov.  20:38 custom_context_processor.py
-rw-r--r--  1 omero omero  3354 22 nov.  20:38 custom_forms.py
-rw-r--r--  1 omero omero 22728 22 nov.  20:38 decorators.py
drwxr-xr-x  5 omero omero  4096 11 déc.  17:34 feedback
-rw-r--r--  1 omero omero  8848 22 nov.  20:38 filesessionstore.py
-rw-r--r--  1 omero omero  7414 11 déc.  17:34 filesessionstore.pyc
-rw-r--r--  1 omero omero  1413 22 nov.  20:38 http.py
-rw-r--r--  1 omero omero     0 22 nov.  20:38 __init__.py
-rw-r--r--  1 omero omero   143  7 déc.  03:43 __init__.pyc
drwxr-xr-x  2 omero omero  4096 22 nov.  20:38 license
-rw-r--r--  1 omero omero  1939 22 nov.  20:38 manage.py
-rw-r--r--  1 omero omero 47526 22 nov.  20:38 settings.py
-rw-r--r--  1 omero omero 35622  7 déc.  03:43 settings.pyc
drwxrwxr-x 10 omero omero  4096 11 déc.  17:34 static
drwxr-xr-x  2 omero omero  4096 22 nov.  20:38 testlib
-rw-r--r--  1 omero omero  3485 22 nov.  20:38 urls.py
-rw-r--r--  1 omero omero  1562 22 nov.  20:38 utils.py
-rw-r--r--  1 omero omero  1514  7 déc.  03:43 utils.pyc
drwxr-xr-x  5 omero omero  4096 11 déc.  17:34 webadmin
drwxr-xr-x  6 omero omero  4096 11 déc.  17:34 webclient
drwxr-xr-x  5 omero omero  4096 11 déc.  17:34 webgateway
drwxr-xr-x  2 omero omero  4096 11 déc.  17:34 webredirect
-rw-r--r--  1 omero omero  1739 22 nov.  20:38 wsgi.py


How to "generate" the static folder or shuold I just copy the old folder to the new version.

Philippe

Re: Problem upgrading from 5.4.1 to 5.4.5

PostPosted: Fri Mar 30, 2018 11:55 am
by wmoore
Hi Philippe,

The static folder should be created when you first run OMERO.web with:

Code: Select all
$ bin/omero web start


Or you can run this to create the static directory and copy files into it without
starting OMERO.web

Code: Select all
$ bin/omero web syncmedia


Did you change the way you deployed OMERO.web between 5.4.1 and 5.4.5?
Are you deploying the OMERO server and OMERO.web together, or do you have a separate deployment for OMERO.web, e.g. as described http://docs.openmicroscopy.org/omero/5. ... ce3.6.html ?

Regards,

Will

Re: Problem upgrading from 5.4.1 to 5.4.5

PostPosted: Fri Mar 30, 2018 2:09 pm
by phm
wmoore wrote:Hi Philippe,

The static folder should be created when you first run OMERO.web with:

Code: Select all
$ bin/omero web start


Or you can run this to create the static directory and copy files into it without
starting OMERO.web

Code: Select all
$ bin/omero web syncmedia


Did you change the way you deployed OMERO.web between 5.4.1 and 5.4.5?
Are you deploying the OMERO server and OMERO.web together, or do you have a separate deployment for OMERO.web, e.g. as described http://docs.openmicroscopy.org/omero/5. ... ce3.6.html ?

Regards,

Will

Hi, Will

Omero web is deployed separetly from omero for older and new version.
The problem with images ans icons occurs either from systmtcl and omerwebenv
Best
Philippe

Re: Problem upgrading from 5.4.1 to 5.4.5

PostPosted: Wed Apr 04, 2018 9:37 am
by wmoore
What do you see when you try to create the static directory from omerowebvenv with:

Code: Select all
$ bin/omero web start
# or
$ bin/omero web syncmedia

?

Re: Problem upgrading from 5.4.1 to 5.4.5

PostPosted: Mon Apr 09, 2018 12:09 pm
by phm
wmoore wrote:What do you see when you try to create the static directory from omerowebvenv with:

Code: Select all
$ bin/omero web start
# or
$ bin/omero web syncmedia

?


I solve the problem.
Code: Select all
omero@omero:~$>omero web start
Invalid CACHES (omero.web.caches = '{"default": {"BACKEND": "django_redis.cache.\nRedisCache", "LOCATION": "redis://127.0.0.1:6379/0"}}'). Invalid control character at: line 1 column 45 (char 44). OMERO.web offers alternative session backends to automatically delete stale data using the cache session store backend, see :djangodoc:`Django cached session documentation <topics/http/sessions/#using-cached-sessions>` for more details.
omero@omero:~$>omero web syncmedia
Invalid CACHES (omero.web.caches = '{"default": {"BACKEND": "django_redis.cache.\nRedisCache", "LOCATION": "redis://127.0.0.1:6379/0"}}'). Invalid control character at: line 1 column 45 (char 44). OMERO.web offers alternative session backends to automatically delete stale data using the cache session store backend, see :djangodoc:`Django cached session documentation <topics/http/sessions/#using-cached-sessions>` for more details.

Code: Select all
omero@omero:~$>omero config set omero.web.caches

omero@omero:~$>omero web syncmedia
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/openwith.js'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/resources/LAGlogo.png'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/resources/cambridgeLogo.png'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/resources/fullscreen.png'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/FPBioimage.asm.code.unityweb'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/UnityLoader.js'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/FPBioimage.data.unityweb'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/full.png'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/FPBioimage.json'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/FPBioimage.asm.memory.unityweb'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/FPBioimage.asm.framework.unityweb'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/download.js'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/FPProgress.js'
Copying '/usr/lib/python2.7/site-packages/omero_fpbioimage/static/fpbioimage/FPBioimage/logo.png'
................
Copying '/home/omero/OMERO.server/lib/python/omeroweb/webgateway/static/3rdparty/JQuerySpinBtn-1.3a/img/spinbtn_updn.gif'
Copying '/home/omero/OMERO.server/lib/python/omeroweb/webgateway/static/3rdparty/underscore/underscore-1.8.3-min.js'
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'

710 static files copied to '/home/omero/OMERO.server/lib/python/omeroweb/static', 2 post-processed.



Then omero web is working
Thanks

Philippe