-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
We are running Jenkins CI on Amazon Linux instance which need to start ladle server for testing.
Here is our invoke code snippet:
mock_ldap_server = Ladle::Server.new :quiet => false,
:port => ladle_port,
:ldif => 'ldap/xxx.ldif',
:custom_schemas => "ldap/xxx.schema",
:domain => 'DC=XXX,DC=internal',
:tmpdir => 'tmp'
puts "Booting ladle for #{Rails.env}..."
mock_ldap.start
Process.waitHere is the error log:
Starting server on 3897
Booting ladle for test...
ApacheDS: ERROR: Unable to set localhost. This prevents creation of a GUID. Cause was: ip-xx-xx-x-xx: ip-xx-xx-x-xx: Name or service not known
ApacheDS: java.net.UnknownHostException: ip-xx-xx-x-xx: ip-xx-xx-x-xx: Name or service not known
ApacheDS: at java.net.InetAddress.getLocalHost(InetAddress.java:1496)
ApacheDS: at net.sf.ehcache.Cache.<clinit>(Cache.java:200)
ApacheDS: at net.sf.ehcache.config.ConfigurationHelper.createCache(ConfigurationHelper.java:302)
ApacheDS: at net.sf.ehcache.config.ConfigurationHelper.createDefaultCache(ConfigurationHelper.java:218)
ApacheDS: at net.sf.ehcache.CacheManager.configure(CacheManager.java:600)
ApacheDS: at net.sf.ehcache.CacheManager.init(CacheManager.java:359)
ApacheDS: at net.sf.ehcache.CacheManager.<init>(CacheManager.java:228)
ApacheDS: at org.apache.directory.server.core.api.CacheService.initialize(CacheService.java:127)
ApacheDS: at net.detailedbalance.ladle.Server.start(Server.java:122)
ApacheDS: at net.detailedbalance.ladle.Main.main(Main.java:64)
ApacheDS: Caused by: java.net.UnknownHostException: ip-xx-xx-x-xx: Name or service not known
ApacheDS: at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
ApacheDS: at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:922)
ApacheDS: at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1316)
ApacheDS: at java.net.InetAddress.getLocalHost(InetAddress.java:1492)
ApacheDS: ... 9 more
ApacheDS: WARN: failed to create certificate subject name from host name
ApacheDS: java.net.UnknownHostException: ip-xx-xx-x-xx: ip-xx-xx-x-xx: Name or service not known
ApacheDS: at java.net.InetAddress.getLocalHost(InetAddress.java:1496)
ApacheDS: at org.apache.directory.server.core.security.TlsKeyGenerator.addKeyPair(TlsKeyGenerator.java:266)
ApacheDS: at org.apache.directory.server.core.DefaultDirectoryService.createBootstrapEntries(DefaultDirectoryService.java:1466)
ApacheDS: at org.apache.directory.server.core.DefaultDirectoryService.initialize(DefaultDirectoryService.java:1815)
ApacheDS: at org.apache.directory.server.core.DefaultDirectoryService.startup(DefaultDirectoryService.java:1244)
ApacheDS: at net.detailedbalance.ladle.Server.start(Server.java:142)
ApacheDS: at net.detailedbalance.ladle.Main.main(Main.java:64)
ApacheDS: Caused by: java.net.UnknownHostException: ip-10-48-2-74: Name or service not known
ApacheDS: at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
ApacheDS: at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:922)
ApacheDS: at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1316)
ApacheDS: at java.net.InetAddress.getLocalHost(InetAddress.java:1492)
ApacheDS: ... 6 moreAnyone has any ideas?
Metadata
Metadata
Assignees
Labels
No labels