We're Hiring!

Starting web interface in Win Server 2008 SP2 32 bit

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

Starting web interface in Win Server 2008 SP2 32 bit

Postby blin » Tue Mar 20, 2012 2:16 am

Hi all, this has been an interesting journey to even attempt to get this to work. I'd appreciate any help on getting this last bit through :D

So, as the title suggests, I'm installing this in Win Server 08, SP2 32 bit. I have installed IIS 7 using default services selected in addition to CGI, ISAPI extensions and filters.
The omero server is started and the database was created, and I registered it to http://localhost:80/
When I go to this page in either IE or Chrome the first time per system restart, it shows the super helpful error:
"A server error occurred. Please contact the administrator."
If I then try to go to the page again, it takes a god awful long time spinning, and then pretty much sits there.
These are the settings used:

Code: Select all
C:\omero_dist\bin>omero config get
omero.web.application_host=http://localhost:80/
omero.web.application_server=fastcgi-tcp
omero.web.cache_backend=file//C:/windows/temp
omero.web.session_engine=django.contrib.sessions.backends.cache


I installed PostgreSQL 8.3
Java JDK SE 7u3
Ice-3.3.1-VC80
ActivePython 2.5.6.10
PIL: 1.1.7

Thanks for any troubleshooting ideas!

Brian
blin
 
Posts: 4
Joined: Tue Mar 20, 2012 2:02 am

Re: Starting web interface in Win Server 2008 SP2 32 bit

Postby atarkowska » Tue Mar 20, 2012 1:45 pm

Hi, Could you attach logfiles from OMERO_DIR/var/log

Thanks
Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Starting web interface in Win Server 2008 SP2 32 bit

Postby blin » Tue Mar 20, 2012 2:38 pm

Browsed through it while uploading and maybe this is the error that is important?:
Code: Select all
Tue, 20 Mar 2012 01:59:04 omero.util.TempFileManager ERROR    rmtree error: remove('C:\Users\Administrator\AppData\Roaming\omero\tmp\omero_Administrator\3032\.lock') => [Error 32] The process cannot access the file because it is being used by another process: u'C:\\Users\\Administrator\\AppData\\Roaming\\omero\\tmp\\omero_Administrator\\3032\\.lock'
Tue, 20 Mar 2012 01:59:04 omero.util.TempFileManager ERROR    rmtree error: rmdir('C:\Users\Administrator\AppData\Roaming\omero\tmp\omero_Administrator\3032') => [Error 145] The directory is not empty: u'C:\\Users\\Administrator\\AppData\\Roaming\\omero\\tmp\\omero_Administrator\\3032'
Tue, 20 Mar 2012 01:59:05 root         INFO     Application Starting...


I have no idea what this even means, much less fix it :P

Thanks

Brian
Attachments
omero var logs.zip
(73.68 KiB) Downloaded 188 times
blin
 
Posts: 4
Joined: Tue Mar 20, 2012 2:02 am

Re: Starting web interface in Win Server 2008 SP2 32 bit

Postby atarkowska » Tue Mar 20, 2012 3:54 pm

HI Brian

This may be caused by not being able to properly delete files from the roaming directory. Can try to use TempFileManager (http://trac.openmicroscopy.org.uk/ome/w ... ileManager) to point it somewhere else.

Thanks
Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Starting web interface in Win Server 2008 SP2 32 bit

Postby blin » Tue Mar 20, 2012 4:43 pm

Hmm, so I moved it, didn't seem to help unfortunately. The error doesn't reappear though, so there has been progress.
I tried to use the development server instead of IIS to see if that was the problem or if the underlying settings is screwed up. Apparently something is:
Code: Select all
C:\omero_dist\bin>omero config set omero.web.application_server development

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 start

Starting OMERO.web... Traceback (most recent call last):
  File "manage.py", line 43, in <module> execute_manager(settings)
  File "C:\omero_dist\lib\python\django\core\management\__init__.py", line 362, in execute_manager    utility.execute()
  File "C:\omero_dist\lib\python\django\core\management\__init__.py", line 303, in execute     self.fetch_command(subcommand).run_from_argv(self.argv)
  File "C:\omero_dist\lib\python\django\core\management\base.py", line 195, in run_from_argv    self.execute(*args, **options.__dict__)
  File "C:\omero_dist\lib\python\django\core\management\base.py", line 213, in e
xecute translation.activate('en-us')
  File "C:\omero_dist\lib\python\django\utils\translation\__init__.py", line 73, in activate return real_activate(language)
  File "C:\omero_dist\lib\python\django\utils\translation\__init__.py", line 43, in delayed_loader
    return g['real_%s' % caller](*args, **kwargs)
  File "C:\omero_dist\lib\python\django\utils\translation\trans_real.py", line 205, in activate
    _active[currentThread()] = translation(language)
  File "C:\omero_dist\lib\python\django\utils\translation\trans_real.py", line 194, in translation
    default_translation = _fetch(settings.LANGUAGE_CODE)
  File "C:\omero_dist\lib\python\django\utils\translation\trans_real.py", line 180, in _fetch
    app = import_module(appname)
  File "C:\omero_dist\lib\python\django\utils\importlib.py", line 35, in import_module
    __import__(name)
  File "C:\omero_dist\lib\python\django\contrib\admin\__init__.py", line 4, in <module>
    from django.contrib.admin.sites import AdminSite, site
  File "C:\omero_dist\lib\python\django\contrib\admin\sites.py", line 14, in <module>
    from django.views.decorators.cache import never_cache
  File "C:\omero_dist\lib\python\django\views\decorators\cache.py", line 20, in<module>
    from django.utils.cache import patch_cache_control, add_never_cache_headers
  File "C:\omero_dist\lib\python\django\utils\cache.py", line 28, in <module>
    from django.core.cache import cache
  File "C:\omero_dist\lib\python\django\core\cache\__init__.py", line 68, in <module>
    cache = get_cache(settings.CACHE_BACKEND)
  File "C:\omero_dist\lib\python\django\core\cache\__init__.py", line 60, in get_cache
    scheme, host, params = parse_backend_uri(backend_uri)
  File "C:\omero_dist\lib\python\django\core\cache\__init__.py", line 45, in parse_backend_uri
    raise InvalidCacheBackendError, "Backend URI must start with scheme://"
django.core.cache.backends.base.InvalidCacheBackendError: Backend URI must start with scheme://

C:\omero_dist\bin>


Might this shed some light on the problem?

Thanks

Brian
blin
 
Posts: 4
Joined: Tue Mar 20, 2012 2:02 am

Re: Starting web interface in Win Server 2008 SP2 32 bit

Postby atarkowska » Tue Apr 03, 2012 11:47 am

Hi,

Apologies for the delay. Cache backed settings should be:

Code: Select all
C:\omero_dist>bin\omero config set omero.web.cache_backend "file://C:/windows/temp/"


you missed : behind file

Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Starting web interface in Win Server 2008 SP2 32 bit

Postby atarkowska » Tue Apr 03, 2012 1:09 pm

Sorry I was comparing with your first configuration setup ;-)

Referring to your last post
Code: Select all
C:\omero_dist\bin>omero config set omero.web.cache_backend "file:\\C:\windows\temp\"


You need to use forward slashes

Code: Select all
C:\omero_dist>bin\omero config set omero.web.cache_backend "file://C:/windows/temp/"


Hope that helps
Ola
atarkowska
 
Posts: 327
Joined: Mon May 18, 2009 12:44 pm

Re: Starting web interface in Win Server 2008 SP2 32 bit

Postby blin » Tue Apr 03, 2012 3:43 pm

Ahhhhh, such a stupid mistake that I didn't notice. I put this on the backburner because I hit a brick wall. Works now :D
Thank you!
Also this reminds me of this:
http://xkcd.com/979/
blin
 
Posts: 4
Joined: Tue Mar 20, 2012 2:02 am


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest