[ome-devel] starting up omero 4 server: StartService FAILED error -- connection refused

Aleksandra Tarkowska aleksandrat at lifesci.dundee.ac.uk
Wed Apr 1 15:47:30 BST 2009


Hi Frans

I was trying to reproduce your problem with OMERO.web on Windows and  
this is the story...

Using the Windows command line shell, please go to C:\OMERO\lib 
\omeroweb and try startup by hand

      'python manage.py runserver'


If it gives you an error like:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\>cd OMERO

C:\OMERO>cd lib

C:\OMERO\lib>cd omeroweb

C:\OMERO\lib\omeroweb>python manage.py runserver
Traceback (most recent call last):
   File "manage.py", line 29, in <module>
     import settings # Assumed to be in the same directory.
   File "C:\OMERO\lib\omeroweb\settings.py", line 159, in <module>
     fileLog.doRollover()
   File "C:\Python25\lib\logging\handlers.py", line 274, in doRollover
     os.rename(self.baseFilename, dfn)
WindowsError: [Error 32] The process cannot access the file because  
it is being used by another process
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
   File "C:\Python25\lib\atexit.py", line 24, in _run_exitfuncs
     func(*targs, **kargs)
   File "C:\Python25\lib\logging\__init__.py", line 1354, in shutdown
     h.flush()
   File "C:\Python25\lib\logging\__init__.py", line 731, in flush
     self.stream.flush()
ValueError: I/O operation on closed file
Error in sys.exitfunc:
Traceback (most recent call last):
   File "C:\Python25\lib\atexit.py", line 24, in _run_exitfuncs
     func(*targs, **kargs)
   File "C:\Python25\lib\logging\__init__.py", line 1354, in shutdown
     h.flush()
   File "C:\Python25\lib\logging\__init__.py", line 731, in flush
     self.stream.flush()
ValueError: I/O operation on closed file


Please follow the changes in C:\OMERO\lib\omeroweb :

1) check your PYTHONPATH:

C:\>echo %PYTHONPATH%
C:\Ice-3.3.0\python

C:\>set PYTHONPATH=%PYTHONPATH%;C:\OMERO\lib\python

C:\>echo %PYTHONPATH%
C:\Ice-3.3.0\python;C:\OMERO\lib\python

2) open the C:\OMERO\lib\omeroweb\settings.py and configure LOGDIR to:

LOGDIR = os.path.join(os.path.dirname(__file__), 'log')

3) if you don't have installed PIL please go to C:\OMERO\lib\omeroweb 
\webclient\view.py and comment:

Line 37	import Image,ImageDraw

Now you should be able to run OMERO.web:

C:\OMERO\lib\omeroweb>python manage.py runserver

Once you have started the server please go to http://localhost:8000/ 
webadmin or http://localhost:8000/webclient

and login as root/ome

If you have any different problems please send me the error from the  
console.

Thanks
Ola

On 1 Apr 2009, at 11:46, Cornelissen, Frans [PRDBE] wrote:

> Hi Chris,
>
> I ignored the exception and tried to start Insight or Importer.
> I try to log on with  omero / omero
> But I get an "Incorrect username/password. Server login failed.."
> message
>
> Also, http://localhost:8000/webadmin does not give a response:
> "Firefox can't establish a connection to the server at localhost: 
> 8000."
>
> Any ideas?
>
> Thanks, regards, frans
>





More information about the ome-devel mailing list