You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@whirr.apache.org by Paul Baclace <pa...@gmail.com> on 2011/11/03 21:32:37 UTC
intermittent com.google.inject.ProvisionException: Guice provision
errors on EC2 SOLVED
I have been seeing errors like this sometimes (around 5% of whirr runs,
us-west-1 of EC2) during the past week:
Exception in thread "main"
com.google.common.collect.ComputationException:
com.google.inject.ProvisionException: Guice provision errors
(stacktrace below).
Today they started occurring all the time.
Could it be because of this?:
$ dig ANY ec2.us-east-1.amazonaws.com
;<<>> DiG 9.7.3<<>> ANY ec2.us-east-1.amazonaws.com
;; global options: +cmd
;; connection timed out; no servers could be reached
$ dig ANY google.com
;<<>> DiG 9.7.3<<>> ANY google.com
;; global options: +cmd
;; connection timed out; no servers could be reached
ANSWER: Yes. The instance was ebs-based, so I was able to stop it,
then after it would not stop, I stopped it again (force), and then
started it. That process usually puts the instance on new hardware
(simple reboot does not, and did not fix the problem). It is working
again.
Paul
26) Error in custom provider, org.jclouds.http.HttpResponseException: ec2.us-east-1.amazonaws.com connecting to POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
while locating org.jclouds.ec2.config.EC2RestClientModule$RegionIdsToURI
at org.jclouds.aws.config.AWSRestClientModule.bindRegionsToProvider(AWSRestClientModule.java:105)
while locating java.util.Map<java.lang.String, java.net.URI> annotated with @org.jclouds.location.Region()
for parameter 1 at org.jclouds.ec2.config.EC2RestClientModule$RegionIdToZoneId.<init>(EC2RestClientModule.java:141)
at org.jclouds.ec2.config.EC2RestClientModule$RegionIdToZoneId.class(EC2RestClientModule.java:135)
while locating org.jclouds.ec2.config.EC2RestClientModule$RegionIdToZoneId
at org.jclouds.aws.config.WithZonesFormSigningRestClientModule.bindZonesToProvider(WithZonesFormSigningRestClientModule.java:60)
while locating java.util.Map<java.lang.String, java.lang.String> annotated with @org.jclouds.location.Zone()
for parameter 4 at org.jclouds.location.suppliers.ZoneToRegionToProviderOrJustProvider.<init>(ZoneToRegionToProviderOrJustProvider.java:56)
at org.jclouds.location.suppliers.ZoneToRegionToProviderOrJustProvider.class(ZoneToRegionToProviderOrJustProvider.java:47)
while locating org.jclouds.location.suppliers.ZoneToRegionToProviderOrJustProvider
at org.jclouds.compute.config.BindComputeSuppliersByClass.bindLocationSupplier(BindComputeSuppliersByClass.java:83)
while locating com.google.common.base.Supplier<java.util.Set<? extends org.jclouds.domain.Location>>
at org.jclouds.location.config.LocationModule.supplyLocationCache(LocationModule.java:83)
at org.jclouds.location.config.LocationModule.supplyLocationCache(LocationModule.java:83)
while locating com.google.common.base.Supplier<java.util.Set<? extends org.jclouds.domain.Location>> annotated with @org.jclouds.collect.Memoized()
for parameter 2 at org.jclouds.ec2.compute.functions.EC2ImageParser.<init>(EC2ImageParser.java:73)
at org.jclouds.ec2.compute.functions.EC2ImageParser.class(EC2ImageParser.java:58)
while locating org.jclouds.ec2.compute.functions.EC2ImageParser
for parameter 0 at org.jclouds.ec2.compute.functions.RegionAndIdToImage.<init>(RegionAndIdToImage.java:51)
at org.jclouds.ec2.compute.functions.RegionAndIdToImage.class(RegionAndIdToImage.java:42)
while locating org.jclouds.ec2.compute.functions.RegionAndIdToImage
while locating com.google.common.base.Function<org.jclouds.ec2.compute.domain.RegionAndName, org.jclouds.compute.domain.Image>
at org.jclouds.ec2.compute.config.EC2ComputeServiceDependenciesModule.provideImageMap(EC2ComputeServiceDependenciesModule.java:141)
at org.jclouds.ec2.compute.config.EC2ComputeServiceDependenciesModule.provideImageMap(EC2ComputeServiceDependenciesModule.java:141)
while locating java.util.Map<org.jclouds.ec2.compute.domain.RegionAndName, org.jclouds.compute.domain.Image>
for parameter 2 at org.jclouds.aws.ec2.compute.functions.AWSRunningInstanceToNodeMetadata.<init>(AWSRunningInstanceToNodeMetadata.java:52)
at org.jclouds.aws.ec2.compute.functions.AWSRunningInstanceToNodeMetadata.class(AWSRunningInstanceToNodeMetadata.java:52)
while locating org.jclouds.aws.ec2.compute.functions.AWSRunningInstanceToNodeMetadata
while locating org.jclouds.ec2.compute.functions.RunningInstanceToNodeMetadata
while locating com.google.common.base.Function<org.jclouds.ec2.domain.RunningInstance, org.jclouds.compute.domain.NodeMetadata>
for parameter 1 at org.jclouds.aws.ec2.compute.strategy.AWSEC2GetNodeMetadataStrategy.<init>(AWSEC2GetNodeMetadataStrategy.java:50)
at org.jclouds.aws.ec2.compute.strategy.AWSEC2GetNodeMetadataStrategy.class(AWSEC2GetNodeMetadataStrategy.java:50)
while locating org.jclouds.aws.ec2.compute.strategy.AWSEC2GetNodeMetadataStrategy
while locating org.jclouds.ec2.compute.strategy.EC2GetNodeMetadataStrategy
at org.jclouds.compute.config.BindComputeStrategiesByClass.bindGetNodeMetadataStrategy(BindComputeStrategiesByClass.java:79)
while locating org.jclouds.compute.strategy.GetNodeMetadataStrategy
for parameter 1 at org.jclouds.ec2.compute.strategy.EC2SuspendNodeStrategy.<init>(EC2SuspendNodeStrategy.java:41)
at org.jclouds.ec2.compute.strategy.EC2SuspendNodeStrategy.class(EC2SuspendNodeStrategy.java:41)
while locating org.jclouds.ec2.compute.strategy.EC2SuspendNodeStrategy
at org.jclouds.compute.config.BindComputeStrategiesByClass.bindStopNodeStrategy(BindComputeStrategiesByClass.java:75)
while locating org.jclouds.compute.strategy.SuspendNodeStrategy
for parameter 11 at org.jclouds.aws.ec2.compute.AWSEC2ComputeService.<init>(AWSEC2ComputeService.java:96)
at org.jclouds.aws.ec2.compute.AWSEC2ComputeService.class(AWSEC2ComputeService.java:71)
while locating org.jclouds.aws.ec2.compute.AWSEC2ComputeService
while locating org.jclouds.compute.ComputeService
for parameter 0 at org.jclouds.compute.internal.ComputeServiceContextImpl.<init>(ComputeServiceContextImpl.java:47)
at org.jclouds.compute.internal.ComputeServiceContextImpl.class(ComputeServiceContextImpl.java:47)
while locating org.jclouds.compute.internal.ComputeServiceContextImpl<org.jclouds.ec2.EC2Client, org.jclouds.ec2.EC2AsyncClient>
Caused by: org.jclouds.http.HttpResponseException: ec2.us-east-1.amazonaws.com connecting to POST https://ec2.us-east-1.amazonaws.com/ HTTP/1.1
at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:183)
at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:134)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.net.UnknownHostException:
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:559)
at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1014)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
at org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.convert(JavaUrlHttpCommandExecutorService.java:241)
at org.jclouds.http.internal.JavaUrlHttpCommandExecutorService.convert(JavaUrlHttpCommandExecutorService.java:77)
at org.jclouds.http.internal.BaseHttpCommandExecutorService$HttpResponseCallable.call(BaseHttpCommandExecutorService.java:156)