# Duplicati userdata gone after container restart

**URL:** https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381
**Category:** Support
**Created:** [December 20, 2020, 5:13pm UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381 "2020-12-20T17:13:04Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Nemesis](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@Nemesis](https://forum.duplicati.com/u/Nemesis)
#### Post date: [December 20, 2020, 5:13pm UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381/1 "2020-12-20T17:13:05Z")

</div>

I’m using the Duplicati/Duplicati docker container. I have the container folder /data mounted to a folder on my disk. The folder in my disk is also full with sqlite files etc, but after a restart of my NAS, the device Duplicati is running on, my userdata within Duplicati is completely gone. I even got the “first time setup” popup, asking if this is a multi user environment or not. Backup tasks are gone too.

How is this possible? I have all mounts as the doc says and the folders are in use as well.

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [December 20, 2020, 7:55pm UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381/2 "2020-12-20T19:55:40Z")

</div>

Sounds like the /data mapping to the host didn’t stick after a reboot. What NAS are you using? You confirmed the docker config for the Duplicati container is still mapping /data to the host?

If you get a shell prompt to the container itself, does /data show any files?

Here are me doing those checks on my Synology Docker Duplicati container:

 ![Capture](https://forum.duplicati.com/uploads/default/original/2X/1/1791553c4b44db946d8d4e07827a991e8a79dc7d.png)

---

<div class="post-metadata">

### Author: ![Nemesis](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@Nemesis](https://forum.duplicati.com/u/Nemesis)
#### Post date: [December 20, 2020, 8:13pm UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381/3 "2020-12-20T20:13:38Z")

</div>

I am using a Synology NAS.

The container does see the /data folder

 ![Screenshot_2](https://forum.duplicati.com/uploads/default/original/2X/c/cec90293d49210a5431e04ee8c733a0a653ff530.png)

But when i go to the Duplicati WebUI everything is still gone :(.

 ![Screenshot_3](https://forum.duplicati.com/uploads/default/original/2X/e/ee291149944f3f29d76fe3dad7a8b05ac3229ed1.png)

---

<div class="post-metadata">

### Author: ![Nemesis](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@Nemesis](https://forum.duplicati.com/u/Nemesis)
#### Post date: [December 26, 2020, 9:37am UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381/4 "2020-12-26T09:37:11Z")

</div>

Hi there. Do you have any idea what’s going on by my previous post? Of course i can reconfigure all my backup tasks and they should work fine but i don’t want to risk losing everything again. What’s going on and why did this happen?

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [December 26, 2020, 4:56pm UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381/5 "2020-12-26T16:56:01Z")

</div>

It still sounds like your container is not set up properly to me. Can you look at the volume mappings in the Docker config screen? Mine looks like this:

 ![Capture](https://forum.duplicati.com/uploads/default/original/2X/6/653d7ae9b9b99c2f7349d025e141c924ace65eee.png)

---

<div class="post-metadata">

### Author: ![Nemesis](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/n/96bed5/32.png) [@Nemesis](https://forum.duplicati.com/u/Nemesis)
#### Post date: [December 27, 2020, 10:36am UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381/7 "2020-12-27T10:36:02Z")

</div>

Here is a screenshot. I think my volume mapping is OK but for some reason my environment variables are suddenly empty, i dont remember setting it up like that. Could that be the cause? I see you have quite some variables. What am i supposed to have there? On the [Docker Hub](https://hub.docker.com/r/duplicati/duplicati/) page i don’t see many environment variables listed.

 ![image](https://forum.duplicati.com/uploads/default/original/2X/a/ac47e02447ec105232a1fadc1f17a0a551c7125b.png)

EDIT: I just took all default environment variables that it gives me when i try to deploy a new Duplicati container, pasted them in my existing container and everything works again, all backup tasks are back like normal, so it seems fixed! I am not sure how my environment variables got wiped. Thanks for the help @drwtsn32

---

<div class="post-metadata">

### Author: ![drwtsn32](https://forum.duplicati.com/user_avatar/forum.duplicati.com/drwtsn32/32/2591_2.png) [@drwtsn32](https://forum.duplicati.com/u/drwtsn32)
#### Post date: [December 27, 2020, 2:56pm UTC](https://forum.duplicati.com/t/duplicati-userdata-gone-after-container-restart/11381/8 "2020-12-27T14:56:22Z")

</div>

Good catch! Not sure how your variables were wiped out either. Glad you were able to resolve the issue!
