Failed to bootstrap eureka instance

657 views
Skip to first unread message

Junwei Wang

unread,
Sep 2, 2013, 12:35:14 AM9/2/13
to eureka_...@googlegroups.com
Hi,

I'm trying to start a single eureka instance by following the wiki, but I failed to start it. After several read timeout exceptions occured, tomcat exited.  

Is there something wrong?

BTW, I have changed tomcat's port to 80.

Here is a part of  logs:

Sep 2, 2013 12:23:55 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java64/jdk1.6.0_24/jre/lib/amd64/server:/usr/java64/jdk1.6.0_24/jre/lib/amd64:/usr/java64/jdk1.6.0_24/jre/../lib/amd64:/usr/local/lib:/usr/local/thirdparty/java/j2sdk/jre/lib/i386:/usr/local/thirdparty/java/j2sdk/jre/lib/i386/server:/usr/lib/pgsql:/usr/lib:/usr/local/cm/lib::/usr/local/platform/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Sep 2, 2013 12:23:55 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-80"]
Sep 2, 2013 12:23:55 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Sep 2, 2013 12:23:55 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 519 ms
Sep 2, 2013 12:23:55 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 2, 2013 12:23:55 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.42
Sep 2, 2013 12:23:55 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive /opt/kenny/apache-tomcat-7.0.42/webapps/eureka.war
2013-09-02 12:23:57,677 INFO  com.netflix.eureka.EurekaBootStrap:132 [localhost-startStop-1] [initEurekaEnvironment] Setting the eureka configuration..
2013-09-02 12:23:57,820 WARN  com.netflix.config.sources.URLConfigurationSource:122 [localhost-startStop-1] [<init>] No URLs will be polled as dynamic configuration sources.
2013-09-02 12:23:57,821 INFO  com.netflix.config.sources.URLConfigurationSource:123 [localhost-startStop-1] [<init>] To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2013-09-02 12:23:57,826 INFO  com.netflix.config.DynamicPropertyFactory:266 [localhost-startStop-1] [getInstance] DynamicPropertyFactory is initialized with configuration sources: com.netflix.config.ConcurrentCompositeConfiguration@1de4eb5b
2013-09-02 12:23:57,913 INFO  com.netflix.eureka.EurekaBootStrap:141 [localhost-startStop-1] [initEurekaEnvironment] Eureka data center value eureka.datacenter is not set, defaulting to default
2013-09-02 12:23:57,914 INFO  com.netflix.eureka.EurekaBootStrap:153 [localhost-startStop-1] [initEurekaEnvironment] Eureka environment value eureka.environment is not set, defaulting to test
2013-09-02 12:23:57,919 INFO  com.netflix.eureka.EurekaBootStrap:162 [localhost-startStop-1] [initEurekaEnvironment] Initializing the eureka client...
2013-09-02 12:23:57,948 WARN  com.netflix.discovery.DiscoveryClient:1227 [localhost-startStop-1] [getZoneOffset] DISCOVERY: Could not pick a zone based on preferred zone settings. My zone - defaultZone, preferSameZone- false. Defaulting to defaultZone
2013-09-02 12:23:58,399 INFO  com.netflix.discovery.DiscoveryClient:599 [localhost-startStop-1] [fetchRegistry] Disable delta property : false
2013-09-02 12:23:58,399 INFO  com.netflix.discovery.DiscoveryClient:600 [localhost-startStop-1] [fetchRegistry] Force full registry fetch : false
2013-09-02 12:23:58,399 INFO  com.netflix.discovery.DiscoveryClient:601 [localhost-startStop-1] [fetchRegistry] Application is null : false
2013-09-02 12:23:58,400 INFO  com.netflix.discovery.DiscoveryClient:602 [localhost-startStop-1] [fetchRegistry] Registered Applications size is zero : true
2013-09-02 12:23:58,400 INFO  com.netflix.discovery.DiscoveryClient:603 [localhost-startStop-1] [fetchRegistry] Application version is -1: true
2013-09-02 12:24:06,497 ERROR com.netflix.discovery.DiscoveryClient:928 [localhost-startStop-1] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/
Can't contact any eureka nodes - possibly a security group issue?
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
        at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:184)
        at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:120)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
        at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
        at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:503)
        at com.netflix.discovery.DiscoveryClient.getUrl(DiscoveryClient.java:1277)
        at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:873)
        at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:823)
        at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:667)
        at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:604)
        at com.netflix.discovery.DiscoveryClient.<init>(DiscoveryClient.java:215)
        at com.netflix.discovery.DiscoveryManager.initComponent(DiscoveryManager.java:73)
        at com.netflix.eureka.EurekaBootStrap.initEurekaEnvironment(EurekaBootStrap.java:164)
        at com.netflix.eureka.EurekaBootStrap.contextInitialized(EurekaBootStrap.java:91)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
