Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw exceptions when boot ladle server on Linux #27

Open
pengisgood opened this issue Feb 22, 2016 · 0 comments
Open

Throw exceptions when boot ladle server on Linux #27

pengisgood opened this issue Feb 22, 2016 · 0 comments

Comments

@pengisgood
Copy link

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.wait

Here 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 more

Anyone has any ideas?

@pengisgood pengisgood changed the title Failed to boot ladle server on Linux Throw exceptions when boot ladle server on Linux Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant