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

rpc error: code = Unauthenticated desc = invalid session: Token is not valid yet when using un/pass #454

Open
md850git opened this issue Oct 9, 2024 · 4 comments
Labels
on-hold Issues or Pull Requests with this label will never be considered stale question Further information is requested

Comments

@md850git
Copy link

md850git commented Oct 9, 2024

Terraform Version, ArgoCD Provider Version and ArgoCD Version

Terraform version: 1.6.6
ArgoCD provider version: 6.1.1
ArgoCD version:v2.10.1+a79e0ea

Terraform configuration

provider "argocd" {
  server_addr = local.argo_hostname
  username    = "admin"
  password    = data.aws_secretsmanager_secret_version.mysecret.secret_string
  insecure    = true
  grpc_web    = true
  user_agent  = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0"
}

Question

rpc error: code = Unauthenticated desc = invalid session: Token is not valid yet

how do i fix this issue. i can login fine through the console fine with the same admin creds

@md850git md850git added the question Further information is requested label Oct 9, 2024
@mkilchhofer
Copy link
Collaborator

i can login fine through the console fine with the same admin creds

What do you mean by "through the console"? Via the Argo CD CLI client?
If so, can you share the command which worked?

@md850git
Copy link
Author

i can login fine through the console fine with the same admin creds

What do you mean by "through the console"? Via the Argo CD CLI client? If so, can you share the command which worked?

I used the gui to login

@mkilchhofer
Copy link
Collaborator

Very strange that you use username and password and it errors something about the token

rpc error: code = Unauthenticated desc = invalid session: Token is not valid yet

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the Stale label Dec 15, 2024
@the-technat the-technat added on-hold Issues or Pull Requests with this label will never be considered stale and removed Stale labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on-hold Issues or Pull Requests with this label will never be considered stale question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants