We're Hiring!

Iviewer and fpbioimage web apps

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.

Iviewer and fpbioimage web apps

Postby phm » Wed Jun 06, 2018 3:06 pm

Hi,
I'm trying to install the web apps iviewer and fpbioimage. I followed the instructions on https://pypi.org. However, each time I add the instructions for open with
Code: Select all
bin/omero config append omero.web.open_with '["omero_iviewer", "omero_iviewer_index",
  {"supported_objects":["images", "dataset", "well"],
   "script_url": "omero_iviewer/openwith.js", "label": "OMERO.iviewer"}]'

or
Code: Select all
bin/omero config append omero.web.open_with '["omero_fpbioimage", "fpbioimage_index",
  {"script_url": "fpbioimage/openwith.js", "supported_objects": ["image"], "label": "FPBioimage"}]'

I got the message
Url: /omero/static/omero_iviewer/openwith.js?_=1528297029210
404 Not Found
nginx/1.12.2

And the open windows appear as a blank image.

I didn't have this type of error this figure apps.

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

Re: Iviewer and fpbioimage web apps

Postby kennethgillen » Wed Jun 06, 2018 4:04 pm

Hi Philippe,

Someone like Will may know what's happening here just from those messages, but until someone else chimes in, would it be possible to paste or link us to the current OMERO.web and NGINX configs?

The output of bin/omero config get --hide-password for your webclient

Your nginx.conf, and conf.d/omero.conf (or equivalent) files.

Also, the last few hundred lines (say 500?) from your nginx access log, and OMERO.web logs would be useful too, sanitising any identifying data like IP addresses.

Many thanks,

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Re: Iviewer and fpbioimage web apps

Postby wmoore » Wed Jun 06, 2018 9:17 pm

Have you restarted the web server after adding the apps to the omero.web.apps config?
You should see static files being copied over to the static folder.

e.g.
Code: Select all
$ omero web start
...
Copying '/path/to/omero-iviewer/plugin/omero_iviewer/static/omero_iviewer/openwith.js'
...
55 static files copied to '/path/to/python/omeroweb/static', 658 unmodified, 2 post-processed.
Clearing expired sessions. This may take some time... [OK]
Starting OMERO.web... [OK]

Hope that helps...
User avatar
wmoore
Team Member
 
Posts: 674
Joined: Mon May 18, 2009 12:46 pm

Re: Iviewer and fpbioimage web apps

Postby phm » Thu Jun 07, 2018 7:58 am

kennethgillen wrote:Hi Philippe,

Someone like Will may know what's happening here just from those messages, but until someone else chimes in, would it be possible to paste or link us to the current OMERO.web and NGINX configs?

The output of bin/omero config get --hide-password for your webclient

Your nginx.conf, and conf.d/omero.conf (or equivalent) files.

Also, the last few hundred lines (say 500?) from your nginx access log, and OMERO.web logs would be useful too, sanitising any identifying data like IP addresses.

Many thanks,

Kenny

Hi Kenny,
nginx acces.log
Code: Select all
192.168.111.247 - - [07/Jun/2018:09:28:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:29:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:30:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:31:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:32:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:33:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:34:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:35:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:36:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:37:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:38:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:39:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:40:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:41:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:42:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:43:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:44:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:45:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:46:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [07/Jun/2018:09:47:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"

(omerowebvenv) omero@omero:~$>OMERO.py/bin/omero config get
Code: Select all
omero.mail.config=true
omero.mail.host=smtps.college-de-france.fr
omero.mail.password=********
omero.mail.username=philippe.mailly@college-de-france
omero.web.application_server=wsgi-tcp
omero.web.apps=["omero_figure", "omero_iviewer", "omero_fpbioimage"]
omero.web.login_logo=https://omero.college-de-france.fr/omero/static/webclient/image/logo_CIRB.jpg
omero.web.open_with=[["Image viewer", "webgateway", {"supported_objects": ["image"], "script_url": "webclient/javascript/ome.openwith_viewer.js"}], ["omero_figure", "new_figure", {"supported_objects": ["images"], "target": "_blank", "label": "OMERO.figure"}]]
omero.web.prefix=/omero
omero.web.static_url=/omero/static/
omero.web.ui.top_links=[["Data", "webindex", {"title": "Browse Data via Projects, Tags etc"}], ["History", "history", {"title": "History"}], ["Help", "http://help.openmicroscopy.org/", {"target": "new", "title": "Open OMERO user guide in a new tab"}], ["Figure", "figure_index", {"target": "_blank", "title": "Open Figure in new tab"}]]

nginx.conf
Code: Select all
user  nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;

    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

    access_log  /var/log/nginx/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    keepalive_timeout  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
}



omero.conf
Code: Select all
upstream omeroweb_omero {
    server 127.0.0.1:4080 fail_timeout=0;
}

server {
    listen 80;
    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;
    keepalive_timeout   70;
    ssl                 on;
    ssl_certificate    /etc/nginx/omero.college-de-france.fr.crt;
    ssl_certificate_key   /etc/nginx/omero.college-de-france.fr.key;
    ssl_protocols       TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers         HIGH:!aNULL:!MD5;

    sendfile on;
    client_max_body_size 0;
    send_timeout 60s;

    # maintenance page serve from here
    location @maintenance_omero {
        root /home/omero/OMERO.server/etc/templates/error;
        try_files $uri /maintainance.html =502;
    }

    # weblitz django apps serve media from here
    location /omero/static {
        alias /home/omero/OMERO.server/lib/python/omeroweb/static;
    }

    location @proxy_to_app_omero {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_redirect off;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_pass http://omeroweb_omero;
    }

    location /omero {

        error_page 502 @maintenance_omero;
        # checks for static file, if not found proxy to app
        try_files $uri @proxy_to_app_omero;
    }

}


(omerowebvenv) omero@omero:~$>tail -n 50 OMERO.py/var/log/OMEROweb.log
Code: Select all
    serverExceptionClass =
    message = Internal exception
}
2018-06-06 16:51:58,571 ERROR [                omeroweb.webclient.views] (proc.24095) run_script():4353 Traceback (most recent call last):
  File "/home/omero/OMERO.py/lib/python/omeroweb/webclient/views.py", line 4334, in run_script
    sId, inputMap, None, conn.SERVICE_OPTS)
  File "/home/omero/OMERO.py/lib/python/omero/gateway/__init__.py", line 4647, in __call__
    return self.handle_exception(e, *args, **kwargs)
  File "/home/omero/OMERO.py/lib/python/omeroweb/webclient/webclient_gateway.py", line 2099, in handle_exception
    e, *args, **kwargs)
  File "/home/omero/OMERO.py/lib/python/omero/gateway/__init__.py", line 4644, in __call__
    return self.f(*args, **kwargs)
  File "/home/omero/OMERO.py/lib/python/omero_api_IScript_ice.py", line 909, in runScript
    return _M_omero.api.IScript._op_runScript.invoke(self, ((scriptID, inputs, waitSecs), _ctx))
InternalException: exception ::omero::InternalException
{
    serverStackTrace = Traceback (most recent call last):
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/util/decorators.py", line 68, in exc_handler
    rv = func(*args, **kwargs)
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/processor.py", line 938, in processJob
    client, session, job, current, params, iskill=True)
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/util/decorators.py", line 28, in handler
    return func(*args, **kwargs)
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/processor.py", line 985, in process
    iskill, omero_home=self.omero_home)
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/processor.py", line 131, in __init__
    self.make_files()
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/processor.py", line 175, in make_files
    self.dir = create_path("process", ".dir", folder=True)
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/util/temp_files.py", line 355, in create_path
    return manager.create_path(prefix, suffix, folder=folder)
  File "/home/omero/OMERO.server-5.4.5-ice36-b83/lib/python/omero/util/temp_files.py", line 273, in create_path
    name = tempfile.mkdtemp(prefix=prefix, suffix=suffix, dir=self.dir)
  File "/usr/lib64/python2.7/tempfile.py", line 329, in mkdtemp
    _os.mkdir(file, 0700)
OSError: [Errno 2] No such file or directory: '/tmp/omero_omero/36163/processo5rZdv.dir'

    serverExceptionClass =
    message = Internal exception
}

2018-06-06 16:51:58,601  INFO [                           omero.gateway] (proc.24095) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:52:02,426  INFO [                           omero.gateway] (proc.24079) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:52:54,485  INFO [                           omero.gateway] (proc.24079) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:53:54,481  INFO [                           omero.gateway] (proc.24080) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:54:54,482  INFO [                           omero.gateway] (proc.24080) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:55:54,760  INFO [                           omero.gateway] (proc.24079) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:56:54,482  INFO [                           omero.gateway] (proc.24095) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:56:57,675  INFO [                           omero.gateway] (proc.24095) connect():2213 created connection (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)
2018-06-06 16:56:57,684  INFO [                           omero.gateway] (proc.24095) close():1926 closed connecion (uuid=d7a23fa9-a966-4126-8637-f1c74a67baf8)


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

Re: Iviewer and fpbioimage web apps

Postby phm » Thu Jun 07, 2018 8:01 am

wmoore wrote:Have you restarted the web server after adding the apps to the omero.web.apps config?
You should see static files being copied over to the static folder.

e.g.
Code: Select all
$ omero web start
...
Copying '/path/to/omero-iviewer/plugin/omero_iviewer/static/omero_iviewer/openwith.js'
...
55 static files copied to '/path/to/python/omeroweb/static', 658 unmodified, 2 post-processed.
Clearing expired sessions. This may take some time... [OK]
Starting OMERO.web... [OK]

Hope that helps...

Hi,
Yes I restart omero web every time I change the configuration. I have also tried to remove the files in the static folder to be sure that new files has been copied and also the /tmp folder.
Philippe
phm
 
Posts: 185
Joined: Tue Mar 19, 2013 3:39 pm

Re: Iviewer and fpbioimage web apps

Postby kennethgillen » Thu Jun 07, 2018 9:13 am

Hi Philippe,

Could you show us the full output of omero web start, as Will has shown?

We would expect to see the openwith.js file being copied somewhere.

The NGINX config is set to serve it from `/home/omero/OMERO.server/lib/python/omeroweb/static` so we should see it being copied there.

Best,

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Re: Iviewer and fpbioimage web apps

Postby phm » Mon Jun 11, 2018 3:56 pm

kennethgillen wrote:Hi Philippe,

Could you show us the full output of omero web start, as Will has shown?

We would expect to see the openwith.js file being copied somewhere.

The NGINX config is set to serve it from `/home/omero/OMERO.server/lib/python/omeroweb/static` so we should see it being copied there.

Best,

Kenny


Hi Kenny,
Without deleting the files in the statics folder there is not copy of the openwith.js
Code: Select all
(omerowebvenv) omero@omero:~$>OMERO.py/bin/omero web restart
Stopping OMERO.web... [OK]
OMERO.web WSGI workers (PID 43226) killed.
Removed stale /home/omero/OMERO.py/var/django.pid
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'

0 static files copied to '/home/omero/OMERO.py/lib/python/omeroweb/static', 380 unmodified, 2 post-processed.
Clearing expired sessions. This may take some time... [OK]
Starting OMERO.web... [OK]


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

Re: Iviewer and fpbioimage web apps

Postby kennethgillen » Mon Jun 11, 2018 4:27 pm

Your output suggests statics being copied to:

/home/omero/OMERO.py/lib/python/omeroweb/static


but your NGINX config has:

# weblitz django apps serve media from here
location /omero/static {
alias /home/omero/OMERO.server/lib/python/omeroweb/static;
}


Could this be the problem? i.e. the statics are correctly in /home/omero/OMERO.py/lib/python/omeroweb/static but are not in /home/omero/OMERO.server/lib/python/omeroweb/static?

Can you check manually for the file with:

ls /home/omero/OMERO.py/lib/python/omeroweb/static | grep openwith


ls /home/omero/OMERO.server/lib/python/omeroweb/static | grep openwith


Best,

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Re: Iviewer and fpbioimage web apps

Postby phm » Tue Jun 12, 2018 1:39 pm

kennethgillen wrote:Your output suggests statics being copied to:

/home/omero/OMERO.py/lib/python/omeroweb/static


but your NGINX config has:

# weblitz django apps serve media from here
location /omero/static {
alias /home/omero/OMERO.server/lib/python/omeroweb/static;
}


