Page 1 of 1

omero cant find css files

PostPosted: Tue Jan 09, 2018 12:48 pm
by saleht
Hi guys,

my test server has a wired Beauvoir after coming back from my vacation, my Omero test server cant find css files, see the image
nginx error log showed :
Code: Select all
2018/01/09 13:37:11 [error] 6596#0: *14977 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webgateway/css/reset.css" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webgateway/css/reset.css?_5.4.1-ice36-b75 HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14978 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webgateway/css/ome.body.css" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webgateway/css/ome.body.css?_5.4.1-ice36-b75 HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14979 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webclient/css/dusty.css" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webclient/css/dusty.css?_5.4.1-ice36-b75 HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14980 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webclient/css/layout.css" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webclient/css/layout.css?_5.4.1-ice36-b75 HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14981 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webgateway/css/ome.login.css" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webgateway/css/ome.login.css?_5.4.1-ice36-b75 HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14982 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/3rdparty/jquery-1.11.1.js" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/3rdparty/jquery-1.11.1.js HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14977 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webgateway/js/ome.csrf.js" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webgateway/js/ome.csrf.js?_5.4.1-ice36-b75 HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14978 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webclient/javascript/jquery.infieldlabel-0.1.js" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webclient/javascript/jquery.infieldlabel-0.1.js HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14978 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webclient/image/custom_login_logo.png" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webclient/image/custom_login_logo.png HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14978 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webclient/image/logo_login_web.png" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webclient/image/logo_login_web.png HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"
2018/01/09 13:37:11 [error] 6596#0: *14977 open() "/home/omero/OMERO.py/lib/python/omeroweb/static/webgateway/img/OME_logo_grey_110.png" failed (2: No such file or directory), client: 134.99.190.4, server: localhost, request: "GET /static/webgateway/img/OME_logo_grey_110.png HTTP/1.1", host: "134.99.190.12", referrer: "http://134.99.190.12/webclient/login/?url=%2Fwebclient%2F"



i believe, my server use /home/omero/OMERO.server/lib/python/omeroweb
and not /home/omero/OMERO.py/lib/python/omeroweb

cheers Saleh

Re: omero cant find css files

PostPosted: Tue Jan 09, 2018 1:22 pm
by saleht
Hi guys,
i found the issue, i fixed it by changing two lines in the file
/etc/nignx/conf.f/omeroweb.conf

old
root /home/omero/OMERO.py/etc/templates/error;
alias /home/omero/OMERO.py/lib/python/omeroweb/static;



new
root /home/omero/OMERO.server/etc/templates/error;
alias /home/omero/OMERO.server/lib/python/omeroweb/static;


maybe i played before my vacation and forget it :D

anyway thx ;)
cheers,Saleh