# Unable to access attachments

**URL:** <https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393>\
**Category:** Help\
**Created:** [January 13, 2022, 8:28am UTC](https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393 "2022-01-13T08:28:50Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![heinzepreller](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/heinzepreller/32/591_2.png) [@heinzepreller](https://vaultwarden.discourse.group/u/heinzepreller)\
**Post date:** [January 13, 2022, 8:28am UTC](https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393/1 "2022-01-13T08:28:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [January 13, 2022, 8:49am UTC](https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393/2 "2022-01-13T08:49:32Z")

</div>

You probably didn’t configured your DOMAIN variable correctly.  
See: [Configuration overview · dani-garcia/vaultwarden Wiki · GitHub](https://github.com/dani-garcia/vaultwarden/wiki/Configuration-overview)

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

---

<div class="post-metadata">

**Author:** ![heinzepreller](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/heinzepreller/32/591_2.png) [@heinzepreller](https://vaultwarden.discourse.group/u/heinzepreller)\
**Post date:** [January 13, 2022, 9:13am UTC](https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393/3 "2022-01-13T09:13:10Z")

</div>

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 !

---

<div class="post-metadata">

**Author:** ![d1vw](https://avatars.discourse-cdn.com/v4/letter/d/9de0a6/32.png) [@d1vw](https://vaultwarden.discourse.group/u/d1vw)\
**Post date:** [December 11, 2023, 9:56pm UTC](https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393/4 "2023-12-11T21:56:46Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![BlackDex](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/blackdex/32/8_2.png) [@BlackDex](https://vaultwarden.discourse.group/u/BlackDex)\
**Post date:** [December 11, 2023, 11:24pm UTC](https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393/5 "2023-12-11T23:24:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ShadowPulse](https://yyz2.discourse-cdn.com/free1/user_avatar/vaultwarden.discourse.group/shadowpulse/32/1237_2.png) [@ShadowPulse](https://vaultwarden.discourse.group/u/ShadowPulse)\
**Post date:** [December 12, 2023, 8:36pm UTC](https://vaultwarden.discourse.group/t/unable-to-access-attachments/1393/6 "2023-12-12T20:36:52Z")

</div>

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