Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AWS SQS Connector failed to get environment variable #46

Open
AnthraX1 opened this issue Jan 2, 2021 · 3 comments
Open

AWS SQS Connector failed to get environment variable #46

AnthraX1 opened this issue Jan 2, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@AnthraX1
Copy link
Contributor

AnthraX1 commented Jan 2, 2021

I'm following the docs at https://docs.fission.io/docs/triggers/message-queue-trigger-kind-keda/aws-sqs/ . I've setup kubectl secrets per instruction and ran fission mqt create --name sqstest --function sqstest --mqtype=aws-sqs-queue --topic=fission-test --mqtkind=keda --metadata queueURL=https://sqs.us-west-2.amazonaws.com/xxxxx/fission-test --metadata awsRegion=us-west-2 --secret aws-secret to create the trigger. However, the connector pod won't start correctly:

kubectl get pods -A

...
default sqstest-7d6fc4d78c-whq4w 0/1 CrashLoopBackOff 1 11s
...

kubectl logs sqstest-7d6fc4d78c-whq4w

{"level":"error","ts":1609595317.8034132,"caller":"app/main.go:201","msg":"failed to fetch aws config","error":"no aws configuration specified","stacktrace":"main.main\n\t/app/main.go:201\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:200"}

kubectl get pod sqstest-7568bc9cbd-c7gjd -o json

.... "spec": { "containers": [ { "env": [ { "name": "TOPIC", "value": "fission-test" }, { "name": "HTTP_ENDPOINT", "value": "http://router.fission/fission-function/sqstest" }, { "name": "ERROR_TOPIC" }, { "name": "RESPONSE_TOPIC" }, { "name": "SOURCE_NAME", "value": "sqstest" }, { "name": "MAX_RETRIES", "value": "0" }, { "name": "CONTENT_TYPE", "value": "application/json" }, { "name": "AWS_REGION", "value": "us-west-2" }, { "name": "QUEUE_URL", "value": "https://sqs.us-west-2.amazonaws.com/xxxxxxxxx/fission-test" }, { "name": "AWS_ACCESS_KEY_ID", "value": "xxxxxxxxxxxxx" }, { "name": "AWS_SECRET_ACCESS_KEY", "value": "xxxxxxxxxxxxx" } ], "image": "fission/keda-aws-sqs-http-connector:1", ....

From the pod env you can see the access keys are correctly set but the pod still crashes with the same error.

@AnthraX1 AnthraX1 changed the title AWS SQS Connector access key setup problem AWS SQS Connector failed to get environment variable Jan 2, 2021
@AnthraX1
Copy link
Contributor Author

AnthraX1 commented Jan 2, 2021

OK, seems the image on dockerhub is behind:
https://hub.docker.com/r/fission/keda-aws-sqs-http-connector/ is using commit before 79b8796

@jry-anchor
Copy link

I edited the deployment for the sqs connector pod -- for me in the default ns pod deployment.apps/<trigger name> -- to use the old env var names and it runs now. Who knows if that will be reverted though, since fission somehow owns that deployment

@jry-anchor
Copy link

jry-anchor@1b0c6cb would be an easy fix without waiting for a fission release if we could get someone to update the fission/keda-aws-sqs-http-connector:1 docker image tag in-place. I assume c68eb4e was the source of that build, so my commit is on top of it.

@NikhilSharmaWe NikhilSharmaWe added the bug Something isn't working label Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants