Netflix/asgard

Asgard services fail to start on version 1.5.1

clebio opened this issue · 0 comments

I have issues similar to #448 and #534, but those issue titles don't seem to fit my scenario.

I'm attempting to upgrade from Asgard version 1.4.2 to 1.5.1 and, when starting /opt/apache-tomcat-7.0.64/bin/startup.sh, I get the following:

[2015-06-23 16:24:16,550] [localhost-startStop-1] grails.web.context.GrailsContextLoader    Error initializing the application: Error creating bean with name 'eurekaClientHolder': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanC
reationException: Error creating bean with name 'healthcheckService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverService': Initialization of bean failed; nested excepti
on is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsAutoScalingService': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'applicationSe
rvice': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.netflix.asgard.AwsEc2Service com.netflix.asgard.applications.SimpleDBApplicationService.awsEc2Service;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'awsEc2Service': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'taskSer
vice': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowService': Invocation of init method failed; nested exception is com.amazonaws.AmazonClientException: Unable to load AWS
credentials from any provider in the chain

followed by many more lines of errors, ending with

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flowService': Invocation of init method failed; nested exception is com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain
        ... 5 more
Caused by: com.amazonaws.AmazonClientException: Unable to load AWS credentials from any provider in the chain
        at com.amazonaws.auth.AWSCredentialsProviderChain.getCredentials(AWSCredentialsProviderChain.java:117)
        at com.amazonaws.services.simpleworkflow.AmazonSimpleWorkflowClient.invoke(AmazonSimpleWorkflowClient.java:3161)
        at com.amazonaws.services.simpleworkflow.AmazonSimpleWorkflowClient.listDomains(AmazonSimpleWorkflowClient.java:1108)
        at com.netflix.asgard.AwsSimpleWorkflowService$6.makeRequest(AwsSimpleWorkflowService.groovy:445)
        at com.netflix.asgard.retriever.AwsResultsRetriever.retrieve(AwsResultsRetriever.groovy:48)
        at com.netflix.asgard.AwsSimpleWorkflowService.retrieveDomainsAndEnsureDomainIsRegistered(AwsSimpleWorkflowService.groovy:424)
        at com.netflix.asgard.FlowService.afterPropertiesSet(FlowService.groovy:69)

I've set ASGARD_HOME, AWS_SECRET_KEY_ID, and AWS_ACCESS_KEY_ID environment variables, and head ~/.asgard/Config.groovy contains:

grails {
        awsAccounts=[‘redacted’]
        awsAccountNames=[‘redacted:’dev']
}
secret {
        accessId=‘redacted’
        secretKey=‘re/dacted’
}

Little help?