Total data loss #1048
|
Hello, Thanks in advance for any support you can provide. I installed babybuddy to TrueNAS Scale via Dockge. Compose File: services: Worked well for 4 weeks - very happy with my experience. Recently, I lost all data. This occurred after a series of troubleshooting steps for a separate TrueNAS App install, including several system restarts. I was logged out of babybuddy. I tried to use my credentials to log back in, but they no longer worked. I did the following in CLI:
Logged into babybuddy with new password and data was gone. Went to find database - which I believe is located at /config/data/db.sqlite3. Ran
If I'm not mistaken, a database of 1020K size is equivalent to fresh install. Am I screwed, or is the data stored elsewhere? |
Replies: 3 comments 10 replies
|
@lambertp11 unfortunately that does sound like a fresh install database My best guess here is that the data is not persisted? So you would lose it any time the container the restarts? My Docker knowledge is not particularly strong so I don't know exactly what that config should look like. But to test/confirm if that is the case you could try adding some data and restarting the service. Does the data persist or go away again? |
|
Hey @cdubz - thanks for the super quick response. I will give this a try today and report back. |
|
@cdubz - Prior to service restart, I felt I needed to first prove that the 1020K value would change with adding entries. I added 13 entries total between diaper changes and feeds. Using
The timestamp is accurate per last modification, but the size (which I believe is the 1020K value) isn't changing as I add data to the babybuddy UI. |
Hey @cdubz. I discovered the source of my error was a typo for in the path in the volume mount (/mnt/SDDpool instead of /mnt/SSDPool). I suspect a new directory outside of zfs was created on the host root filesystem when I launched the container. I expect that the system reboot cleared whatever temporary location it was sitting in.