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

Authentication issue when trying to process orders #8

Closed
rkralston opened this issue Aug 27, 2019 · 18 comments
Closed

Authentication issue when trying to process orders #8

rkralston opened this issue Aug 27, 2019 · 18 comments

Comments

@rkralston
Copy link

I have everything set up. I run the order generator. I can see the messages hitting the queue. Nothing happens in AKS.

When I look at the k8s tool in Code, the order-processor has a red dot next to it. I'm not sure what to do from there.

I noticed in the YAML that it is pulling the image from your Docker account?

Should I package that in a new container and deploy the image to my ACR?

@rkralston
Copy link
Author

I created the local docker image and ran it as in the src readme. When I look at the logs, they show failures:
[10:11:54]fail: Keda.Samples.Dotnet.OrderProcessor.OrdersQueueProcessor[0] Unable to process message Microsoft.Azure.ServiceBus.UnauthorizedException: Put token failed. status-code: 401, status-description: ExpiredToken: The token is expired. Expiration time: '2019-08-27 11:11:54Z'.

@tomkerkhove
Copy link
Member

The service bus connection string does not seem to be valid anymore, can you verify that?

@rkralston
Copy link
Author

rkralston commented Aug 28, 2019

The generator is not having an issue creating messages with that connection string.

I've created 604 messages that I can't remove.

@tomkerkhove
Copy link
Member

The generator uses send permissions while the message pump uses receive permission. So that is not a guarantee, can you pleasure generate a new one with these permissions please?

@rkralston
Copy link
Author

Getting the same result with new key.

@tomkerkhove tomkerkhove changed the title Nothing Happening in AKS, Help!! Authentication issue when trying to process orders Aug 29, 2019
@tomkerkhove
Copy link
Member

Are you sure that the generated base64 representation is correct? (ie no trailing spaces)

The error clearly indicates that it's an authentication issue when trying to start processing the messages

@rkralston
Copy link
Author

I'm copying it using the portal copy function.

I've tried to stand the Processor up locally, from the command line, outside Docker. I can't get that to run. I keep getting JSON error.

@tomkerkhove
Copy link
Member

Are you creating the subscription on the queue itself or the namespace? I presume you've verified that you have Receive/Manage permissions?

Does it work in Service Bus Explorer?

@rkralston
Copy link
Author

On the queue.

Not sure what you mean by verify. I looked at both subscriptions and they both have manage.

I'll try service bus explorer tomorrow.

@tomkerkhove
Copy link
Member

Hi @rkralston, did you manage to test this? If so, did you get it working?

@rkralston
Copy link
Author

No. We abandoned KEDA b/c it is considered experimental by MS.

@tomkerkhove
Copy link
Member

That's fair. For what it's worth, that might change soon.

@rkralston
Copy link
Author

rkralston commented Nov 5, 2019 via email

@jakobehn
Copy link
Contributor

jakobehn commented Dec 6, 2019

Keda went GA back in november, and is ready for production usage:
https://cloudblogs.microsoft.com/opensource/2019/11/19/keda-1-0-release-kubernetes-based-event-driven-autoscaling/

@jakobehn
Copy link
Contributor

For what it's worth, I had this exact error when running a Docker container on my local machine that (at the time) had an incorrect system time. Clock mismatch makes the SAS token validation go nuts. After manually setting the correct time on my host, the problem went away

@johnknoop
Copy link

johnknoop commented Jan 25, 2020

I'm getting this despite having the correct time on my docker host 😕

Edit: restarting the host solved the problem.

@tomkerkhove
Copy link
Member

Good to hear and sorry for the issues, unfortunately there's not much I can do about it..

@crgarcia12
Copy link

I just had the same situation. Restarting docker worked

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

No branches or pull requests

5 participants