Not able to bootstrap with Eureka.

2,077 views
Skip to first unread message

Saswat

unread,
Jul 17, 2013, 8:22:06 PM7/17/13
to eureka_...@googlegroups.com
Hi Karthik and Others,

I am not able to bootstrap with Eureka with the latest code.

I keep getting an error  Connection to http://localhost refused.  I did take a look at DefaultEurekaClientConfig.java for a similar issue that was reported earlier.
That portion of code has changed and I am not sure if the new code is introducing anything.
I am trying to run this in Ubuntu - A single box where server ,client and application services are running.

May be I am missing something basic. Would appreciate if someone is able to point out what am I doing wrong.

Thanks in Advance,
Saswat

Here is the configuration information: 

#Availability zones with the format eureka.<region>.availabilityZones, 
#eureka.us-east-1.availabilityZones=us-east-1c,us-east-1d,us-east-1e

eureka.us-east-1.availabilityZones=default

#Service urls for eureka server  in each zone

eureka.serviceUrl.default=http://localhost/eureka/v2/
#eureka.serviceUrl.default=http://localhost:8008/eureka/v2/

#Availability zones and serviceUrls for us-west-1 region
#eureka.us-west-1.availabilityZones=us-west-1a,us-west-1b,us-west-1c

#Availability zones and serviceUrls for eu-west-1 region
#eureka.eu-west-1.availabilityZones=eu-west-1a,eu-west-1b,eu-west-1c
##Eureka Client configuration for Eureka Service

#Properties based configuration for eureka client. The properties specified here is mostly what the users
#need to change. All of these can be specified as a java system property with -D option (eg)-Deureka.region=us-east-1


#Region where eureka is deployed -For AWS specify one of the AWS regions, for other datacenters specify a arbitrary string
#indicating the region.This is normally specified as a -D option (eg) -Deureka.region=us-east-1
#eureka.region=us-east-1
eureka.region=default

#Name of the application to be identified by other services


#Virtual host name by which the clients identifies this service
eureka.vipAddress=localhost

#The port where the service will be identified and will be serving requests
eureka.port=80

#For eureka clients running in eureka server, it needs to connect to servers in other zones
eureka.preferSameZone=false

#Change this if you want to use a DNS based lookup for determining other eureka servers. For example
#of specifying the DNS entries, check the eureka-client-test.properties, eureka-client-prod.properties
eureka.shouldUseDns=false

#Availability zones with the format eureka.<region>.availabilityZones, 
#eureka.us-east-1.availabilityZones=us-east-1c,us-east-1d,us-east-1e

eureka.us-east-1.availabilityZones=default

#Service urls for eureka server  in each zone

eureka.serviceUrl.defaultZone=http://localhost/eureka/v2/
eureka.serviceUrl.default.defaultZone=http://localhost/eureka/v2/

#Availability zones and serviceUrls for us-west-1 region
#eureka.us-west-1.availabilityZones=us-west-1a,us-west-1b,us-west-1c

#Availability zones and serviceUrls for eu-west-1 region
#eureka.eu-west-1.availabilityZones=eu-west-1a,eu-west-1b,eu-west-1c
#AWS access key which has access to EIP binding and looking up autoscaling information
eureka.awsAccessId=[Enter a valid AWS AccessId]
eureka.awsSecretKey=[Enter a valid AWS SecretKey]
#Set this only for this sample service without which starting the instance will by default wait for the default of 5 mins
eureka.waitTimeInMsWhenSyncEmpty=0

#AWS access key which has access to EIP binding and looking up autoscaling information
eureka.awsAccessId=ADIIEIFIFPFIKC
eureka.awsSecretKey=dieuilfkfoioljhjhjuTRoIiijc
@next=eureka-${environment}-${region}.properties#AWS access key which has access to EIP binding and looking up autoscaling information
eureka.awsAccessId=[Enter a valid AWS AccessId]
eureka.awsSecretKey=[Enter a valid AWS SecretKey]


Here is the output of catalina.out . 

