Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

[CRITICAL] Error starting event stream handler: NoCredentialProviders: no valid providers in chain. Deprecated. #204

Open
ldangela opened this issue Jul 14, 2017 · 1 comment

Comments

@ldangela
Copy link

I'm testing blox locally.

So I have installed the docker containers on my computer with the following command "docker-compose up -d"

I use aws account with an assume role.

When I run the following command "aws ecs list-clusters --region eu-west-1 --profile qualif-admin" on my computer it works. So I suppose that my aws profile file is ok.

I have changed the REGION and the default value of the AWS_PROFILE variable by my profile in the docker-compose file.

But after a while I have this error for bloxoss/cluster-state-service:0.3.0:

2017-07-14T16:48:57Z [INFO] Reconciler loading tasks and instances
2017-07-14T16:50:58Z [CRITICAL] Error starting event stream handler: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
Failed to list ECS clusters.
github.com/blox/blox/cluster-state-service/handler/reconcile/loader.clientWrapper.listClusters
/go/src/github.com/blox/blox/cluster-state-service/handler/reconcile/loader/ecs_wrapper.go:75
github.com/blox/blox/cluster-state-service/handler/reconcile/loader.clientWrapper.ListAllClusters
/go/src/github.com/blox/blox/cluster-state-service/handler/reconcile/loader/ecs_wrapper.go:54
github.com/blox/blox/cluster-state-service/handler/reconcile/loader.(*clientWrapper).ListAllClusters
:6
github.com/blox/blox/cluster-state-service/handler/reconcile/loader.taskLoader.LoadTasks
/go/src/github.com/blox/blox/cluster-state-service/handler/reconcile/loader/taskloader.go:73
github.com/blox/blox/cluster-state-service/handler/reconcile/loader.(*taskLoader).LoadTasks
:20
github.com/blox/blox/cluster-state-service/handler/reconcile.(*Reconciler).RunOnce
/go/src/github.com/blox/blox/cluster-state-service/handler/reconcile/reconciler.go:89
github.com/blox/blox/cluster-state-service/handler/run.StartClusterStateService
/go/src/github.com/blox/blox/cluster-state-service/handler/run/run.go:85
main.main
/go/src/github.com/blox/blox/cluster-state-service/main.go:45
runtime.main
/usr/local/go/src/runtime/proc.go:183
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:2086
Error listing clusters from ECS
github.com/blox/blox/cluster-state-service/handler/reconcile/loader.taskLoader.LoadTasks
/go/src/github.com/blox/blox/cluster-state-service/handler/reconcile/loader/taskloader.go:75
github.com/blox/blox/cluster-state-service/handler/reconcile/loader.(*taskLoader).LoadTasks
:20
github.com/blox/blox/cluster-state-service/handler/reconcile.(*Reconciler).RunOnce
/go/src/github.com/blox/blox/cluster-state-service/handler/reconcile/reconciler.go:89
github.com/blox/blox/cluster-state-service/handler/run.StartClusterStateService
/go/src/github.com/blox/blox/cluster-state-service/handler/run/run.go:85
main.main
/go/src/github.com/blox/blox/cluster-state-service/main.go:45
runtime.main
/usr/local/go/src/runtime/proc.go:183
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:2086
Failed to reconcile. Could not load tasks.
github.com/blox/blox/cluster-state-service/handler/reconcile.(*Reconciler).RunOnce
/go/src/github.com/blox/blox/cluster-state-service/handler/reconcile/reconciler.go:91
github.com/blox/blox/cluster-state-service/handler/run.StartClusterStateService
/go/src/github.com/blox/blox/cluster-state-service/handler/run/run.go:85
main.main
/go/src/github.com/blox/blox/cluster-state-service/main.go:45
runtime.main
/usr/local/go/src/runtime/proc.go:183
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:2086
Error bootstrapping
github.com/blox/blox/cluster-state-service/handler/run.StartClusterStateService
/go/src/github.com/blox/blox/cluster-state-service/handler/run/run.go:87
main.main
/go/src/github.com/blox/blox/cluster-state-service/main.go:45
runtime.main
/usr/local/go/src/runtime/proc.go:183
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:2086

could you help me please ?

@narehayrapetyan
Copy link
Contributor

@ldangela when you say after a while cluster state starts failing do you mean it works for a while or does the first ECS call fail? If none of the ECS calls go through but you can make calls through the cli it might be a go sdk bug (also see here: aws/aws-sdk-go#348). You can try upgrading the sdk on your side and I'll try to duplicate it as well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants