[ome-devel] Blitz-0 localhost error / Django errors
Galli Vanni
vanni.galli at supsi.ch
Tue Dec 7 15:03:54 GMT 2010
Sure!
root at isin09 ~> hostname
isin09
root at isin09 ~> cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 xenserver-isin00 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Thank you,
Vanni
On Dec 7, 2010, at 3:36 PM, Chris Allan wrote:
> Hi Vanni,
>
> I suspect you've got something very odd with your hostnames and general name resolution. Could you let us know what the output of the following commands is?
>
> $ hostname
> $ cat /etc/hosts
>
> Thanks.
>
> -Chris
>
> On 1 Dec 2010, at 12:19, Galli Vanni wrote:
>
>> Dear All,
>> I've just upgraded my OMERO installation to 4.2.1, but it seems something went wrong. Actually, I'm not really able to understand if my installation is working correctly or not.
>>
>>
>> I can normally start the OMERO admin:
>>
>> omerouser at isin09 /home/OMERO/OMERO.server-Beta-4.2.1/bin> ./omero admin start
>>
>> Creating /home/OMERO/OMERO.server-Beta-4.2.1/var/master
>> Creating /home/OMERO/OMERO.server-Beta-4.2.1/var/registry
>> No descriptor given. Using etc/grid/default.xml
>> Waiting on startup. Use CTRL-C to exit
>>
>>
>> This seem to work fine (no errors on the console), but if I look at the Blitz-0-log I notice some errors:
>>
>> omerouser at isin09 /home/OMERO/OMERO.server-Beta-4.2.1/var/log> tail -500f Blitz-0.log
>>
>> 2010-12-01 12:53:30,641 INFO [ ome.services.blitz.Entry] ( main) Creating OMERO.blitz. Please wait...
>> 2010-12-01 12:53:44,756 INFO [ng.ShutdownSafeEhcacheManagerFactoryBean] ( main) Initializing EHCache CacheManager
>> 2010-12-01 12:53:44,981 ERROR [ net.sf.ehcache.Cache] ( main) Unable to set localhost. This prevents creation of a GUID. Cause was: isin09: isin09
>> java.net.UnknownHostException: isin09: isin09
>> at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
>> at net.sf.ehcache.Cache.<clinit>(Cache.java:126)
>> at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:418)
>> at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:334)
>> at net.sf.ehcache.CacheManager.configure(CacheManager.java:306)
>> at net.sf.ehcache.CacheManager.init(CacheManager.java:226)
>> at net.sf.ehcache.CacheManager.<init>(CacheManager.java:213)
>> at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:115)
>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
>> at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
>>
>>
>> What is the meaning of "unable to set localhost"?
>>
>>
>> In any case, after this error, OMERO seems correctly working:
>>
>> 2010-12-01 12:54:03,748 INFO [ ome.services.util.ServerVersionCheck] ( main) -------------------------------------------------
>> 2010-12-01 12:54:03,748 INFO [ ome.services.util.ServerVersionCheck] ( main) OMERO Version: Beta4.2.1-r8614-Beta4.2-b41 Ready.
>> 2010-12-01 12:54:03,748 INFO [ ome.services.util.ServerVersionCheck] ( main) -------------------------------------------------
>>
>> I'm able to start the django server:
>>
>> omerouser at isin09 /home/OMERO/OMERO.server-Beta-4.2.1/bin> ./omero web start
>>
>> Starting OMERO.web... Validating models...
>> 0 errors found
>>
>> Django version 1.1.1, using settings 'omeroweb.settings'
>> Development server is running at http://0.0.0.0:4080/
>> Quit the server with CONTROL-C.
>>
>>
>> But, as soon as a client connects, this message is printed on the console:
>>
>> Traceback (most recent call last):
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/servers/basehttp.py", line 279, in run
>> self.result = application(self.environ, self.start_response)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/servers/basehttp.py", line 651, in __call__
>> return self.application(environ, start_response)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/handlers/wsgi.py", line 241, in __call__
>> response = self.get_response(request)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/handlers/base.py", line 73, in get_response
>> response = middleware_method(request)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/middleware/common.py", line 56, in process_request
>> if (not _is_valid_path(request.path_info) and
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/middleware/common.py", line 142, in _is_valid_path
>> urlresolvers.resolve(path)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/urlresolvers.py", line 303, in resolve
>> return get_resolver(urlconf).resolve(path)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/urlresolvers.py", line 218, in resolve
>> sub_match = pattern.resolve(new_path)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/urlresolvers.py", line 216, in resolve
>> for pattern in self.url_patterns:
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/urlresolvers.py", line 245, in _get_url_patterns
>> patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/core/urlresolvers.py", line 240, in _get_urlconf_module
>> self._urlconf_module = import_module(self.urlconf_name)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/django/utils/importlib.py", line 35, in import_module
>> __import__(name)
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/omeroweb/webadmin/urls.py", line 30, in ?
>> from omeroweb.webadmin import views
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/omeroweb/webadmin/views.py", line 71, in ?
>> from webclient.webclient_gateway import OmeroWebGateway
>> File "/home/OMERO/OMERO.server-Beta-4.2.1/lib/python/omeroweb/webclient/webclient_gateway.py", line 36, in ?
>> logger.error("You need to install the Python Imaging Library. Get it at http://www.pythonware.com/products/pil/")
>>
>>
>>
>> Can anyone help me?
>>
>> Thank you very much for your help!
>>
>> Best,
>> Vanni
>>
>>
>> --
>> Scuola Universitaria Professionale della Svizzera Italiana
>> Dipartimento Tecnologie Innovative
>> Istituto Sistemi Informativi e Networking
>>
>> Vanni Galli
>> Ricercatore
>>
>> Galleria 2
>> CH - 6928 Manno
>>
>> T +41 (0)58 666 65 92
>> vanni.galli at supsi.ch
>> www.supsi.ch/dti
>>
>> _______________________________________________
>> ome-devel mailing list
>> ome-devel at lists.openmicroscopy.org.uk
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-devel
>
--
Scuola Universitaria Professionale della Svizzera Italiana
Dipartimento Tecnologie Innovative
Istituto Sistemi Informativi e Networking
Vanni Galli
Ricercatore
Galleria 2
CH - 6928 Manno
T +41 (0)58 666 65 92
vanni.galli at supsi.ch
www.supsi.ch/dti
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20101207/4455bbc0/attachment-0001.html>
More information about the ome-devel
mailing list