Unable to access attachments

Hi,

i recently moved my docker-vaultwarden installation from one host to another.

I did that by simply making a tar of all the data and volumes and spinning it up on the new host with docker-compose.

Everything works except one thing: the attachments.

  • i see all of my attachemnts in the gui
  • if i click them i got a spinner in the gui (spinning till infinity)
  • i see the download request in vaultwardens container log

But im not able to retrieve my attachments.

What am i missing, is there a proper way to export/backup attachments or is this simply not supported ?

Any tipps on this would be great, thx

You probably didn’t configured your DOMAIN variable correctly.
See: Configuration overview · dani-garcia/vaultwarden Wiki · GitHub

Also check the /admin/diagnostics page which should report an issue if it is incorrect.

2 Likes

Wow that was fast, you were right got wrong domain, cause i didn’t know that the general settings override env vars.

Attachemnts are working now, many thanks !

What is the root cause of this with the attachments? Is it because the *.js file is attempting to ‘donwload’ the attachment via configured fqdn?

I was testing DR setup recently and noticed accessing by IP instead of fqdn produces this error as well. For various reasons, imo, it would be beneficial where attachments worked if accessed by IP because a ton of things could go wrong that the fqdn or primary host is not working and dns doesn’t point to the proper/active vm (like invalid certificate). Everything else seems to be working fine accessing by IP via web browswer (not the app).

Just change the DOMAIN variabele to your IP in those cases instead.

There is some work done on multi domain support, but nothing finished yet.

Also keep in mind that you either need a valid cert, or localhost connect to be able to access the web-vault.

Well, thanks for sharing those resources. Any additional info on that?