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

vaultwarden fails to start after upgrade #1398

Closed
charlespope opened this issue Jan 19, 2025 · 10 comments
Closed

vaultwarden fails to start after upgrade #1398

charlespope opened this issue Jan 19, 2025 · 10 comments
Assignees

Comments

@charlespope
Copy link

I selected to upgrade from v 1.0.4 to ver 1.32.1
The new version downloaded but failed to deploy
The logs show "connection to server at "postgres" (172.16.1.2), port 5432 failed: FATAL: password authentication failed for user "vaultwarden"\n""
Editing the setup shows the same password I have been using. I have not changed the password

@charlespope
Copy link
Author

charlespope commented Jan 20, 2025

Additional information:
I am running TrueNAS-24.10.0.
When I roll back the app it starts successfully

@stavros-k
Copy link
Contributor

Check the config.json in the /config directory inside the container. Does it container the password? if yes, does it show the correct password?

@charlespope
Copy link
Author

@stavros-k thanks for replying. I have checked both the vaultwarden shell and the postgres shell and there is no /config directory. I also looked around in /mnt/.ix-apps/ from the system shell but could not find a config directory or config.json for vaultwarden. Am I looking in the right place?

@stavros-k
Copy link
Contributor

Whoops, sorry. Its under /data/config.json

@stavros-k
Copy link
Contributor

Let me know if you still have issues.

@stavros-k stavros-k closed this as not planned Won't fix, can't repro, duplicate, stale Jan 27, 2025
@charlespope
Copy link
Author

Still not found it. The /data directory in the vaultwarden shell only contains

drwxr-xr-x 2 568 568 2 Oct 14 10:11 attachments
drwxr-xr-x 2 568 568 253 Jan 25 18:08 icon_cache
-rw-r--r-- 1 568 568 1675 Oct 14 10:11 rsa_key.pem
drwxr-xr-x 2 568 568 2 Oct 14 10:11 sends
drwxr-xr-x 2 568 568 2 Oct 14 10:11 tmp

...and the postgres shell does not have a /data directory.

@stavros-k stavros-k reopened this Jan 27, 2025
@stavros-k
Copy link
Contributor

Interesting... Does postgres logs have anything interesting there?

@charlespope
Copy link
Author

The postgres log currently shows nothing untoward because I rolled back the upgrade. I will try upgrading again and re-creating the error then check the postgres log and let you know.

@charlespope
Copy link
Author

OK same problem happened - failed to deploy. This time I checked the postgres log as well and found
2025-01-27 23:43:37.194230+00:002025-01-27 23:43:37.194 UTC [158] DETAIL: Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"
2025-01-27 23:43:38.204388+00:002025-01-27 23:43:38.204 UTC [159] FATAL: password authentication failed for user "vaultwarden"
....
repeated ...

So, similar error in both logs.

@stavros-k
Copy link
Contributor

Yes but the earlier logs might have more clues.
Also can you clarify what version are you upgrading from and to?

for example v1.0.4 seems to be the version while 1.32.1 seems to be the App Version.

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

No branches or pull requests

2 participants