[ome-users] OMERO.web in 4.4 RC2

harri.jaalinoja at helsinki.fi harri.jaalinoja at helsinki.fi
Thu Jul 5 12:51:03 BST 2012


Hi Will,
I didn't figure out this yet, here's some more info:

This is the Nginx configuration for OMERO, after I replace old  
$OMERO_HOME with the new one.
[root at lmu-omero2 omero]# cat /etc/nginx/conf.d/00_omero.conf
     server {
         listen       80;
         server_name  lmu-omero2.biocenter.helsinki.fi;

          # weblitz django apps serve media from here
         location /appmedia {
             alias  
/opt/OMERO/OMERO.server-4.4.0-RC2-ice33-b3016/lib/python/omeroweb/media;
         }

         # django's admin media
         location /media {
             alias  
/opt/OMERO/OMERO.server-4.4.0-RC2-ice33-b3016/lib/python/omeroweb/media/django_admin_media;
         }

         location / {
             if (-f  
/opt/OMERO/OMERO.server-4.4.0-RC2-ice33-b3016/var/maintenance.html) {
                error_page 503 /maintenance.html;
                return 503;
             }
             fastcgi_pass 0.0.0.0:4080;
             fastcgi_param PATH_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;
         }

         location /maintenance.html {
             root /opt/OMERO/OMERO.server-4.4.0-RC2-ice33-b3016/var;
         }

     }


But now in 4.4-RC2 the directory given  
$OMERO_HOME/lib/python/omeroweb/media does not exist:
[omero at lmu-omero2 OMERO.server-4.4.0-RC2-ice33-b3016]$ ls  
lib/python/omeroweb/media
ls: lib/python/omeroweb/media: No such file or directory

In 4.3.3 it was there:
[omero at lmu-omero2 OMERO.server-4.4.0-RC2-ice33-b3016]$ ls  
../joshmoore-dev_4_3-copyfrom3/openmicroscopy/dist/lib/python/omeroweb/media
omeroweb  webgateway  webmobile  webpublic  webtest

How should I fix the Nginx configuration for 4.4?

Thanks,
Harri


Quoting "Will Moore" <will at lifesci.dundee.ac.uk>:

> Hi Harri -
>
>  Sorry, I didn't read your e-mail very carefully.
>
> Nginx is failing to find the static files.
> We haven't prepared the documentation on this properly yet, but you  
> need to use
>
> $ bin/omero config set omero.web.static_url <path to static media>
>
> The default is /static/
>
> See if you can work out from the 404s you're getting for static  
> files how this needs to be configured.
> I'll let you know when we've prepared some better docs on this,
>
>  Cheers,
>
>   Will.
>
>
>
> On 5 Jul 2012, at 10:37, Will Moore wrote:
>
>> Hi Harri,
>>
>> By default, with debug turned off, django will not serve static  
>> media from the development server.
>>
>> If you're running the development server, do
>>
>> $ bin/omero config set omero.web.debug True
>>
>>
>> Webadmin has kinda been merged under webclient UI, so we don't  
>> provide a login for both.
>>
>>
>> Hope that helps,
>>
>>  Will.
>>
>>
>>
>>
>> On 5 Jul 2012, at 10:28, harri.jaalinoja at helsinki.fi wrote:
>>
>>>
>>> Hi All,
>>>
>>> the web client looks a bit rough (see attachment). Is there some  
>>> change in 4.4  that requires a change in Nginx configuration? Or  
>>> something else I need to do differently from 4.3.3?
>>>
>>> Also, when I type the URL of the host,  
>>> lmu-omero2.biocenter.helsinki.fi, it is redirected to  
>>> lmu-omero2.biocenter.helsinki.fi/webclient. There is no more  
>>> choice between webadmin and webclient.
>>>
>>> Even though the interface looks weird, it does work, I can login.
>>>
>>> Regards,
>>> Harri
>>> <omeroweb.png>_______________________________________________
>>> ome-users mailing list
>>> ome-users at lists.openmicroscopy.org.uk
>>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>>
>> _______________________________________________
>> ome-users mailing list
>> ome-users at lists.openmicroscopy.org.uk
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>
>





More information about the ome-users mailing list