# User accounts & data gone / deleted

**URL:** <https://community.vikunja.io/t/user-accounts-data-gone-deleted/976>\
**Category:** Support\
**Created:** [14 November 2022 07:16 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976 "2022-11-14T07:16:16Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [14 November 2022 07:16 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/1 "2022-11-14T07:16:16Z")

</div>

Hello everyone,

i have an installation of Vikunja running on an unRAID maschine. My problem is my created user account and its data are just gone. I restore the data from an backup but some time later (this time over night) its gone again.

Is this a misconfiguration on my end? Is it a bug? Does anybody know this issue?

_i’ll add more information about my installation later_

**edit:** it’s probably the problem descriped [here](https://community.vikunja.io/t/after-updating-to-0-20-0-no-login-user-does-not-exist/937).

---

<div class="post-metadata">

**Author:** ![el-fredo](https://community.vikunja.io/user_avatar/community.vikunja.io/el-fredo/32/477_2.png) [@el-fredo](https://community.vikunja.io/u/el-fredo)\
**Post date:** [14 November 2022 07:59 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/2 "2022-11-14T07:59:50Z")

</div>

It was a problem with the docker template for Unraid which has been fixed in the meantime. See my last post in the thread you have linked to.

I had to start from scratch with the latest version, but now the data is stored correctly in the appdata folder. No data-loss anymore.

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [14 November 2022 08:04 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/3 "2022-11-14T08:04:06Z")

</div>

Great, i’ll try to fix it later. I’ll post an update.

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [14 November 2022 18:12 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/4 "2022-11-14T18:12:08Z")

</div>

i fixed it. The data wipe was cause by the faulty docker template. I changed the container version from _latest_ to _0.19.2_ and then back to _latest_ and the data wasn’t wiped.  
I’ve got one small question do you have any advantage by using an external database container?

I’m looking forward to using vikunja without the fear of loosing my notes 🙂

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [14 November 2022 19:56 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/5 "2022-11-14T19:56:33Z")

</div>

If you don’t have a lot of users (since you’re running Vikunja on a nas I guess you have at most a handful of users?) there’s no real benefit of using a separate database. A database is great for scaling but if you don’t need to scale the overhead cost is higher than the benefit.

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [15 November 2022 07:28 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/6 "2022-11-15T07:28:21Z")

</div>

Yeah it’s just me.

**Update:** My user has been deleted again. The interesting thing is i recived a mail telling me _“As requested, we’ve deleted your Vikunja account.”_ eventhough i didn’t request it.  
There is only one log entry at the time where i recieved the mail. No entries for 40 miniutes before and 10 hours after that.  
This entry says that the connection to the mail server has been closed.

I’m a little bit clueless.

> **my config**
>
> ![](https://lh3.googleusercontent.com/u/0/drive-viewer/AFDK6gPFU_YEMebT6KqwBs8jk2dybFjkg2bH65BTP8iTu-mP0vbUi28sqOMZ_qgKAnv8wQpRXHchnIIuKpUHBo7Em1j9YYLy=w1960-h2328)

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [15 November 2022 09:20 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/7 "2022-11-15T09:20:07Z")

</div>

The only way to get that email is by either manually requesting a deletion or if you manually delete a user via the cli. Either way, there’s action from you involved. There should be something about that in the logs in any case.

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [15 November 2022 09:42 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/8 "2022-11-15T09:42:07Z")

</div>

Am I missing something?

> **log**
>
> ![](https://community.vikunja.io/uploads/default/original/1X/d50111b28bf0715b1915f79f5cfac0cd8ee52496.jpeg)

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [15 November 2022 13:50 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/9 "2022-11-15T13:50:21Z")

</div>

There should be a request to `/api/v1/user/deletion/request` if you requested the deletion (which would result in you getting an email with a confirmation request). If not the only way to delete a user is to use the cli with `vikunja user delete [id] --now`.

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [15 November 2022 22:55 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/10 "2022-11-15T22:55:28Z")

</div>

i still can’t explain why this happend nevertheless i could restore the data from a backup. I’ll keep an eye on the logs since i obviously didn’t delete my user.

I couldn’t find a request to `/api/v1/user/deletion/request` in the logs.

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [21 November 2022 07:42 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/11 "2022-11-21T07:42:34Z")

</div>

I discovered a little bit more weirdness:  
When i restore my user data from a dump (and the mailer is set up) i get this mail _" As requested, we’ve deleted your Vikunja account."_ at exactly the next full hour mark.  
This happend multiple times after i restored the data. (e.g. restored it at 16:42, recived the mail at 17:00)

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [23 November 2022 16:26 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/12 "2022-11-23T16:26:07Z")

</div>

Can you check what the value of the `deletion_scheduled_at` field is in the `users.json` file and the db after importing?

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [26 November 2022 14:39 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/13 "2022-11-26T14:39:36Z")

</div>

![image](https://community.vikunja.io/uploads/default/original/1X/3f5392db26fc35982a999ce3274b5e97343ca435.png)

looks like this after i restored the db

_Edit:_

I changed it to `""`. Is this the default?

 ![image](https://community.vikunja.io/uploads/default/original/1X/5e6bb96c9fb1aae567bb065c232a70b33d4763b2.png)

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [28 November 2022 10:02 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/14 "2022-11-28T10:02:49Z")

</div>

This looks like it’s the issue. The column should be something empty or `null`. Will look into a fix.

---

<div class="post-metadata">

**Author:** ![kolaente](https://community.vikunja.io/user_avatar/community.vikunja.io/kolaente/32/5_2.png) [@kolaente](https://community.vikunja.io/u/kolaente)\
**Post date:** [1 December 2022 16:55 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/15 "2022-12-01T16:55:43Z")

</div>

I’ve pushed a fix: [fbc4b91e0f](https://kolaente.dev/vikunja/api/commit/fbc4b91e0f62f3639a5f9774f433fe3d8d7a8d23)  
Please check with the next unstable build (~45 min) if the problem went away.

---

<div class="post-metadata">

**Author:** ![dennis](https://community.vikunja.io/user_avatar/community.vikunja.io/dennis/32/497_2.png) [@dennis](https://community.vikunja.io/u/dennis)\
**Post date:** [2 December 2022 13:40 UTC](https://community.vikunja.io/t/user-accounts-data-gone-deleted/976/16 "2022-12-02T13:40:29Z")

</div>

i’ve switched to the unstable build last night. It looks pretty promising my account is still there (it’s noon now). I’ll comment again when my mail service is working agian had a little f\*\*\* up last night and deleted its config…
