Page 1 of 1

omero web won't start- Unknown command: 'collectstatic'

PostPosted: Wed Mar 08, 2017 11:32 pm
by Manz
Hey guys,

I'm doing a new install of OMERO.server-5.2.7-ice36-b40 on RHEL7. I can get the admin side to start but when I try to start web, I get

Unknown command: 'collectstatic'

I have read in django forums that it can be an error with your settings.py file (which I haven't altered). I've also read that it can be a case of your env settings being incorrect.

Would you check my env settings for glaring errors? Also included is diagnostics. (Usernames passwords hosts removed for obvious reasons).

Code: Select all
(v)# omero admin diagnostics

================================================================================
OMERO Diagnostics 5.2.7-ice36-b40
================================================================================
       
ERROR:omero.util.UpgradeCheck:HTTP Error 302: Found
Commands:   java -version                  1.8.0     (/bin/java)
Commands:   python -V                      2.7.5     (/bin/python)
Commands:   icegridnode --version          3.6.3     (/bin/icegridnode)
Commands:   icegridadmin --version         3.6.3     (/bin/icegridadmin)
Commands:   psql --version                 9.4.9     (/opt/rh/rh-postgresql94/root/bin/psql)

Server:     icegridnode                    running
Server:     Blitz-0                        active (pid = 36107, enabled)
Server:     DropBox                        active (pid = 36119, enabled)
Server:     FileServer                     active (pid = 36135, enabled)
Server:     Indexer-0                      active (pid = 36121, enabled)
Server:     MonitorServer                  active (pid = 36137, enabled)
Server:     OMERO.Glacier2                 active (pid = 36138, enabled)
Server:     OMERO.IceStorm                 active (pid = 36145, enabled)
Server:     PixelData-0                    active (pid = 36159, enabled)
Server:     Processor-0                    active (pid = 36130, enabled)
Server:     Tables-0                       active (pid = 36162, enabled)
Server:     TestDropBox                    inactive (enabled)

Log dir:    /opt/omero/var/log             exists
Log files:  Blitz-0.log                    393.0 KB      errors=10   warnings=1   
Log files:  DropBox.log                    1.0 KB       
Log files:  FileServer.log                 0.0 KB       
Log files:  Indexer-0.log                  2.0 KB        errors=0    warnings=1   
Log files:  MonitorServer.log              1.0 KB       
Log files:  OMEROweb.lock                  0.0 KB       
Log files:  OMEROweb.log                   0.0 KB       
Log files:  OMEROweb_brokenrequest.lock    0.0 KB       
Log files:  OMEROweb_brokenrequest.log     0.0 KB       
Log files:  PixelData-0.log                2.0 KB       
Log files:  Processor-0.log                31.0 KB       errors=10   warnings=0   
Log files:  Tables-0.log                   0.0 KB       
Log files:  TestDropBox.log                n/a
Log files:  master.err                     0.0 KB       
Log files:  master.out                     0.0 KB       
Log files:  Total size                     0.43 MB


Environment:OMERO_HOME=/opt/omero         
Environment:OMERO_NODE=(unset)             
Environment:OMERO_MASTER=(unset)           
Environment:OMERO_USERDIR=(unset)         
Environment:OMERO_TMPDIR=/tmp/omero/       
Environment:PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/usr/java/latest/bin:/usr/java/latest/bin:/usr/bin/:/bin:/opt/omero/bin:/opt/rh/rh-postgresql94/root/bin
Environment:PYTHONPATH=:/usr/lib64/python2.7/site-packages:/opt/omero/lib/python:/opt/omero/lib/python/omeroweb:/opt/omero/lib/python/omero/plugins
Environment:ICE_HOME=/usr/bin/             
Environment:LD_LIBRARY_PATH=/opt/rh/rh-postgresql94/root/lib64/
Environment:DYLD_LIBRARY_PATH=(unset)     

OMERO SSL port:4064                           
OMERO TCP port:4063                           
OMERO data dir:'/OMERO/'                      Exists? True   Is writable? True
OMERO temp dir:'/tmp/omero'                   Exists? True   Is writable? True   (Size: 0)

JVM settings: Blitz-${index}                -Xmx595m -XX:MaxPermSize=256m -XX:+IgnoreUnrecognizedVMOptions
JVM settings: Indexer-${index}              -Xmx396m -XX:MaxPermSize=256m -XX:+IgnoreUnrecognizedVMOptions
JVM settings: PixelData-${index}            -Xmx595m -XX:MaxPermSize=256m -XX:+IgnoreUnrecognizedVMOptions
JVM settings: Repository-${index}           -Xmx396m -XX:MaxPermSize=256m -XX:+IgnoreUnrecognizedVMOptions

OMERO.web status... [NOT STARTED]
Django version: 1.8.17
omero@gc-prd-omero (v)# grep -i 'err' var/log/Processor-0.log
2017-03-09 09:20:46,115 INFO  [                omero.processor.ProcessI] (Dummy-4   ) <proc:36480,rc=1,uuid=988f6424-64cd-4bb8-9945-361a0f3613ff> : Changed job status from Running to Error
2017-03-09 09:20:46,285 INFO  [                omero.processor.ProcessI] (Dummy-4   ) <proc:36480,rc=1,uuid=988f6424-64cd-4bb8-9945-361a0f3613ff> : Uploaded 504 bytes of /tmp/omero/omero_omero/36130/processP53ya3.dir/err to 8851
2017-03-09 09:20:47,207 INFO  [                omero.processor.ProcessI] (Dummy-6   ) <proc:36504,rc=1,uuid=05d32187-39e5-4af8-a1b2-4e7d26a3549b> : Changed job status from Running to Error
2017-03-09 09:20:47,328 INFO  [                omero.processor.ProcessI] (Dummy-6   ) <proc:36504,rc=1,uuid=05d32187-39e5-4af8-a1b2-4e7d26a3549b> : Uploaded 501 bytes of /tmp/omero/omero_omero/36130/process_yhRFf.dir/err to 8852
2017-03-09 09:20:48,219 INFO  [                omero.processor.ProcessI] (Dummy-8   ) <proc:36521,rc=1,uuid=c308dd56-d8ee-4395-a410-8376a82ecd6d> : Changed job status from Running to Error
2017-03-09 09:20:48,281 INFO  [                omero.processor.ProcessI] (Dummy-8   ) <proc:36521,rc=1,uuid=c308dd56-d8ee-4395-a410-8376a82ecd6d> : Uploaded 505 bytes of /tmp/omero/omero_omero/36130/processTcaBba.dir/err to 8853
2017-03-09 09:20:49,108 INFO  [                omero.processor.ProcessI] (Dummy-10  ) <proc:36539,rc=1,uuid=27cd66b6-f050-46e8-8a61-46a14062b2e0> : Changed job status from Running to Error
2017-03-09 09:20:49,167 INFO  [                omero.processor.ProcessI] (Dummy-10  ) <proc:36539,rc=1,uuid=27cd66b6-f050-46e8-8a61-46a14062b2e0> : Uploaded 505 bytes of /tmp/omero/omero_omero/36130/processwBjffL.dir/err to 8854
2017-03-09 09:20:49,919 INFO  [                omero.processor.ProcessI] (Dummy-12  ) <proc:36556,rc=1,uuid=ba1e05d2-d65e-43c1-93ef-0047b1dd863c> : Changed job status from Running to Error
2017-03-09 09:20:49,995 INFO  [                omero.processor.ProcessI] (Dummy-12  ) <proc:36556,rc=1,uuid=ba1e05d2-d65e-43c1-93ef-0047b1dd863c> : Uploaded 505 bytes of /tmp/omero/omero_omero/36130/processR2roO3.dir/err to 8855
2017-03-09 09:20:50,916 INFO  [                omero.processor.ProcessI] (Dummy-4   ) <proc:36573,rc=1,uuid=e926687a-9c0c-45ed-9532-d0a07117ada6> : Changed job status from Running to Error
cont...


omero@gc-prd-omero (v)# grep -i 'err' var/log/Blitz-0.log
2017-03-09 09:20:46,084 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Args:   [Error]
2017-03-09 09:20:47,184 INFO  [        ome.services.util.ServiceHandler] (l.Server-0)  Args:   [Error]
2017-03-09 09:20:48,203 INFO  [        ome.services.util.ServiceHandler] (l.Server-0)  Args:   [Error]
2017-03-09 09:20:49,089 INFO  [        ome.services.util.ServiceHandler] (l.Server-9)  Args:   [Error]
2017-03-09 09:20:49,900 INFO  [        ome.services.util.ServiceHandler] (l.Server-7)  Args:   [Error]
2017-03-09 09:20:50,891 INFO  [        ome.services.util.ServiceHandler] (l.Server-3)  Args:   [Error]
2017-03-09 09:20:52,058 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Args:   [Error]
2017-03-09 09:20:52,862 INFO  [        ome.services.util.ServiceHandler] (l.Server-8)  Args:   [Error]
2017-03-09 09:20:53,721 INFO  [        ome.services.util.ServiceHandler] (l.Server-2)  Args:   [Error]
2017-03-09 09:20:54,664 INFO  [        ome.services.util.ServiceHandler] (l.Server-9)  Args:   [Error]
2017-03-09 09:20:55,792 INFO  [        ome.services.util.ServiceHandler] (l.Server-2)  Args:   [Error]
2017-03-09 09:20:56,687 INFO  [        ome.services.util.ServiceHandler] (l.Server-0)  Args:   [Error]
2017-03-09 09:20:57,519 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Args:   [Error]
2017-03-09 09:20:58,346 INFO  [        ome.services.util.ServiceHandler] (l.Server-7)  Args:   [Error]
2017-03-09 09:20:59,105 INFO  [        ome.services.util.ServiceHandler] (l.Server-5)  Args:   [Error]
2017-03-09 09:20:59,939 INFO  [        ome.services.util.ServiceHandler] (l.Server-1)  Args:   [Error]
2017-03-09 09:21:00,818 INFO  [        ome.services.util.ServiceHandler] (l.Server-9)  Args:   [Error]



$ omero web start
Starting OMERO.web... INFO:__main__:Application Starting...
INFO:root:Processing custom settings for module omeroweb.settings
INFO:root:Processing custom settings for module omeroweb.settings
INFO:root:Processing custom settings for module omeroweb.settings
DEBUG:omeroweb.settings:ADMINS = [] (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER = 'wsgi-tcp' (source:omero.web.application_server)
DEBUG:omeroweb.settings:APPLICATION_SERVER_HOST = '127.0.0.1' (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_MAX_REQUESTS = 0 (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_PORT = 4080 (source:default)
DEBUG:omeroweb.settings:ADDITIONAL_APPS = [] (source:default)
DEBUG:omeroweb.settings:CACHES = {u'default': {u'BACKEND': u'django.core.cache.backends.dummy.DummyCache'}} (source:default)
DEBUG:omeroweb.settings:CHUNK_SIZE = 1048576 (source:default)
DEBUG:omeroweb.settings:DATABASES = {} (source:default)
DEBUG:omeroweb.settings:DEBUG = True (source:omero.web.debug)
DEBUG:omeroweb.settings:INDEX_TEMPLATE = None (source:default)
DEBUG:omeroweb.settings:LOGDIR = '/var/log/omero/' (source:omero.web.logdir)
DEBUG:omeroweb.settings:LOGIN_LOGO = None (source:default)
DEBUG:omeroweb.settings:LOGIN_REDIRECT = {} (source:default)
DEBUG:omeroweb.settings:LOGIN_VIEW = 'weblogin' (source:default)
DEBUG:omeroweb.settings:PAGE = 200 (source:default)
DEBUG:omeroweb.settings:PING_INTERVAL = 60000 (source:default)
DEBUG:omeroweb.settings:PIPELINE_CSS_COMPRESSOR = None (source:default)
DEBUG:omeroweb.settings:PIPELINE_JS_COMPRESSOR = None (source:default)
DEBUG:omeroweb.settings:STATICFILES_STORAGE = 'pipeline.storage.PipelineStorage' (source:default)
DEBUG:omeroweb.settings:FORCE_SCRIPT_NAME = None (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_ENABLED = False (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_KEY = u'********************' (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_TIMEOUT = 86400 (source:default)
DEBUG:omeroweb.settings:PUBLIC_ENABLED = True (source:omero.web.public.enabled)
DEBUG:omeroweb.settings:PUBLIC_PASSWORD = u'********************' (source:omero.web.public.password)
DEBUG:omeroweb.settings:PUBLIC_SERVER_ID = 1 (source:default)
DEBUG:omeroweb.settings:PUBLIC_URL_FILTER = <_sre.SRE_Pattern object at 0x551a8a0> (source:omero.web.public.url_filter)
DEBUG:omeroweb.settings:PUBLIC_USER = 'PublicGuest' (source:omero.web.public.user)
DEBUG:omeroweb.settings:SECRET_KEY = u'********************' (source:default)
DEBUG:omeroweb.settings:SECURE_PROXY_SSL_HEADER = [] (source:default)
DEBUG:omeroweb.settings:SERVER_LIST = [[u'localhost', 4064, u'omero']] (source:default)
DEBUG:omeroweb.settings:SESSION_COOKIE_AGE = 86400 (source:default)
DEBUG:omeroweb.settings:SESSION_COOKIE_DOMAIN = None (source:default)
DEBUG:omeroweb.settings:SESSION_COOKIE_NAME = None (source:default)
DEBUG:omeroweb.settings:SESSION_ENGINE = 'omeroweb.filesessionstore' (source:default)
DEBUG:omeroweb.settings:SESSION_EXPIRE_AT_BROWSER_CLOSE = True (source:default)
DEBUG:omeroweb.settings:STATIC_ROOT = '/opt/omero/lib/python/omeroweb/static' (source:default)
DEBUG:omeroweb.settings:STATIC_URL = '/static/' (source:default)
DEBUG:omeroweb.settings:STATICFILES_DIRS = [] (source:default)
DEBUG:omeroweb.settings:TEMPLATE_DIRS = [] (source:default)
DEBUG:omeroweb.settings:CENTER_PLUGINS = [] (source:default)
DEBUG:omeroweb.settings:RIGHT_PLUGINS = [[u'Acquisition', u'webclient/data/includes/right_plugin.acquisition.js.html', u'metadata_tab'], [u'Preview', u'webclient/data/includes/right_plugin.preview.js.html', u'preview_tab']] (source:default)
DEBUG:omeroweb.settings:TOP_LINKS = [[u'Data', u'webindex', {u'title': u'Browse Data via Projects, Tags etc'}], [u'History', u'history', {u'title': u'History'}], [u'Help', u'http://help.openmicroscopy.org/', {u'target': u'new', u'title': u'Open OMERO user guide in a new tab'}]] (source:default)
DEBUG:omeroweb.settings:USE_X_FORWARDED_HOST = False (source:default)
DEBUG:omeroweb.settings:VIEWER_VIEW = 'omeroweb.webclient.views.image_viewer' (source:default)
DEBUG:omeroweb.settings:WEBGATEWAY_CACHE = None (source:default)
DEBUG:omeroweb.settings:WSGI_ARGS = None (source:default)
DEBUG:omeroweb.settings:WSGI_TIMEOUT = 60 (source:default)
DEBUG:omeroweb.settings:WSGI_WORKERS = 5 (source:default)
DEBUG:omeroweb.settings:INSTALLED_APPS=[('django.contrib.staticfiles', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'omeroweb.feedback', 'omeroweb.webadmin', 'omeroweb.webclient', 'omeroweb.webgateway', 'omeroweb.webredirect', 'pipeline')]
Unknown command: 'collectstatic'
Type 'manage.py help' for usage.



bin/omero config list
omero.data.dir=/OMERO/
omero.db.host=Mydbhost
omero.db.name=Mydbname
omero.db.pass=Mydbpassword
omero.db.user=mMydbUsername
omero.web.application_server=wsgi-tcp
omero.web.debug=true
omero.web.logdir=/var/log/omero/
omero.web.port=80
omero.web.public.enabled=True
omero.web.public.password=mypublicpassword
omero.web.public.url_filter=^/(webtest|webclient/img_detail|webgateway|webclient/render_image|webclient/render_image_region|webclient/load_data|webclient/metadata_details|webclient/metadata_aquisition|webclient/metadata_preview|webclient/metadata_hierarchy|webclient/render_thumbnail|webclient/render_birds_eye_view|webclient/imgData|webclient/render_row_plot|webclient/render_col_plot|webclient/render_split_channel|webclient/action|webclient/batch_annotate|webclient/annotate_tags|webclient/annotate_comment|webclient/annotate_file|webclient/annotation|webclient/load_tags|webclient/image_as_map)
omero.web.public.user=mypublicuser
omeroweb.logdir=/var/log/




env
OMERO_DB_HOST=dbhostname
OMERO_WEB_PORT=80
OMERO_DATA_DIR=/OMERO/
OMERO_DB_USER=omerouser
JRE_HOME=/usr/java/latest
USER=omero
LD_LIBRARY_PATH=/opt/rh/rh-postgresql94/root/lib64/
OMERO_DB_NAME=omero_db_dev
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/puppetlabs/bin:/usr/java/latest/bin:/usr/java/latest/bin:/usr/bin/:/bin:/opt/omero/bin:/opt/rh/rh-postgresql94/root/bin
PWD=/opt/omero
JAVA_HOME=/usr/java/latest
OMERO_TMPDIR=/tmp/omero/
STATIC_ROOT=/opt/omero/lib/python/omeroweb/static/
PYTHONPATH=:/usr/lib64/python2.7/site-packages:/opt/omero/lib/python:/opt/omero/lib/python/omeroweb:/opt/omero/lib/python/omero/plugins
LOGNAME=omero
ICE_HOME=/usr/bin/
OMERO_HOME=/opt/omero




Re: omero web won't start- Unknown command: 'collectstatic'

PostPosted: Thu Mar 09, 2017 9:21 am
by atarkowska
Did you upgrade Django? What is your version?

Code: Select all
pip freeze | grep Django


Ola

Re: omero web won't start- Unknown command: 'collectstatic'

PostPosted: Fri Mar 10, 2017 12:43 am
by Manz
Turns out I had the correct django version- but the django python library was unreadable to the omero user. All fixed and web has started now. Thank you!
A

Re: omero web won't start- Unknown command: 'collectstatic'

PostPosted: Fri Mar 10, 2017 8:26 am
by mtbc
Thank you very much for coming back to let us know what the problem was. We're glad it's now working for you. :)

Cheers,
Mark