Page 2 of 2

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Tue Jul 28, 2015 11:24 pm
by VPrevosto
Hi Simon,
thanks for your reply.
The reason I tried omero web start is because the web server was apparently not running (as shown in omero diagnostics). Looking at omero web's help, I saw its restart function, I thought this could help -it did not ^^
Here's the output of omero config get --hide-password
Code: Select all
omero.data.dir=D:\\OmeroBinaries
omero.db.name=omero_database
omero.db.pass=********
omero.db.user=omero_user
omero.jvmcfg.max_system_memory=48000
omero.jvmcfg.percent.pixeldata=50
omero.jvmcfg.system_memory=60000
omero.pixeldata.threads=4
omero.web.cache_backend=file://C:/temp/


As for the command I used to install Omero and IIS, I just followed the sysadmin's procedure for Omero 5.1 (setting omero.db.name / omero.db.user / omero.db.pass, initializing the database then changing JVM settings)

If I browse to the Omero website (http://localhost/omero) I get an HTTP Error 500 documented here:
https://support.microsoft.com/en-us/kb/942031 . Since I'm running IIS 6.2, this information might also be relevant: https://support.microsoft.com/en-us/kb/311852. Would upgrading to IIS 7 help?
Thanks for your help.
Vincent
P.S.: just to be clear, omero.insight works, I just have trouble with the web server.

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Wed Jul 29, 2015 9:26 am
by atarkowska
Hi Vincent,

For IIS you do not use any of web start/stop commands. All should be handled from IIS Manager.
To be sure all unwanted fastcgi processes are killed stop everything first including omero (because it installs itself as a windows service).

Just try
Code: Select all
bin\omero admin stop
bin\omero web stop

In the worse case you may need to reboot the whole server but that shouldn't be necessary.

Stop IIS Default Web Site

Remove IIS config:
Code: Select all
bin\omero web iis --remove

Check if both entries: omero and static disappeared.

Start OMERO
Code: Select all
bin\omero admin start
bin\omero web iis


Start IIS Default Web Site

I hope that will help.
Ola

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Wed Jul 29, 2015 2:27 pm
by VPrevosto
Thanks Ola for the step-by-step procedure. It did not work at first, but in combination with disabling 32 bit support in IIs (as mentioned by previous contributors), it now works perfectly.
Thanks a lot for your patient help!

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Wed Jul 29, 2015 3:18 pm
by manics
Which isapi_wsgi package did you install- 32 or 64 bit?

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Wed Jul 29, 2015 4:08 pm
by VPrevosto
I did not realize there was a 64 bit isapi_wsgi package available. I was initially upgrading my Omero installation to 5.1, and didn't re-install isapi_wsgi. I did so later, just to be on the safe side, using the one linked from Omero's instruction page: https://code.google.com/p/isapi-wsgi/downloads/list.
Should I build a more recent version from https://github.com/hexdump42/isapi-wsgi ?

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Wed Jul 29, 2015 4:54 pm
by manics
The one linked from http://www.openmicroscopy.org/site/supp ... #using-iis is the one we've tested. Did you install it with
Code: Select all
python setup.py install


If so this should've worked.

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Wed Jul 29, 2015 5:15 pm
by VPrevosto
It is that one, and I installed it with python setup.py install. But my omero.web access only works if I disallow 32 bit support in IIS.

Re: OMERO.web error: .lock file being used by another proces

PostPosted: Wed Jul 29, 2015 5:20 pm
by manics
I'm not sure what's going on then. At least it's working!