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 · 3 comments
Labels
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

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

No branches or pull requests

2 participants