Forum Discussion
Problem with 1Password CLI and Service Account
I am trying to use a service account to read secrets from a vault. And it did work for a few tries but now I get the following error message:
[ERROR] 2024/08/26 08:10:39 failed to re-initialize service account session - number of retries (1) exceeds max (1)
And yes that error message is 1 day old.
I have tried to rotate the token and to create a new service account but nothing has changed. I still get the same error.
$ op --version
2.30.0
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser: Not Provided
4 Replies
- jmader8-xonaNew Contributor
in my case, we're using Linux. estimate at most 10 concurrent 1Password actions using the same "service account" token across CI jobs. more likely that 10-15 operations would execute in rapid succession.
[jenkins@jenkins-builder-1 ~]$ op --version 2.30.3
- 1P_Phil
Moderator
Hi all (veitsanner , Reghyna & jmader8-xona ),
I was just digging into this and am having trouble reproducing the error.
Could you provide a bit more context (environment, script, number concurrent 1P actions...)?
Thanks! Phil
- jmader8-xonaNew Contributor
we hit the same issue using `op inject` in CI/CD pipelines.
for now, we're simply retrying the command a few times with a brief sleep interval. hopefully that covers it.
- ReghynaNew Contributor
Hi, How did you solve the problem?