2013-09-02 12:24:06,498 INFO  com.netflix.discovery.DiscoveryClient:967 [localhost-startStop-1] [initScheduledTasks] Starting heartbeat executor: renew interval is: 30
2013-09-02 12:24:06,657 WARN  com.netflix.discovery.DiscoveryClient:1227 [localhost-startStop-1] [getZoneOffset] DISCOVERY: Could not pick a zone based on preferred zone settings. My zone - defaultZone, preferSameZone- false. Defaulting to defaultZone
2013-09-02 12:24:06,658 INFO  com.netflix.eureka.PeerAwareInstanceRegistry:218 [localhost-startStop-1] [updatePeerEurekaNodes] Adding replica node: http://localhost/eureka/v2/
2013-09-02 12:24:06,813 INFO  com.netflix.eureka.PeerAwareInstanceRegistry:236 [localhost-startStop-1] [updatePeerEurekaNodes] Updating the replica nodes as they seem to have changed from [] to [http://localhost/eureka/v2/
2013-09-02 12:24:36,510 INFO  com.netflix.discovery.DiscoveryClient:599 [DiscoveryClient_CacheRefresher] [fetchRegistry] Disable delta property : false
2013-09-02 12:24:36,510 INFO  com.netflix.discovery.DiscoveryClient:600 [DiscoveryClient_CacheRefresher] [fetchRegistry] Force full registry fetch : false
2013-09-02 12:24:36,510 INFO  com.netflix.discovery.DiscoveryClient:601 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application is null : false
2013-09-02 12:24:36,511 INFO  com.netflix.discovery.DiscoveryClient:602 [DiscoveryClient_CacheRefresher] [fetchRegistry] Registered Applications size is zero : true
2013-09-02 12:24:36,511 INFO  com.netflix.discovery.DiscoveryClient:603 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application version is -1: true
2013-09-02 12:24:44,514 ERROR com.netflix.discovery.DiscoveryClient:928 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/
Can't contact any eureka nodes - possibly a security group issue?
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
        at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:184)
        at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:120)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
        at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
        at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:503)
        at com.netflix.discovery.DiscoveryClient.getUrl(DiscoveryClient.java:1277)
:

2013-09-02 12:25:44,539 ERROR com.netflix.discovery.DiscoveryClient$HeartbeatThread:1309 [DiscoveryClient_Heartbeat] [run] DiscoveryClient_EUREKA/service-kenny-com - was unable to send heartbeat!
com.sun.jersey.api.client.ClientHandlerException: java.net.SocketTimeoutException: Read timed out
        at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:184)
        at com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:120)
        at com.sun.jersey.api.client.Client.handle(Client.java:648)
        at com.sun.jersey.api.client.WebResource.handle(WebResource.java:670)
        at com.sun.jersey.api.client.WebResource.put(WebResource.java:211)
        at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:859)
        at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:823)
        at com.netflix.discovery.DiscoveryClient.access$200(DiscoveryClient.java:91)
        at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1293)
        at java.util.TimerThread.mainLoop(Timer.java:512)
        at java.util.TimerThread.run(Timer.java:462)
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
        at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110)
        at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264)
        at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
        at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:252)
        at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281)
        at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247)
        at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientCo


Karthikeyan Ranganathan

unread,
Sep 2, 2013, 4:27:36 PM9/2/13
to eureka_...@googlegroups.com
Can you please include the full log file?

Thanks.
--
You received this message because you are subscribed to the Google Groups "eureka_netflix" group.
To unsubscribe from this group and stop receiving emails from it, send an email to eureka_netfli...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

christophe....@gmail.com

unread,
Oct 28, 2013, 5:10:02 AM10/28/13
to eureka_...@googlegroups.com
Got quite the same behaviour...except that the tomcat did not shutdown.

You have to know that the webapp startup is loooooooooooooooooooooooonnng (more than 3 minutes)

jjk...@nyu.edu

unread,
Feb 3, 2014, 10:47:20 PM2/3/14
to eureka_...@googlegroups.com
hey dude, names joe. How about we log through #notmyfather.net domain? Thanks. Also can you ple453 f0110w up on no child left behind?
Reply all
Reply to author
Forward
0 new messages