OMERO.web error: .lock file being used by another process

Hi all,
I'm attempting to start OMERO.web after configuring it to run on IIS7.5 as detailed in the System Administrator documents.
After the setup, I attempted to run the web server in a command prompt with administrator rights. However, I received the following error (debug has been turned on, scroll to the end of this output for the error message).
The development Django server will work, however.
I checked and noted that both my user account and the administrator have full access rights to C:\Users\douglass\AppData\Roaming\omero\tmp\omero_douglass\1180\
My system details, software versions, and OMERO admin diagnostics output is below.
Could anyone explain how to fix this problem? Thanks!
Kyle
----------
Software versions
(All are 64 bit except when the 64 bit binaries are not available.)
----------
System details
----------
OMERO Diagnostics
----------
My thoughts:
Could the problem come from unset environment variables, like OMERO_TEMPDIR?
In the documentation for the IIS setup (found here: https://www.openmicroscopy.org/site/support/omero5/sysadmins/windows/install-web.html#using-iis), there's a curious command involving the Django web server. I would have thought that we should be setting configuration properties related to IIS. I copied the command set straight from the docs and pasted it below:
Finally, this may perhaps relate to a current thread on the listserv, where someone else is trying to get OMERO.web running on a very similar system: http://lists.openmicroscopy.org.uk/pipermail/ome-users/2014-April/004324.html
I'm attempting to start OMERO.web after configuring it to run on IIS7.5 as detailed in the System Administrator documents.
After the setup, I attempted to run the web server in a command prompt with administrator rights. However, I received the following error (debug has been turned on, scroll to the end of this output for the error message).
The development Django server will work, however.
- Code: Select all
C:\OMERO.server>bin\omero web start
INFO:__main__:Application Starting...
INFO:root:Processing custom settings for module omeroweb.settings
DEBUG:omeroweb.settings:ADMINS = [] (source:default)
DEBUG:omeroweb.settings:ALLOWED_HOSTS = [u'*'] (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER = 'fastcgi-tcp' (source:omero.web.app
lication_server)
DEBUG:omeroweb.settings:APPLICATION_SERVER_HOST = '0.0.0.0' (source:default)
DEBUG:omeroweb.settings:APPLICATION_SERVER_MAX_REQUESTS = 400 (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.b
ackends.dummy.DummyCache'}} (source:default)
DEBUG:omeroweb.settings:DATABASES = {} (source:default)
DEBUG:omeroweb.settings:DEBUG = True (source:omero.web.debug)
DEBUG:omeroweb.settings:EMAIL_HOST = None (source:default)
DEBUG:omeroweb.settings:EMAIL_HOST_PASSWORD = u'********************' (source:de
fault)
DEBUG:omeroweb.settings:EMAIL_HOST_USER = None (source:default)
DEBUG:omeroweb.settings:EMAIL_PORT = None (source:default)
DEBUG:omeroweb.settings:EMAIL_SUBJECT_PREFIX = '[OMERO.web] ' (source:default)
DEBUG:omeroweb.settings:EMAIL_USE_TLS = False (source:default)
DEBUG:omeroweb.settings:FORCE_SCRIPT_NAME = None (source:default)
DEBUG:omeroweb.settings:INDEX_TEMPLATE = None (source:default)
DEBUG:omeroweb.settings:LOGDIR = 'C:/OMERO.server/var/log' (source:default)
DEBUG:omeroweb.settings:LOGIN_VIEW = 'weblogin' (source:default)
DEBUG:omeroweb.settings:NANOXML_JAR = 'nanoxml.jar' (source:default)
DEBUG:omeroweb.settings:OPEN_ASTEX_MAX_SIDE = 400 (source:default)
DEBUG:omeroweb.settings:OPEN_ASTEX_MAX_VOXELS = 27000000 (source:default)
DEBUG:omeroweb.settings:OPEN_ASTEX_MIN_SIDE = 20 (source:default)
DEBUG:omeroweb.settings:PING_INTERVAL = 60000 (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_ENABLED = False (source:default)
DEBUG:omeroweb.settings:PUBLIC_CACHE_KEY = u'********************' (source:defau
lt)
DEBUG:omeroweb.settings:PUBLIC_CACHE_TIMEOUT = 86400 (source:default)
DEBUG:omeroweb.settings:PUBLIC_ENABLED = False (source:default)
DEBUG:omeroweb.settings:PUBLIC_PASSWORD = u'********************' (source:defaul
t)
DEBUG:omeroweb.settings:PUBLIC_SERVER_ID = 1 (source:default)
DEBUG:omeroweb.settings:PUBLIC_URL_FILTER = <_sre.SRE_Pattern object at 0x000000
0004BE0DD8> (source:default)
DEBUG:omeroweb.settings:PUBLIC_USER = None (source:default)
DEBUG:omeroweb.settings:SCRIPTS_TO_IGNORE = [u'\\omero\\figure_scripts\\Movie_Fi
gure.py', u'\\omero\\figure_scripts\\Split_View_Figure.py', u'\\omero\\figure_sc
ripts\\Thumbnail_Figure.py', u'\\omero\\figure_scripts\\ROI_Split_Figure.py', u'
\\omero\\export_scripts\\Make_Movie.py', u'\\omero\\setup_scripts\\FLIM_initiali
se.py', u'\\omero\\import_scripts\\Populate_ROI.py'] (source:default)
DEBUG:omeroweb.settings:SEND_BROKEN_LINK_EMAILS = True (source:default)
DEBUG:omeroweb.settings:SERVER_EMAIL = None (source:default)
DEBUG:omeroweb.settings:SERVER_LIST = [[u'localhost', 4064, u'omero']] (source:d
efault)
DEBUG:omeroweb.settings:SESSION_ENGINE = 'django.contrib.sessions.backends.cache
' (source:omero.web.session_engine)
DEBUG:omeroweb.settings:STATIC_URL = '/static/' (source:default)
DEBUG:omeroweb.settings:STATICFILES_DIRS = [] (source:default)
DEBUG:omeroweb.settings:CENTER_PLUGINS = [] (source:default)
DEBUG:omeroweb.settings:UI_MENU_DROPDOWN = {u'ALL': u'All members', u'COLLEAGUES
': u'Members', u'LEADERS': u'Owners'} (source:default)
DEBUG:omeroweb.settings:RIGHT_PLUGINS = [[u'Acquisition', u'webclient/data/inclu
des/right_plugin.acquisition.js.html', u'metadata_tab'], [u'Preview', u'webclien
t/data/includes/right_plugin.preview.js.html', u'preview_tab']] (source:default)
DEBUG:omeroweb.settings:TOP_LINKS = [] (source:default)
DEBUG:omeroweb.settings:VIEWER_INITIAL_ZOOM_LEVEL = None (source:default)
DEBUG:omeroweb.settings:WEBGATEWAY_CACHE = None (source:default)
DEBUG:omeroweb.settings:WEBSTART_CLASS = 'org.openmicroscopy.shoola.Main' (sourc
e:default)
DEBUG:omeroweb.settings:WEBSTART_HEAP = '1024m' (source:default)
DEBUG:omeroweb.settings:WEBSTART_HOMEPAGE = 'http://www.openmicroscopy.org' (sou
rce:default)
DEBUG:omeroweb.settings:WEBSTART_HOST = 'localhost' (source:default)
DEBUG:omeroweb.settings:WEBSTART_ICON = 'webstart/img/icon-omero-insight.png' (s
ource:default)
DEBUG:omeroweb.settings:WEBSTART_JAR = 'omero.insight.jar' (source:default)
DEBUG:omeroweb.settings:WEBSTART_PORT = '4064' (source:default)
DEBUG:omeroweb.settings:WEBSTART_TITLE = 'OMERO.insight' (source:default)
DEBUG:omeroweb.settings:WEBSTART_VENDOR = 'The Open Microscopy Environment' (sou
rce:default)
DEBUG:omeroweb.settings:INSTALLED_APPS=[('django.contrib.staticfiles', 'django.c
ontrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.
contrib.sites', 'omeroweb.feedback', 'omeroweb.webadmin', 'omeroweb.webclient',
'omeroweb.webgateway', 'omeroweb.webtest', 'omeroweb.webredirect', 'omeroweb.web
start')]
0 static files copied, 818 unmodified.
Starting OMERO.web...
WARNING: Unless you **really** know what you are doing you should NOT be
using bin\omero web start on Windows with FastCGI.
[OK]
ERROR:omero.util.TempFileManager:rmtree error: remove('C:\Users\douglass\AppData
\Roaming\omero\tmp\omero_douglass\1180\.lock') => [Error 32] The process cannot
access the file because it is being used by another process: u'C:\\Users\\dougla
ss\\AppData\\Roaming\\omero\\tmp\\omero_douglass\\1180\\.lock'
ERROR:omero.util.TempFileManager:rmtree error: rmdir('C:\Users\douglass\AppData\
Roaming\omero\tmp\omero_douglass\1180') => [Error 145] The directory is not empt
y: u'C:\\Users\\douglass\\AppData\\Roaming\\omero\\tmp\\omero_douglass\\1180'
I checked and noted that both my user account and the administrator have full access rights to C:\Users\douglass\AppData\Roaming\omero\tmp\omero_douglass\1180\
My system details, software versions, and OMERO admin diagnostics output is below.
Could anyone explain how to fix this problem? Thanks!
Kyle
----------
Software versions
(All are 64 bit except when the 64 bit binaries are not available.)
- Java SE Development Kit 7u51
Python 2.6.6
Ice 3.4.2
PostgreSQL 9.3.3
IIS 7.5.7600.16385
----------
System details
- Dell Precision 7500
Windows Server 2008 R2 Enterprise w/Service Pack 1, 64 bit
Intel Xeon X5690 3.47 GHz
48.0 GB RAM
----------
OMERO Diagnostics
- Code: Select all
C:\OMERO.server>bin\omero admin diagnostics
================================================================================
OMERO Diagnostics 5.0.0-ice34-b19
================================================================================
Commands: java -version 1.7.0 (C:\Windows\SysWOW64\java.E
XE)
Commands: python -V 2.6.6 (C:\Python26\python.EXE)
Commands: icegridnode --version 3.4.2 (C:\ZeroC\Ice-3.4.2\bin\x64
\icegridnode.EXE)
Commands: icegridadmin --version 3.4.2 (C:\ZeroC\Ice-3.4.2\bin\x64
\icegridadmin.EXE)
Commands: psql --version 9.3.3 (C:\Program Files\PostgreSQ
L\9.3\bin\psql.EXE)
Server: icegridnode running
Server: Blitz-0 active (pid = 6316, enabled)
Server: DropBox inactive (disabled)
Server: FileServer active (pid = 4940, enabled)
Server: Indexer-0 active (pid = 4944, enabled)
Server: MonitorServer inactive (disabled)
Server: OMERO.Glacier2 active (pid = 4704, enabled)
Server: OMERO.IceStorm active (pid = 1632, enabled)
Server: PixelData-0 active (pid = 720, enabled)
Server: Processor-0 active (pid = 6760, enabled)
Server: Tables-0 active (pid = 6312, enabled)
Server: TestDropBox inactive (enabled)
Server: OMERO.master active (running as LocalSystem)
OMERO: SSL port 4064
OMERO: TCP port 4063
Log dir: C:\OMERO.server\var\log exists
Log files: Blitz-0.log 7.0 MB errors=55 warnings=35
Log files: DropBox.log 12.0 KB errors=48 warnings=0
Log files: FileServer.log 5.0 KB
Log files: Indexer-0.log 5.0 MB errors=70 warnings=29
Log files: MonitorServer.log 14.0 KB errors=32 warnings=0
Log files: OMEROweb.log 343.0 KB errors=39 warnings=1
Log files: OMEROweb_request.log 2.0 KB errors=6 warnings=0
Log files: PixelData-0.log 164.0 KB errors=70 warnings=28
Log files: Processor-0.log 94.0 KB errors=40 warnings=29
Log files: Tables-0.log 99.0 KB errors=40 warnings=29
Log files: TestDropBox.log n/a
Log files: master.err 0.0 KB
Log files: master.out 0.0 KB
Log files: Total size 13.23 MB
Environment:OMERO_HOME=(unset)
Environment:OMERO_NODE=(unset)
Environment:OMERO_MASTER=(unset)
Environment:OMERO_TEMPDIR=(unset)
Environment:PATH=C:\Python26;C:\Program Files (x86)\GnuWin32\bin;C:\Program File
s\PostgreSQL\9.3\bin;C:\Windows\SysWOW64;C:\Program Files (x86)\Common Files\Int
el\Shared Libraries\redist\ia32\mpirt;C:\Program Files (x86)\Common Files\Intel\
Shared Libraries\redist\ia32\compiler;C:\Windows\system32;C:\Windows;C:\Windows\
System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Micro
soft\Web Platform Installer\;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET We
b Pages\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program F
iles\Microsoft Windows Performance Toolkit\;C:\Program Files (x86)\QuickTime\QTS
ystem\;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files\MATLAB\R20
13b\runtime\win64;C:\Program Files\MATLAB\R2013b\bin;C:\ZeroC\Ice-3.4.2\bin\x64;
C:\Ruby193\bin
Environment:ICE_HOME=(unset)
Environment:LD_LIBRARY_PATH=(unset)
Environment:DYLD_LIBRARY_PATH=(unset)
OMERO data dir: 'C:\\OMERO' Exists? True Is writable? True
OMERO temp dir: 'C:\Users\douglass\AppData\Roaming\omero\tmp' Exists? True
Is writable? True (Size: 0)
OMERO.web status... [NOT STARTED]
----------
My thoughts:
Could the problem come from unset environment variables, like OMERO_TEMPDIR?
In the documentation for the IIS setup (found here: https://www.openmicroscopy.org/site/support/omero5/sysadmins/windows/install-web.html#using-iis), there's a curious command involving the Django web server. I would have thought that we should be setting configuration properties related to IIS. I copied the command set straight from the docs and pasted it below:
- Code: Select all
C:\omero_dist>bin\omero config set omero.web.session_engine "django.contrib.sessions.backends.cache"
C:\omero_dist>bin\omero config set omero.web.cache_backend "file://C:/windows/temp/"
C:\omero_dist>bin\omero web iis
Finally, this may perhaps relate to a current thread on the listserv, where someone else is trying to get OMERO.web running on a very similar system: http://lists.openmicroscopy.org.uk/pipermail/ome-users/2014-April/004324.html