[ome-users] Ansible playbook for installing OMERO 5.1 on CentOS 7

Tjelvar Olsson (JIC) Tjelvar.Olsson at jic.ac.uk
Fri Apr 17 09:31:37 BST 2015


Thank you for your help! Configuring the /etc/hosts file fixed both the issues.

Sebastien - I have updated the playbook to include your fix more or less as you posted it.
https://github.com/JIC-CSB/omero-ansible/commit/975cb9f88829ddcc3a4d567006e82b3b382d450b

Tjelvar
--
Dr. Tjelvar Olsson
Scientific Computing Lab Manager
John Innes Centre


> On 17 Apr 2015, at 08:38, S Simard <ssimard at pasteur.fr> wrote:
> 
> Hi Tjelvar,
> 
> On 16/04/2015 20:10, Kenneth Gillen (Staff) wrote:
>> Hi Tjelvar,
>> 
>> That's really awesome! Thanks for sharing it with the community!
> 
> Yes very nice, thanks.
> 
>> With regard to problem 1: the system's hostname is not in `/etc/hosts`.
>> 
>> Add `vagrant-centos7` to the end of each of the entries, e.g.
>> 
>> [root at vagrant-centos7 OMERO.server]# cat /etc/hosts
>> 127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4 vagrant-centos7
>> ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6 vagrant-centos7
> 
> For what it's worth, below is a snippet I have used to edit the /etc/hosts file in place without resorting to a Jinja template. If you come up with a better solution, I'd be glad to hear it.
> 
> - name: Update /etc/hosts with FQDN hostname
>  lineinfile: dest=/etc/hosts regexp="^({{ item }}\s*)(localhost.*)$" line="\1{{ hostname_fqdn }} \2" backrefs=yes owner=root group=root mode=0644 backup=true
>  with_items:
>    - '127\.0\.0\.1'
>    - '::1'
> when: hostname_fqdn is defined
> 
> 
>> I'm afraid I can't help directly with your second error message, though fixing the first might well alleviate the second. Perhaps someone else on the list would be able to confirm that.
> 
> I'm just making a wild guess here so this may be completely irrelevant, but could it be that the tables service timed out while trying to acquire a session with the blitz service?
> If fixing the name resolution issue doesn't solve it, perhaps increasing the OMERO_STARTUP_WAIT value could help (see [1]).
> 
> Regards,
> Sebastien
> 
> [1] https://github.com/openmicroscopy/openmicroscopy/blob/develop/etc/env.sh#L28
> 
>> ________________________________________
>> From: ome-users <ome-users-bounces at lists.openmicroscopy.org.uk> on behalf of Tjelvar Olsson (JIC) <Tjelvar.Olsson at jic.ac.uk>
>> Sent: 16 April 2015 13:58
>> To: ome-users at lists.openmicroscopy.org.uk
>> Subject: [ome-users] Ansible playbook for installing OMERO 5.1 on CentOS 7
>> 
>> Dear all,
>> 
>> I have created an Ansible script for installing OMERO 5.1 on a CentOS 7 machine.
>> 
>> You can access it from GitHub:
>> 
>> https://github.com/JIC-CSB/omero-ansible
>> 
>> The repository includes a Vagrant file for creating a CentOS 7 virtual machine,
>> which can be used for testing the Ansible playbook.
>> 
>> There are some outstanding issues in that errors are reported in the logs.
>> 
>> Log files:  Blitz-0.log                    38.0 KB       errors=1    warnings=1
>> Log files:  DropBox.log                    3.0 KB        errors=4    warnings=2
>> Log files:  FileServer.log                 0.0 KB
>> Log files:  Indexer-0.log                  19.0 KB       errors=1    warnings=1
>> Log files:  MonitorServer.log              0.0 KB
>> Log files:  OMEROweb.log                   n/a
>> Log files:  PixelData-0.log                20.0 KB       errors=1    warnings=0
>> Log files:  Processor-0.log                4.0 KB        errors=2    warnings=1
>> Log files:  Tables-0.log                   4.0 KB        errors=2    warnings=1
>> Log files:  TestDropBox.log                n/a
>> Log files:  master.err                     0.0 KB        errors=0    warnings=2
>> Log files:  master.out                     0.0 KB
>> Log files:  Total size                     0.09 MB
>> 
>> I’m not too worried about the DropBox errors as it has not been configured.
>> 
>> The Blitz, Index and PixelData errors seem to have something to do with the hostname.
>> 
>> 2015-04-16 08:44:37,716 ERROR [                    net.sf.ehcache.Cache] (      main) Unable to set localhost. This prevents creation of a GUID. Cause was: vagrant-centos7: vagrant-centos7: Name or service not known
>> java.net.UnknownHostException: vagrant-centos7: vagrant-centos7: Name or service not known
>>         at java.net.InetAddress.getLocalHost(InetAddress.java:1473) ~[na:1.7.0_79]
>>         at net.sf.ehcache.Cache.<clinit>(Cache.java:166) ~[ehcache-core.jar:na]
>>         at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:303) [ehcache-core.jar:na]
>>         at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:218) [ehcache-core.jar:na]
>>         at net.sf.ehcache.CacheManager.configure(CacheManager.java:551) [ehcache-core.jar:na]
>>         at net.sf.ehcache.CacheManager.init(CacheManager.java:323) [ehcache-core.jar:na]
>>         at net.sf.ehcache.CacheManager.<init>(CacheManager.java:280) [ehcache-core.jar:na]
>>         at org.springframework.cache.ehcache.EhCacheManagerFactoryBean.afterPropertiesSet(EhCacheManagerFactoryBean.java:115) [org.springframework.context.support.jar:3.0.1.RELEASE-A]
>> 
>> Whereas the Processor and Tables errors seems to be in the Python layer.
>> 
>> 2015-04-16 08:45:42,204 ERROR [                       omero.util.Server] (MainThread) Failed initialization
>> Traceback (most recent call last):
>>   File "/home/omero/OMERO.server-5.1.0-ice35-b40/lib/python/omero/util/__init__.py", line 493, in run
>>     self.impl = self.impl_class(ctx)
>>   File "/home/omero/OMERO.server-5.1.0-ice35-b40/lib/python/omero/processor.py", line 753, in __init__
>>     omero.util.Servant.__init__(self, ctx, needs_session=needs_session)
>>   File "/home/omero/OMERO.server-5.1.0-ice35-b40/lib/python/omero/util/__init__.py", line 579, in __init__
>>     self.ctx.newSession()
>>   File "/home/omero/OMERO.server-5.1.0-ice35-b40/lib/python/omero/util/__init__.py", line 340, in newSession
>>     self.communicator, stop_event=self.stop_event)
>>   File "/home/omero/OMERO.server-5.1.0-ice35-b40/lib/python/omero/util/__init__.py", line 217, in internal_service_factory
>>     raise excpt
>> NoEndpointException: exception ::Ice::NoEndpointException
>> {
>>     proxy = BlitzManager -t -e 1.1 @ BlitzAdapters
>> }
>> 
>> Any suggestions on how I can make these errors disappear would be gratefully received.
>> 
>> Kind regards,
>> 
>> Tjelvar
>> _______________________________________________
>> ome-users mailing list
>> ome-users at lists.openmicroscopy.org.uk
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
>> 
>> The University of Dundee is a registered Scottish Charity, No: SC015096
>> _______________________________________________
>> ome-users mailing list
>> ome-users at lists.openmicroscopy.org.uk
>> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users
> 
> _______________________________________________
> ome-users mailing list
> ome-users at lists.openmicroscopy.org.uk
> http://lists.openmicroscopy.org.uk/mailman/listinfo/ome-users




More information about the ome-users mailing list