Could this be the problem? i.e. the statics are correctly in /home/omero/OMERO.py/lib/python/omeroweb/static but are not in /home/omero/OMERO.server/lib/python/omeroweb/static?

Can you check manually for the file with:

ls /home/omero/OMERO.py/lib/python/omeroweb/static | grep openwith


ls /home/omero/OMERO.server/lib/python/omeroweb/static | grep openwith


Best,

Kenny

Hi Kenny,
I changed the line
# weblitz django apps serve media from here
location /omero/static {
alias /home/omero/OMERO.server/lib/python/omeroweb/static;
}

to
# weblitz django apps serve media from here
location /omero/static {
alias /home/omero/OMERO.py/lib/python/omeroweb/static;
}

Remove the /tmp/ and /home/phm/OMERO.py/lib/python/omeroweb/static files, start the nginx server and the omero web server as :
Code: Select all
omero@omero:~$>sudo rm -rf /tmp/*
omero@omero:~$>rm -rf OMERO.py/lib/python/omeroweb/static/*
omero@omero:~$>sudo systemctl restart nginx
omero@omero:~$>OMERO.py/bin/omero web start
Copying '/usr/lib/python2.7/site-packages/omero_figure/static/figure/figure.js'
Copying '/usr/lib/python2.7/site-packages/omero_figure/static/figure/templates.js'
Copying '/usr/lib/python2.7/site-packages/omero_figure/static/figure/3rdparty/json2.js'
Copying '/usr/lib/python2.7/site-packages/omero_figure/static/figure/3rdparty/backbone-1.0.0.js'
....
Copying '/home/omero/OMERO.py/lib/python/omeroweb/webclient/static/webclient/javascript/slider/slider.js'
Copying '/home/omero/OMERO.py/lib/python/omeroweb/webclient/static/webclient/javascript/slider/timer.js'
Post-processed 'omeroweb.viewer.min.css' as 'omeroweb.viewer.min.css'
Post-processed 'omeroweb.viewer.min.js' as 'omeroweb.viewer.min.js'

380 static files copied to '/home/omero/OMERO.py/lib/python/omeroweb/static', 2 post-processed.
Clearing expired sessions. This may take some time... [OK]
Starting OMERO.web... [OK]

ls /home/omero/OMERO.py/lib/python/omeroweb/static | grep openwith
return nothing !!!
Code: Select all
omero@omero:~$>OMERO.py/bin/omero config get
omero.mail.config=true
omero.mail.host=smtps.college-de-france.fr
omero.mail.password=********
omero.mail.username=philippe.mailly@college-de-france
omero.web.application_server=wsgi-tcp
omero.web.apps=["omero_figure", "omero_iviewer", "omero_fpbioimage"]
omero.web.login_logo=https://omero.college-de-france.fr/omero/static/webclient/image/logo_CIRB.jpg
omero.web.open_with=[["Image viewer", "webgateway", {"supported_objects": ["image"], "script_url": "webclient/javascript/ome.openwith_viewer.js"}], ["omero_figure", "new_figure", {"supported_objects": ["images"], "target": "_blank", "label": "OMERO.figure"}], ["omero_iviewer", "omero_iviewer_index", {"supported_objects": ["images", "dataset", "well"], "script_url": "omero_iviewer/openwith.js", "label": "OMERO.iviewer"}], ["omero_fpbioimage", "fpbioimage_index", {"supported_objects": ["image"], "script_url": "fpbioimage/openwith.js", "label": "FPBioimage"}]]
omero.web.prefix=/omero
omero.web.static_url=/omero/static/
omero.web.ui.top_links=[["Data", "webindex", {"title": "Browse Data via Projects, Tags etc"}], ["History", "history", {"title": "History"}], ["Help", "http://help.openmicroscopy.org/", {"target": "new", "title": "Open OMERO user guide in a new tab"}], ["Figure", "figure_index", {"target": "_blank", "title": "Open Figure in new tab"}]]


And now I got a Internal server error !!
Code: Select all
omero@omero:~$>sudo tail -n 10 /var/log/nginx/access.log
192.168.111.247 - - [12/Jun/2018:15:27:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [12/Jun/2018:15:28:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [12/Jun/2018:15:29:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [12/Jun/2018:15:30:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [12/Jun/2018:15:31:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [12/Jun/2018:15:32:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [12/Jun/2018:15:33:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.188.18 - - [12/Jun/2018:15:34:16 +0200] "GET /omero/webclient/login/?url=%2Fomero%2Fwebclient%2F HTTP/1.1" 500 141 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36" "-"
192.168.111.247 - - [12/Jun/2018:15:34:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"
192.168.111.247 - - [12/Jun/2018:15:35:55 +0200] "GET / HTTP/1.1" 301 185 "-" "check_http/v2.2 (monitoring-plugins 2.2)" "-"

Code: Select all
omero@omero:~$>tail -n 10  OMERO.py/var/log/OMEROweb.log
    self._urlconf_module = import_module(self.urlconf_name)
  File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
    __import__(name)
  File "/home/omero/OMERO.py/lib/python/omeroweb/urls.py", line 27, in <module>
    from django.apps import AppConfig
  File "/usr/lib/python2.7/site-packages/django/apps/__init__.py", line 1, in <module>
    from .config import AppConfig   # NOQA
  File "/usr/lib/python2.7/site-packages/django/apps/config.py", line 4, in <module>
    from django.core.exceptions import AppRegistryNotReady, ImproperlyConfigured
ImportError: cannot import name AppRegistryNotReady


Code: Select all
omero@omero:~$>OMERO.py/bin/omero config get
omero.mail.config=true
omero.mail.host=smtps.college-de-france.fr
omero.mail.password=********
omero.mail.username=philippe.mailly@college-de-france
omero.web.application_server=wsgi-tcp
omero.web.apps=["omero_figure", "omero_iviewer", "omero_fpbioimage"]
omero.web.login_logo=https://omero.college-de-france.fr/omero/static/webclient/image/logo_CIRB.jpg
omero.web.open_with=[["Image viewer", "webgateway", {"supported_objects": ["image"], "script_url": "webclient/javascript/ome.openwith_viewer.js"}], ["omero_figure", "new_figure", {"supported_objects": ["images"], "target": "_blank", "label": "OMERO.figure"}], ["omero_iviewer", "omero_iviewer_index", {"supported_objects": ["images", "dataset", "well"], "script_url": "omero_iviewer/openwith.js", "label": "OMERO.iviewer"}], ["omero_fpbioimage", "fpbioimage_index", {"supported_objects": ["image"], "script_url": "fpbioimage/openwith.js", "label": "FPBioimage"}]]
omero.web.prefix=/omero
omero.web.static_url=/omero/static/
omero.web.ui.top_links=[["Data", "webindex", {"title": "Browse Data via Projects, Tags etc"}], ["History", "history", {"title": "History"}], ["Help", "http://help.openmicroscopy.org/", {"target": "new", "title": "Open OMERO user guide in a new tab"}], ["Figure", "figure_index", {"target": "_blank", "title": "Open Figure in new tab"}]]


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

Re: Iviewer and fpbioimage web apps

Postby kennethgillen » Tue Jun 12, 2018 2:58 pm

Hi Philippe,

You've truncated the output after bin/omero web start, with `...`, if we can see the entire output, we can look for the openwith.js file being copied.

Also, more than just 10 lines of OMEROweb.log would be useful - perhaps the entire logfile? You can send it to us via our QA system at http://qa.openmicroscopy.org.uk/qa/upload/ if you need a way to transfer larger files.

ls /home/omero/OMERO.py/lib/python/omeroweb/static | grep openwith
return nothing !!!


Apologies - the openwith.js file should be visible further down the filesystem, e.g.

Code: Select all
find /home/omero/OMERO.py/lib/python/omeroweb | grep openwith
find /home/omero/OMERO.server/lib/python/omeroweb | grep openwith

And please run them both so we can compare what you had with what you have now.

When it was working, were you still starting OMERO.web from the OMERO.py directory via OMERO.py/bin/omero web start?

Thanks again,

Kenny
kennethgillen
 
Posts: 254
Joined: Mon Nov 05, 2012 3:39 pm

Next

Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest

cron