2013-07-17 17:08:14,337 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-17 17:08:14,337 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-17 17:08:14,425 INFO  com.netflix.discovery.DiscoveryClient:553 [DiscoveryClient_CacheRefresher] [fetchRegistry] Disable delta property : false
2013-07-17 17:08:14,426 INFO  com.netflix.discovery.DiscoveryClient:555 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application is null : false
2013-07-17 17:08:14,426 INFO  com.netflix.discovery.DiscoveryClient:557 [DiscoveryClient_CacheRefresher] [fetchRegistry] Registered Applications size is zero : true
2013-07-17 17:08:14,426 INFO  com.netflix.discovery.DiscoveryClient:560 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application version is -1: true
2013-07-17 17:08:14,426 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-17 17:08:14,427 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_CacheRefresher] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-17 17:08:14,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_CacheRefresher] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 0, total allocated: 0 out of 200
2013-07-17 17:08:14,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_CacheRefresher] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-17 17:08:14,428 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_CacheRefresher] [getEntryBlocking] Available capacity: 50 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-17 17:08:14,428 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_CacheRefresher] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-17 17:08:14,428 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_CacheRefresher] [openConnection] Connecting to localhost:80
2013-07-17 17:08:14,429 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_CacheRefresher] [close] Connection closed
2013-07-17 17:08:14,429 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_CacheRefresher] [shutdown] Connection shut down
2013-07-17 17:08:14,429 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:272 [DiscoveryClient_CacheRefresher] [releaseConnection] Released connection is not reusable.
2013-07-17 17:08:14,430 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:434 [DiscoveryClient_CacheRefresher] [freeEntry] Releasing connection [HttpRoute[{}->http://localhost]][null]
2013-07-17 17:08:14,430 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:679 [DiscoveryClient_CacheRefresher] [notifyWaitingThread] Notifying no-one, there are no waiting threads
2013-07-17 17:08:14,430 ERROR com.netflix.discovery.DiscoveryClient:851 [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: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
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:1200)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:804)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:757)
at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:615)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:562)
at com.netflix.discovery.DiscoveryClient.access$1200(DiscoveryClient.java:87)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1321)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:170)
... 14 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
... 21 more
2013-07-17 17:08:14,430 ERROR com.netflix.discovery.DiscoveryClient:590 [DiscoveryClient_CacheRefresher] [fetchRegistry] DiscoveryClient_EUREKA/saswat-openstack1 - was unable to refresh it's cache! status = org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
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:1200)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:804)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:757)
at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:615)
at com.netflix.discovery.DiscoveryClient.fetchRegistry(DiscoveryClient.java:562)
at com.netflix.discovery.DiscoveryClient.access$1200(DiscoveryClient.java:87)
at com.netflix.discovery.DiscoveryClient$CacheRefreshThread.run(DiscoveryClient.java:1321)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:170)
... 14 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
... 21 more
2013-07-17 17:08:14,435 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_Heartbeat] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-17 17:08:14,441 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_Heartbeat] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-17 17:08:14,442 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_Heartbeat] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 0, total allocated: 0 out of 200
2013-07-17 17:08:14,442 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_Heartbeat] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-17 17:08:14,442 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_Heartbeat] [getEntryBlocking] Available capacity: 50 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-17 17:08:14,442 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_Heartbeat] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-17 17:08:14,443 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_Heartbeat] [openConnection] Connecting to localhost:80
2013-07-17 17:08:14,443 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_Heartbeat] [close] Connection closed
2013-07-17 17:08:14,443 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_Heartbeat] [shutdown] Connection shut down
2013-07-17 17:08:14,444 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:272 [DiscoveryClient_Heartbeat] [releaseConnection] Released connection is not reusable.
2013-07-17 17:08:14,444 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:434 [DiscoveryClient_Heartbeat] [freeEntry] Releasing connection [HttpRoute[{}->http://localhost]][null]
2013-07-17 17:08:14,444 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:679 [DiscoveryClient_Heartbeat] [notifyWaitingThread] Notifying no-one, there are no waiting threads
2013-07-17 17:08:14,448 ERROR com.netflix.discovery.DiscoveryClient:851 [DiscoveryClient_Heartbeat] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/EUREKA/saswat-openstack1
Can't contact any eureka nodes - possibly a security group issue?
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
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:793)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:757)
at com.netflix.discovery.DiscoveryClient.access$200(DiscoveryClient.java:87)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1216)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:170)
... 10 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
... 17 more
2013-07-17 17:08:14,448 ERROR com.netflix.discovery.DiscoveryClient$HeartbeatThread:1232 [DiscoveryClient_Heartbeat] [run] DiscoveryClient_EUREKA/saswat-openstack1 - was unable to send heartbeat!
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
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:793)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:757)
at com.netflix.discovery.DiscoveryClient.access$200(DiscoveryClient.java:87)
at com.netflix.discovery.DiscoveryClient$HeartbeatThread.run(DiscoveryClient.java:1216)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Caused by: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:158)
at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:573)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:425)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:776)
at com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:170)
... 10 more
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:148)
... 17 more
2013-07-17 17:08:15,108 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-17 17:08:15,108 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS

Karthikeyan Ranganathan

unread,
Jul 18, 2013, 2:33:50 PM7/18/13
to eureka_...@googlegroups.com
Hi,

I can't readily find anything wrong with the configuration. You might get these errors until the WAR is deployed completely and the port is ready for use.

Can you include the full log file? I would like to see if the war file deployed correctly. 

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.
 
 

Saswat

unread,
Jul 18, 2013, 4:33:54 PM7/18/13
to eureka_...@googlegroups.com
Karthik,

Thanks for the help .

I don't see any process listening on port 80.
Please see the attached catalina.out.

Let me know if you need any other information. 

Thanks,
Saswat
catalina.out

Karthikeyan Ranganathan

unread,
Jul 18, 2013, 5:10:07 PM7/18/13
to eureka_...@googlegroups.com
I guess your application hasn't finished deploying fully. Can you allow it more time until a point catalina says it is done deploying?


--

Saswat Praharaj

unread,
Jul 18, 2013, 7:04:06 PM7/18/13
to eureka_...@googlegroups.com
Karthik,

It has been trying to deploy for more than an hour and still failing. You may check the timestamp in the log file.

Thanks,
Saswat


On Thu, Jul 18, 2013 at 1:33 PM, Saswat <sas...@gmail.com> wrote:
--
You received this message because you are subscribed to a topic in the Google Groups "eureka_netflix" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/eureka_netflix/A0js-QHbrDc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to eureka_netfli...@googlegroups.com.
catalina.out

Karthikeyan Ranganathan

unread,
Jul 18, 2013, 7:13:04 PM7/18/13
to eureka_...@googlegroups.com
The following are the starting and ending lines

Jul 18, 2013 1:25:49 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]

and the last line is

threshold. Number of Renewals Last Minute : 0. The Threshold is 0.85 of total instances : 0
2013-07-18 13:30:21,904 DEBUG com.netflix.eureka.InstanceRegistry:428 [Eureka-EvictionTimer] [evict] DS: lease expiration is currently disabled.


I guess that is about 5 mins. I also find no indication about the end of the deployment of the WAR file.


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

Saswat Praharaj

unread,
Jul 18, 2013, 7:39:25 PM7/18/13
to eureka_...@googlegroups.com
I see that the log file goes beyond that. Is there a limit on file size and it's getting truncated ? In the same file I see the following :

2013-07-18 13:30:21,899 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:30:21,899 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:30:21,904 ERROR com.netflix.eureka.PeerAwareInstanceRegistry:539 [Eureka-EvictionTimer] [isLeaseExpirationEnabled] The lease expiration has been disabled since the number of renewals per minute   is lower than the minimum threshold. Number of Renewals Last Minute : 0. The Threshold is 0.85 of total instances : 0
2013-07-18 13:30:21,904 DEBUG com.netflix.eureka.InstanceRegistry:428 [Eureka-EvictionTimer] [evict] DS: lease expiration is currently disabled.
2013-07-18 13:30:50,663 DEBUG com.netflix.discovery.DiscoveryClient:463 [DiscoveryClient_ServiceURLUpdater] [getEurekaServiceUrlsFromConfig] The availability zone for the given region default are %s
2013-07-18 13:30:50,664 WARN  com.netflix.discovery.DiscoveryClient:1150 [DiscoveryClient_ServiceURLUpdater] [getZoneOffset] DISCOVERY: Could not pick a zone based on preferred zone settings. My zone - defaultZone, preferSameZone- false. Defaulting to defaultZone
2013-07-18 13:30:51,339 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:30:51,340 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:30:51,423 INFO  com.netflix.discovery.DiscoveryClient:553 [DiscoveryClient_CacheRefresher] [fetchRegistry] Disable delta property : false
2013-07-18 13:30:51,423 INFO  com.netflix.discovery.DiscoveryClient:555 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application is null : false
2013-07-18 13:30:51,423 INFO  com.netflix.discovery.DiscoveryClient:557 [DiscoveryClient_CacheRefresher] [fetchRegistry] Registered Applications size is zero : true
2013-07-18 13:30:51,423 INFO  com.netflix.discovery.DiscoveryClient:560 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application version is -1: true
2013-07-18 13:30:51,424 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-18 13:30:51,424 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_Heartbeat] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-18 13:30:51,424 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_CacheRefresher] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-18 13:30:51,424 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_Heartbeat] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-18 13:30:51,424 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_CacheRefresher] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 0, total allocated: 0 out of 200
2013-07-18 13:30:51,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_CacheRefresher] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:30:51,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_CacheRefresher] [getEntryBlocking] Available capacity: 50 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:30:51,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_CacheRefresher] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-18 13:30:51,426 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_CacheRefresher] [openConnection] Connecting to localhost:80
2013-07-18 13:30:51,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_Heartbeat] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 1, total allocated: 1 out of 200
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_Heartbeat] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_CacheRefresher] [close] Connection closed
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_Heartbeat] [getEntryBlocking] Available capacity: 49 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_CacheRefresher] [shutdown] Connection shut down
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_Heartbeat] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:272 [DiscoveryClient_CacheRefresher] [releaseConnection] Released connection is not reusable.
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_Heartbeat] [openConnection] Connecting to localhost:80
2013-07-18 13:30:51,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:434 [DiscoveryClient_CacheRefresher] [freeEntry] Releasing connection [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:30:51,428 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_Heartbeat] [close] Connection closed
2013-07-18 13:30:51,428 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:679 [DiscoveryClient_CacheRefresher] [notifyWaitingThread] Notifying no-one, there are no waiting threads
2013-07-18 13:30:51,428 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_Heartbeat] [shutdown] Connection shut down
2013-07-18 13:30:51,428 ERROR com.netflix.discovery.DiscoveryClient:851 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/
2013-07-18 13:30:51,428 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:272 [DiscoveryClient_Heartbeat] [releaseConnection] Released connection is not reusable.
2013-07-18 13:30:51,428 ERROR com.netflix.discovery.DiscoveryClient:590 [DiscoveryClient_CacheRefresher] [fetchRegistry] DiscoveryClient_EUREKA/saswat-openstack1 - was unable to refresh it's cache! status = org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
2013-07-18 13:30:51,428 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:434 [DiscoveryClient_Heartbeat] [freeEntry] Releasing connection [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:30:51,429 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:679 [DiscoveryClient_Heartbeat] [notifyWaitingThread] Notifying no-one, there are no waiting threads
2013-07-18 13:30:51,429 ERROR com.netflix.discovery.DiscoveryClient:851 [DiscoveryClient_Heartbeat] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/EUREKA/saswat-openstack1
2013-07-18 13:30:51,432 ERROR com.netflix.discovery.DiscoveryClient$HeartbeatThread:1232 [DiscoveryClient_Heartbeat] [run] DiscoveryClient_EUREKA/saswat-openstack1 - was unable to send heartbeat!
2013-07-18 13:30:51,899 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:30:51,900 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:31:21,339 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:31:21,339 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:31:21,423 INFO  com.netflix.discovery.DiscoveryClient:553 [DiscoveryClient_CacheRefresher] [fetchRegistry] Disable delta property : false
2013-07-18 13:31:21,423 INFO  com.netflix.discovery.DiscoveryClient:555 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application is null : false
2013-07-18 13:31:21,424 INFO  com.netflix.discovery.DiscoveryClient:557 [DiscoveryClient_CacheRefresher] [fetchRegistry] Registered Applications size is zero : true
2013-07-18 13:31:21,424 INFO  com.netflix.discovery.DiscoveryClient:560 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application version is -1: true
2013-07-18 13:31:21,424 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-18 13:31:21,424 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_Heartbeat] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-18 13:31:21,424 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_CacheRefresher] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-18 13:31:21,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_CacheRefresher] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 0, total allocated: 0 out of 200
2013-07-18 13:31:21,425 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_Heartbeat] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-18 13:31:21,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_CacheRefresher] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:21,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_CacheRefresher] [getEntryBlocking] Available capacity: 50 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:21,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_CacheRefresher] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-18 13:31:21,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_Heartbeat] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 1, total allocated: 1 out of 200
2013-07-18 13:31:21,426 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_CacheRefresher] [openConnection] Connecting to localhost:80
2013-07-18 13:31:21,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_Heartbeat] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:21,426 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_CacheRefresher] [close] Connection closed
2013-07-18 13:31:21,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_Heartbeat] [getEntryBlocking] Available capacity: 49 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:21,426 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_CacheRefresher] [shutdown] Connection shut down
2013-07-18 13:31:21,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_Heartbeat] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-18 13:31:21,427 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:272 [DiscoveryClient_CacheRefresher] [releaseConnection] Released connection is not reusable.
2013-07-18 13:31:21,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:434 [DiscoveryClient_CacheRefresher] [freeEntry] Releasing connection [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:21,427 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_Heartbeat] [openConnection] Connecting to localhost:80
2013-07-18 13:31:21,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:679 [DiscoveryClient_CacheRefresher] [notifyWaitingThread] Notifying no-one, there are no waiting threads
2013-07-18 13:31:21,427 ERROR com.netflix.discovery.DiscoveryClient:851 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/
2013-07-18 13:31:21,427 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_Heartbeat] [close] Connection closed
2013-07-18 13:31:21,428 ERROR com.netflix.discovery.DiscoveryClient:590 [DiscoveryClient_CacheRefresher] [fetchRegistry] DiscoveryClient_EUREKA/saswat-openstack1 - was unable to refresh it's cache! status = org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
2013-07-18 13:31:21,428 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_Heartbeat] [shutdown] Connection shut down
2013-07-18 13:31:21,428 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:272 [DiscoveryClient_Heartbeat] [releaseConnection] Released connection is not reusable.
2013-07-18 13:31:21,428 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:434 [DiscoveryClient_Heartbeat] [freeEntry] Releasing connection [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:21,428 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:679 [DiscoveryClient_Heartbeat] [notifyWaitingThread] Notifying no-one, there are no waiting threads
2013-07-18 13:31:21,429 ERROR com.netflix.discovery.DiscoveryClient:851 [DiscoveryClient_Heartbeat] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/EUREKA/saswat-openstack1
2013-07-18 13:31:21,429 ERROR com.netflix.discovery.DiscoveryClient$HeartbeatThread:1232 [DiscoveryClient_Heartbeat] [run] DiscoveryClient_EUREKA/saswat-openstack1 - was unable to send heartbeat!
2013-07-18 13:31:21,899 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:31:21,899 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:31:21,903 ERROR com.netflix.eureka.PeerAwareInstanceRegistry:539 [Eureka-EvictionTimer] [isLeaseExpirationEnabled] The lease expiration has been disabled since the number of renewals per minute   is lower than the minimum threshold. Number of Renewals Last Minute : 0. The Threshold is 0.85 of total instances : 0
2013-07-18 13:31:21,903 DEBUG com.netflix.eureka.InstanceRegistry:428 [Eureka-EvictionTimer] [evict] DS: lease expiration is currently disabled.
2013-07-18 13:31:51,339 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:314 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:31:51,339 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:725 [Eureka-connectionCleaner] [closeIdleConnections] Closing connections idle longer than 30 SECONDS
2013-07-18 13:31:51,423 INFO  com.netflix.discovery.DiscoveryClient:553 [DiscoveryClient_CacheRefresher] [fetchRegistry] Disable delta property : false
2013-07-18 13:31:51,423 INFO  com.netflix.discovery.DiscoveryClient:555 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application is null : false
2013-07-18 13:31:51,423 INFO  com.netflix.discovery.DiscoveryClient:557 [DiscoveryClient_CacheRefresher] [fetchRegistry] Registered Applications size is zero : true
2013-07-18 13:31:51,424 INFO  com.netflix.discovery.DiscoveryClient:560 [DiscoveryClient_CacheRefresher] [fetchRegistry] Application version is -1: true
2013-07-18 13:31:51,424 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-18 13:31:51,424 DEBUG com.netflix.discovery.DiscoveryClient:779 [DiscoveryClient_Heartbeat] [makeRemoteCall] Discovery Client talking to the server http://localhost/eureka/v2/
2013-07-18 13:31:51,424 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_CacheRefresher] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-18 13:31:51,424 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_CacheRefresher] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 0, total allocated: 0 out of 200
2013-07-18 13:31:51,425 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1:221 [DiscoveryClient_Heartbeat] [getConnection] Get connection: HttpRoute[{}->http://localhost], timeout = 5000
2013-07-18 13:31:51,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_CacheRefresher] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:51,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_CacheRefresher] [getEntryBlocking] Available capacity: 50 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:51,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_CacheRefresher] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-18 13:31:51,425 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:350 [DiscoveryClient_Heartbeat] [getEntryBlocking] [HttpRoute[{}->http://localhost]] total kept alive: 0, total issued: 1, total allocated: 1 out of 200
2013-07-18 13:31:51,426 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_CacheRefresher] [openConnection] Connecting to localhost:80
2013-07-18 13:31:51,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:523 [DiscoveryClient_Heartbeat] [getFreeEntry] No free connections [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:51,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:369 [DiscoveryClient_Heartbeat] [getEntryBlocking] Available capacity: 49 out of 50 [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:51,426 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_CacheRefresher] [close] Connection closed
2013-07-18 13:31:51,426 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:549 [DiscoveryClient_Heartbeat] [createEntry] Creating new connection [HttpRoute[{}->http://localhost]]
2013-07-18 13:31:51,426 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_CacheRefresher] [shutdown] Connection shut down
2013-07-18 13:31:51,426 DEBUG org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager:272 [DiscoveryClient_CacheRefresher] [releaseConnection] Released connection is not reusable.
2013-07-18 13:31:51,427 DEBUG org.apache.http.impl.conn.DefaultClientConnectionOperator:145 [DiscoveryClient_Heartbeat] [openConnection] Connecting to localhost:80
2013-07-18 13:31:51,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:434 [DiscoveryClient_CacheRefresher] [freeEntry] Releasing connection [HttpRoute[{}->http://localhost]][null]
2013-07-18 13:31:51,427 DEBUG org.apache.http.impl.conn.tsccm.ConnPoolByRoute:679 [DiscoveryClient_CacheRefresher] [notifyWaitingThread] Notifying no-one, there are no waiting threads
2013-07-18 13:31:51,427 DEBUG org.apache.http.impl.conn.DefaultClientConnection:165 [DiscoveryClient_Heartbeat] [close] Connection closed
2013-07-18 13:31:51,427 ERROR com.netflix.discovery.DiscoveryClient:851 [DiscoveryClient_CacheRefresher] [makeRemoteCall] Can't get a response from http://localhost/eureka/v2/apps/
2013-07-18 13:31:51,427 DEBUG org.apache.http.impl.conn.DefaultClientConnection:152 [DiscoveryClient_Heartbeat] [shutdown] Connection shut down
2013-07-18 13:31:51,427 ERROR com.netflix.discovery.DiscoveryClient:590 [DiscoveryClient_CacheRefresher] [fetchRegistry] DiscoveryClient_EUREKA/saswat-openstack1 - was unable to refresh it's cache! status = org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
com.sun.jersey.api.client.ClientHandlerException: org.apache.http.conn.HttpHostConnectException: Connection to http://localhost refused
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:1200)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:804)
at com.netflix.discovery.DiscoveryClient.makeRemoteCall(DiscoveryClient.java:757)
at com.netflix.discovery.DiscoveryClient.getAndStoreFullRegistry(DiscoveryClient.java:615)

...

Karthikeyan Ranganathan

unread,
Jul 19, 2013, 1:44:50 PM7/19/13
to eureka_...@googlegroups.com
Saswat,

I tried to download the file again and I'm not seeing any extra logs. The logs you included does not give me the right information either. I was trying to find if your WAR file deployed correctly and you see any messages to that extent.

If it did not deploy , what is the exception that is preventing it from deploying. Your log file does not seem to contain the information. Can you please try to re-attach again?


Saswat Praharaj

unread,
Jul 19, 2013, 3:11:04 PM7/19/13
to eureka_...@googlegroups.com, karth...@gmail.com
Karthik,

Thanks for being patient. Please see the log file attached again.
It has log for almost an hour since I started tomcat.

Thanks,
Saswat
catalina.out

Karthikeyan Ranganathan

unread,
Jul 19, 2013, 3:41:45 PM7/19/13
to Saswat Praharaj, eureka_...@googlegroups.com
Now I see the full log. There is no indication of the WAR file having deployed. Can you get a thread dump after you start the server and send it across to me?

Saswat Praharaj

unread,
Jul 19, 2013, 4:02:32 PM7/19/13
to Karthikeyan Ranganathan, eureka_...@googlegroups.com
Karthik,

I am relatively new to tomcat and java. I used this command to get the dump/

sudo jstack -F -l 22946 > dump.txt

dump.txt is attached.

Let me know if you are looking for something else.

Thanks,
Saswat


dump.txt

Karthikeyan Ranganathan

unread,
Jul 19, 2013, 5:19:18 PM7/19/13
to Saswat Praharaj, eureka_...@googlegroups.com
Saswat,

The thread dump you have sent me indicates things are still operating normally at the point you took it

The below stack indicates that the code path is in "Thread.sleep" where it is trying to fetch registry from a peer. The remote peer will be tried 5 times with a wait of 30 seconds each. I wonder what happens after 1 and 1/2 min.

I would recommend you waiting for about 5 mins and then getting a thread dump..

 - com.netflix.eureka.PeerAwareInstanceRegistry.syncUp() @bci=160, line=279 (Interpreted frame)
 - com.netflix.eureka.EurekaBootStrap.contextInitialized(javax.servlet.ServletContextEvent) @bci=48, line=106 (Interpreted frame)
 - org.apache.catalina.core.StandardContext.listenerStart() @bci=530, line=4779 (Interpreted frame)
 - org.apache.catalina.core.StandardContext.startInternal() @bci=1187, line=5273 (Interpreted frame)
 - org.apache.catalina.util.LifecycleBase.start() @bci=210, line=150 (Interpreted frame)
 - org.apache.catalina.core.ContainerBase.addChildInternal(org.apache.catalina.Container) @bci=170, line=895 (Interpreted frame)
 - org.apache.catalina.core.ContainerBase.addChild(org.apache.catalina.Container) @bci=26, line=871 (Interpreted frame)
 - org.apache.catalina.core.StandardHost.addChild(org.apache.catalina.Container) @bci=40, line=615 (Interpreted frame)
 - org.apache.catalina.startup.HostConfig.deployWAR(org.apache.catalina.util.ContextName, 



Saswat Praharaj

unread,
Jul 19, 2013, 6:31:08 PM7/19/13
to Karthikeyan Ranganathan, eureka_...@googlegroups.com
Karthik,

Please see the new file attached.

Thanks,
Saswat
dump.txt

Karthikeyan Ranganathan

unread,
Jul 22, 2013, 1:36:11 PM7/22/13
to Saswat Praharaj, eureka_...@googlegroups.com
Saswat,

Everything looks normal from the threadump as tomcat is ready to accept connections.

Can you check in your server configuration ( under TOMCAT_HOME/conf) to find out which port the http connector accepts connections?

hread 23885: (state = IN_NATIVE)
 - java.net.PlainSocketImpl.socketAccept(java.net.SocketImpl) @bci=0 (Interpreted frame)
 - java.net.AbstractPlainSocketImpl.accept(java.net.SocketImpl) @bci=7, line=398 (Interpreted frame)
 - java.net.ServerSocket.implAccept(java.net.Socket) @bci=60, line=522 (Interpreted frame)
 - java.net.ServerSocket.accept() @bci=48, line=490 (Interpreted frame)
 - org.apache.catalina.core.StandardServer.await() @bci=175, line=452 (Interpreted frame)
 - org.apache.catalina.startup.Catalina.await() @bci=4, line=727 (Interpreted frame)
 - org.apache.catalina.startup.Catalina.start() @bci=176, line=673 (Interpreted frame)
 - sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) @bci=0 (Interpreted frame)
 - sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=87, line=57 (Interpreted frame)
 - sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) @bci=6, line=43 (Interpreted frame)
 - java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) @bci=57, line=601 (Interpreted frame)
 - org.apache.catalina.startup.Bootstrap.start() @bci=37, line=322 (Interpreted frame)
 - org.apache.catalina.startup.Bootstrap.main(java.lang.String[])


Saswat Praharaj

unread,
Jul 22, 2013, 4:16:42 PM7/22/13
to Karthikeyan Ranganathan, eureka_...@googlegroups.com
Karthik ,

I have tried both port 80 and 8080 for connector port. It doesn't help.
I am relatively new to tomcat. 

I have attached the server.xml - Could you please tell if I am missing something.

Thanks,
Saswat
server.xml

Karthikeyan Ranganathan

unread,
Jul 22, 2013, 4:57:37 PM7/22/13
to Saswat Praharaj, eureka_...@googlegroups.com
You can do a netstat -an on your machine to see which port the application is using to LISTEN.

Saswat Praharaj

unread,
Jul 22, 2013, 6:14:59 PM7/22/13
to Karthikeyan Ranganathan, eureka_...@googlegroups.com
Now, I am able to run registry server , demo service and demo client after I changed the port to 8080.
Earlier when I tried with port 8080 , I probably made wrong changes in server.xml.

Thanks for your help. 




[Message clipped]  

ch...@fregly.com

unread,
Aug 3, 2013, 7:12:05 PM8/3/13
to eureka_...@googlegroups.com, Karthikeyan Ranganathan
i have a whole section on the fluxcapacitor wiki dedicated to changing the eureka port from the default port 80.  it's a very involved process, unfortunately.  sorry i didn't catch this thread sooner - i might have been able to assist, but it sounds like you got it working @saswat.

personal note:  while changing the port is do-able, i chose to put an apache server listening on port 80 in front of tomcat/eureka to keep the peace.  i'm using an Amazon Elastic Beanstalk container specifically for eureka - this comes with apache2 (port 80) + tomcat7 out of the box and works great.

hope that helps.

-chris
...
Reply all
Reply to author
Forward
0 new messages