-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Always error "Logout before server config update" when CLI run in systemd service #10109
Comments
Hi @marius, Thank you for this report. Could you please walk me through how you set that script up? Thank you in advance, |
/usr/libexec/vaultwarden-restore-test
/etc/systemd/system/vaultwarden-restore-test.service
/etc/systemd/system/vaultwarden-restore-test.timer
|
That "vaultwarden-restore-test" file is really scary, with the password stored in plain text in a file that is likely set to be readable by everyone. And echoing VAULT_PASSWORD which may have syntactic suger in it like pound signs, &, quote marks, or semi-colons is just begging for password management pain in the shell scripting, in ways unlikely to occur on a normal command line. |
Well, this is, of course, a restore-test account, and the password doesn't contain any weird characters. |
Hi @marius, Thank you for your patience. This matter has been escalated for further investigation; If you have any additional information that you think may assist, please feel free to post it below. Thank you again, |
I have the same issue with version Version Command:
|
Steps To Reproduce
I'm running the bitwarden CLI client in a script started by systemd to do a restore test of a backup.
Now every time I run
bw config server http://127.0.0.1:55555
I getLogout required before server config update.
even when runningbw logout
right before the command (it saysYou are not logged in.
).When running the same commands in a normal user shell things work as expexted.
bw
is installed via Snap on Ubuntu 24.04.Reverting back to the previous version fixed the issue:
Expected Result
It should just work like in version 2024.6.0.
Actual Result
Error
Logout required before server config update.
Screenshots or Videos
No response
Additional Context
I think the problem was introduced by #9347
Operating System
Linux
Operating System Version
Ubuntu 24.04
Shell
Bash
Build Version
2024.6.1
Issue Tracking Info
The text was updated successfully, but these errors were encountered: