If I turn ON the debug mode, than it is working.
Even the "setenforce 0" dos not help. Could it be a directory restrictions, nginx wrong setting or a wrong setting of omero.web.static_url?
(because the: setsebool -P httpd_read_user_content 1, setsebool -P httpd_enable_homedirs 1 - didn't helps.)
It is after upgrade on Centos 6 with python 2.7, Django 1.8, NGINX, gunicorn. According to the manual.
(nginx.log is OK)
OMEROweb.log:
- Code: Select all
2016-01-07 17:31:48,292 INFO [ omeroweb.webclient.views] (proc.11521) <module>():104 INIT '11521'
2016-01-07 17:31:48,429 WARNI [ django.request] (proc.11521) get_response():170 Not Found: /static/webgateway/css/reset.css
2016-01-07 17:31:48,430 WARNI [ omeroweb.feedback.views] (proc.11521) handler404():185 Not Found: /static/webgateway/css/reset.css
2016-01-07 17:31:48,442 WARNI [ django.request] (proc.11521) get_response():170 Not Found: /static/webclient/css/dusty.css
.....
2016-01-07 17:32:46,375 WARNI [ omeroweb.feedback.views] (proc.11514) handler404():185 Not Found: /static/webgateway/img/OME_logo_grey_110.png
bin/omero config get:
- Code: Select all
omero.data.dir=/home/omero/OMERODATA
omero.db.name=omero_database
omero.db.pass=********
omero.db.user=db_user
omero.web.application_server=wsgi-tcp
omero.web.application_server.port=4080
omero.web.debug=false
omero.web.static_url=/static/
NGINX is set according the manula (it is testing installetion):
- Code: Select all
upstream omeroweb {
server localhost:4080 fail_timeout=0;
}
server {
listen 80;
server_name $hostname;
sendfile on;
client_max_body_size 0;
# maintenance page serve from here
location @maintenance {
root /home/omero/OMERO.server/etc/templates/error;
try_files $uri /maintainance.html =502;
}
# weblitz django apps serve media from here
location /static {
alias /home/omero/OMERO.server/lib/python/omeroweb/static;
}
location @proxy_to_app {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://omeroweb;
}
location / {
error_page 502 @maintenance;
# checks for static file, if not found proxy to app
try_files $uri @proxy_to_app;
}
}
bin/omero admin diagnostics:
- Code: Select all
================================================================================
OMERO Diagnostics 5.2.1-ice35-b15
================================================================================
Commands: java -version 1.8.0 (/usr/bin/java)
Commands: python -V 2.7.11 (/home/omero/omeroenv/bin/python -- 2 others)
Commands: icegridnode --version 3.5.1 (/opt/Ice-3.5.1/bin/icegridnode -- 2 others)
Commands: icegridadmin --version 3.5.1 (/opt/Ice-3.5.1/bin/icegridadmin -- 2 others)
Commands: psql --version 8.4.20 (/usr/bin/psql)
Server: icegridnode running
Server: Blitz-0 active (pid = 10337, enabled)
Server: DropBox active (pid = 10359, enabled)
Server: FileServer active (pid = 10349, enabled)
Server: Indexer-0 active (pid = 10357, enabled)
Server: MonitorServer active (pid = 10354, enabled)
Server: OMERO.Glacier2 active (pid = 10352, enabled)
Server: OMERO.IceStorm active (pid = 10361, enabled)
Server: PixelData-0 active (pid = 10365, enabled)
Server: Processor-0 active (pid = 10368, enabled)
Server: Tables-0 inactive (disabled)
Server: TestDropBox inactive (enabled)
Log dir: /home/omero/OMERO.server-5.2.1-ice35-b15/var/log exists
Log files: Blitz-0.log 4.0 MB errors=147 warnings=815
Log files: DropBox.log 16.0 KB errors=0 warnings=6
Log files: FileServer.log 2.0 KB
Log files: Indexer-0.log 287.0 KB errors=52 warnings=819
Log files: MonitorServer.log 9.0 KB
Log files: OMEROweb.lock 0.0 KB
Log files: OMEROweb.log 560.0 KB errors=2 warnings=1636
Log files: OMEROweb_brokenrequest.lock 0.0 KB
Log files: OMEROweb_brokenrequest.log 147.0 KB errors=0 warnings=801
Log files: PixelData-0.log 279.0 KB errors=39 warnings=812
Log files: Processor-0.log 411.0 KB errors=112 warnings=5
Log files: Tables-0.log n/a
Log files: TestDropBox.log n/a
Log files: master.err 3.0 KB errors=7 warnings=9
Log files: master.out 0.0 KB
Log files: Total size 6.71 MB
Environment:OMERO_HOME=(unset)
Environment:OMERO_NODE=(unset)
Environment:OMERO_MASTER=(unset)
Environment:OMERO_USERDIR=(unset)
Environment:OMERO_TMPDIR=(unset)
Environment:PATH=/opt/Ice-3.5.1/bin:/home/omero/omeroenv/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/root/bin
Environment:PYTHONPATH=/opt/Ice-3.5.1/python:
Environment:ICE_HOME=(unset)
Environment:LD_LIBRARY_PATH=(unset)
Environment:DYLD_LIBRARY_PATH=(unset)
OMERO SSL port:4064
OMERO TCP port:4063
OMERO data dir:'/home/omero/OMERODATA' Exists? True Is writable? True
OMERO temp dir:'/home/omero/omero/tmp' Exists? True Is writable? True (Size: 0)
JVM settings: Blitz-${index} -Xmx602m -XX:MaxPermSize=512m -XX:+IgnoreUnrecognizedVMOptions
JVM settings: Indexer-${index} -Xmx401m -XX:MaxPermSize=512m -XX:+IgnoreUnrecognizedVMOptions
JVM settings: PixelData-${index} -Xmx602m -XX:MaxPermSize=512m -XX:+IgnoreUnrecognizedVMOptions
JVM settings: Repository-${index} -Xmx401m -XX:MaxPermSize=512m -XX:+IgnoreUnrecognizedVMOptions
OMERO.web status... [RUNNING] (PID 11508)
Django version: 1.8.8
Thanks for a help!!