Trying to install Vaultwarden error

I am trying to install Vaultwarden from the app center, I am getting

dependency failed to start: container ix-vaultwarden-postgres-1 is unhealthy

I THINK the permissions are right. I gave 568 and 999 permissions to the dataset.

Thanks for any help! New to TrueNAS

Must be permissions. I created it but did not move the data or postgres locations and it works. I’ll continue to play but any help from someone who has deployed this would be apricated.

postgress needs permissions for unix user 999

Yup, I mentioned in the original post, 999 has permissions already. Here is the permissions for the dataset

image

I think it’s probably objecting to the NFSv4 permissions instead of unix. What happens if you set the Automatic Permissions checkbox when you mount the host path in the installer?

I get the same error

Try creating a new dataset with the generic preset, don’t set up an acl, and then check Automatic Permissions

That might be it, I see this. How did I do that? How do I change it to unix?

image

Creating a new dataset worked. Did setting an ACL change that from Unix?

Potentially or you used a preset that defaults to NFSv4 (the apps preset would, for example)

1 Like

So now I am trying to add my user to the permissions and it appears to change it from unix. How can I add a user for permissions without changing it?

What user are you trying to add?

Myself, so I can browse to the files if need. Backups or something.

Ok actually I just did a few test installs and it looks like it wasn’t the ACL type but I think the fact that your initial dataset contained an ACL already may have been preventing the Automatic Permissions chown from working.

Both of these are working installs, with permissions set automatically, so I think as long as you keep the Owner and group as 999:999 (netdata:docker) you should be good to add your user.

image

Also, the container is starting but Vaultwarden is not. Looks like permissions again.

2025-01-22 21:11:14.050448+00:00[2025-01-22 15:11:14.050][vaultwarden][ERROR] Error creating private key ‘data/rsa_key.pem’
2025-01-22 21:11:14.050463+00:00Io.
2025-01-22 21:11:14.050471+00:00[CAUSE] Os {
2025-01-22 21:11:14.050477+00:00code: 2,
2025-01-22 21:11:14.050490+00:00kind: NotFound,
2025-01-22 21:11:14.050496+00:00message: “No such file or directory”,
2025-01-22 21:11:14.050502+00:00}
2025-01-22 21:11:14.050508+00:00Exiting Vaultwarden!

I was going to browse to that folder to look and could not with my user

Checking these now. Have an meeting soon, might not get back for a while.

My guess on this one would be that 568 doesn’t have full permissions for the config Data Storage database. Are you using one dataset for both Data Storage and Postgres Data Storage? It should be two.

Just got home, going to take this back up. I am using 3 datasets, the root (for the app), one for data, and one for the DB.

I added myself, once I did when “postgres_upgrade” starts it’s reported as “creashed” with

cat: /var/lib/postgresql/data/PG_VERSION: Permission denied

One would assume, since this is an app, that this should be all worked out. If it’s just permissions it should be easier ha.

Looks like at this point postgres permissions are fine, now it’s the vaultwarden container that has some.

[vaultwarden][ERROR] Error creating private key ‘data/rsa_key.pem’

Think I got it. I had to change the UID\GID in the app settings for Vaultwarden as well. Just dawned on me, if I am not setting the ACL, that container will need it.

However, I do run backups of the apps folder that contains the configs for all the apps. I need to figure out how to add permissions to me for that dataset. Pretty sure it stops working if I add me.