[GH-ISSUE #1232] moved to karakeep db.db overwritten #800

Closed
opened 2026-03-02 11:52:50 +03:00 by kerem · 5 comments
Owner

Originally created by @Tumtum2814 on GitHub (Apr 10, 2025).
Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1232

Describe the Bug

hey there, i just updated to the new branding and for some reason my db got wiped. i think i have a backup but how can i get it to not do the same thing again?

Steps to Reproduce

update to new image names
db is blank

Expected Behaviour

retain db from pre-branding change

Screenshots or Additional Context

No response

Device Details

unraid using komodo for mangement

Exact Hoarder Version

0.23.2

Have you checked the troubleshooting guide?

  • I have checked the troubleshooting guide and I haven't found a solution to my problem
Originally created by @Tumtum2814 on GitHub (Apr 10, 2025). Original GitHub issue: https://github.com/karakeep-app/karakeep/issues/1232 ### Describe the Bug hey there, i just updated to the new branding and for some reason my db got wiped. i think i have a backup but how can i get it to not do the same thing again? ### Steps to Reproduce update to new image names db is blank ### Expected Behaviour retain db from pre-branding change ### Screenshots or Additional Context _No response_ ### Device Details unraid using komodo for mangement ### Exact Hoarder Version 0.23.2 ### Have you checked the troubleshooting guide? - [x] I have checked the troubleshooting guide and I haven't found a solution to my problem
kerem 2026-03-02 11:52:50 +03:00
Author
Owner

@ahgraber commented on GitHub (Apr 11, 2025):

I'm also having an issue that resembles this.

I'm using k3s to host hoarder. To migrate, I deployed karakeep as a separate pod and then cloned the hoarder PVC over to the karakeep PVC. all secrets are the same between instances. however, the karakeep instance does not seem to use the cloned database; when I try to log in with users that exist in the hoarder instance, I get "user not found" errors.

<!-- gh-comment-id:2798038877 --> @ahgraber commented on GitHub (Apr 11, 2025): I'm also having an issue that resembles this. I'm using k3s to host hoarder. To migrate, I deployed karakeep as a separate pod and then cloned the hoarder PVC over to the karakeep PVC. all secrets are the same between instances. however, the karakeep instance does not seem to use the cloned database; when I try to log in with users that exist in the hoarder instance, I get "user not found" errors.
Author
Owner

@MohamedBassem commented on GitHub (Apr 12, 2025):

@Tumtum2814 the branding migration shouldn't result into losing your data at all. It's the same logic, just with a different name. Can you share your docker compose? If you used docker volume, it's very likely that your data is still safe, just not linked to your container. You can check it via "docker volume ls".

<!-- gh-comment-id:2798380662 --> @MohamedBassem commented on GitHub (Apr 12, 2025): @Tumtum2814 the branding migration shouldn't result into losing your data at all. It's the same logic, just with a different name. Can you share your docker compose? If you used docker volume, it's very likely that your data is still safe, just not linked to your container. You can check it via "docker volume ls".
Author
Owner

@MohamedBassem commented on GitHub (Apr 12, 2025):

@ahgraber same comment as above. If you put the data in the same place, karakeep should be able to load it just fine. Can you check the content of your PVC and check the size of the sqlite database and its content?

<!-- gh-comment-id:2798381577 --> @MohamedBassem commented on GitHub (Apr 12, 2025): @ahgraber same comment as above. If you put the data in the same place, karakeep should be able to load it just fine. Can you check the content of your PVC and check the size of the sqlite database and its content?
Author
Owner

@Tumtum2814 commented on GitHub (Apr 12, 2025):

Yeah unfortunately that's not the case. I did some tests and the volume for the data directory is definitely mapped to folder in the main file system. Unfortunately I don't have a backup of the DB. The old assets folder is still there though and shows inside the container. Is there any way to rebuild the DB using the Assets folder or is that purely the images and metadata from saved pages? Otherwise I think I'm starting from scratch :/
I'm away for the weekend but can share the compose when I get back. Thanks for responding! It did reveal that my backup wasn't running, so I'm glad i caught it! Even if it means my karakeep stuff is gone.

<!-- gh-comment-id:2798424231 --> @Tumtum2814 commented on GitHub (Apr 12, 2025): Yeah unfortunately that's not the case. I did some tests and the volume for the data directory is definitely mapped to folder in the main file system. Unfortunately I don't have a backup of the DB. The old assets folder is still there though and shows inside the container. Is there any way to rebuild the DB using the Assets folder or is that purely the images and metadata from saved pages? Otherwise I think I'm starting from scratch :/ I'm away for the weekend but can share the compose when I get back. Thanks for responding! It did reveal that my backup wasn't running, so I'm glad i caught it! Even if it means my karakeep stuff is gone.
Author
Owner

@ahgraber commented on GitHub (Apr 12, 2025):

@MohamedBassem You are correct! I use the same PVC for appdata and meilisearch, but forgot about it, so when i naively copied the PVC it moved it to /data/hoarder rather than unpacking into the correct directories. I'm up and running now.

<!-- gh-comment-id:2798957648 --> @ahgraber commented on GitHub (Apr 12, 2025): @MohamedBassem You are correct! I use the same PVC for appdata and meilisearch, but forgot about it, so when i naively copied the PVC it moved it to /data/hoarder rather than unpacking into the correct directories. I'm up and running now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/karakeep#800
No description provided.