H
Homarr2d ago
Ninja

homarr gone by mistake

yes i know its a little stupid, looking to see if there is any way i could restore it
Solution:
Ok, then you can copy the compose from https://homarr.dev/docs/getting-started/installation/docker#installation into your Dockge and adjust the path ./homarr/appdata to /opt/stacks/homarrrr/homarr/appdata. Replace the value of the SECRET_ENCRYPTION_KEY variable with your previous secret encryption key. If you lost it, you can choose the autogenerated one from the documentation, but you'll have to re-setup all integrations....
Docker | Homarr documentation
Docker is our recommended installation method for beginners and professionals.
Jump to solution
36 Replies
Cakey Bot
Cakey Bot2d ago
Thank you for submitting a support request. Depending on the volume of requests, our team should get in contact with you shortly.
⚠️ Please include the following details in your post or we may reject your request without further comment: - Log (See https://homarr.dev/docs/community/faq#how-do-i-open-the-console--log) - Operating system (Unraid, TrueNAS, Ubuntu, ...) - Exact Homarr version (eg. 0.15.0, not latest) - Configuration (eg. docker-compose, screenshot or similar. Use ``your-text`` to format) - Other relevant information (eg. your devices, your browser, ...)
Frequently Asked Questions | Homarr documentation
Can I install Homarr on a Raspberry Pi?
Ninja
NinjaOP2d ago
please ignore the tag there is no bug its just me losing my mind rn
Ninja
NinjaOP2d ago
Ninja
NinjaOP2d ago
context is: >downed my containers >ran this command: sudo docker system prune -a --volumes --force >everything is nuked
Manicraft1001
Manicraft10012d ago
How did you install Homarr?
Ninja
NinjaOP2d ago
via dockge
Manicraft1001
Manicraft10012d ago
Please post the docker compose or run command
Ninja
NinjaOP2d ago
this is the only thing that's left
No description
Manicraft1001
Manicraft10012d ago
Can you navigate into db and execute an ls?
Ninja
NinjaOP2d ago
No description
Ninja
NinjaOP2d ago
i found an old secret key if that helps
Manicraft1001
Manicraft10012d ago
Ok, so the first step is to make a full backup of all files in the appdata directory. Store it on a different machine, for example your desktop. The next step is to figure out your previous encryption key. Do you still have it? Do not post it here, treat it like a password! The good news is that you data is likely still there. Let me know, once you completed the backup. I'll give you further instructions afterwards.
Ninja
NinjaOP2d ago
hold on, i also found this
Ninja
NinjaOP2d ago
No description
Ninja
NinjaOP2d ago
i will do the backup rn
Manicraft1001
Manicraft10012d ago
Those are likely the directories from your 0.15.10 or previous installation. Not relevant anymore. But do not delete them just in case. Just to confirm, you were running 1.0.0 or higher and not 0.15.10 or lower?
Ninja
NinjaOP2d ago
yes i was running the latest version i have /appdata in another pc now backup done
Manicraft1001
Manicraft10012d ago
Before we continue, can you confirm that the db.sqlite file is present in your backup?
Ninja
NinjaOP2d ago
yessir
Ninja
NinjaOP2d ago
No description
Manicraft1001
Manicraft10012d ago
Perfect, from now on do not touch that directory just to be safe. Are you still using Dockge?
Ninja
NinjaOP2d ago
alright i reinstalled it but its empty
Solution
Manicraft1001
Manicraft10012d ago
Ok, then you can copy the compose from https://homarr.dev/docs/getting-started/installation/docker#installation into your Dockge and adjust the path ./homarr/appdata to /opt/stacks/homarrrr/homarr/appdata. Replace the value of the SECRET_ENCRYPTION_KEY variable with your previous secret encryption key. If you lost it, you can choose the autogenerated one from the documentation, but you'll have to re-setup all integrations.
Docker | Homarr documentation
Docker is our recommended installation method for beginners and professionals.
Manicraft1001
Manicraft10012d ago
After that, you can attempt to start the stack in Dockge and try to access Homarr. If all went well, you should have access to your data again
Ninja
NinjaOP2d ago
okay, on it
Manicraft1001
Manicraft10012d ago
For future reference, the --force flag is purposely named in a dangerous way, because it deletes all data, that is un-mounted (e.g. resides in volumes). The data that was hosted there is likely gone. If it was really important, you could try to send the disk to a data recovery company (expect high entry cost, likely > 800$). Homarr was not deleted by this command, because we recommend you to mount the data onto directories in your file system. If you leave them un-mounted, the same thing would have happened to Homarr and your data would be gone.
Ninja
NinjaOP2d ago
No description
Manicraft1001
Manicraft10012d ago
Your SECRET_ENCRYPTION_KEY is misaligned. See the docs again.
Ninja
NinjaOP2d ago
its alright, there was not much that is dockerize, the main thing that killed me is homarr, cuz i spent alot of time adjusting it on it
Manicraft1001
Manicraft10012d ago
No worries. As a general recommendation, read the docs before you do something. Your mistake is because you didn't plan and prepare. Try to think more carefully about the operations you do on your system 🙂
Ninja
NinjaOP2d ago
that is true appreciate the advice
Manicraft1001
Manicraft10012d ago
You're welcome. Were you able to restore it?
Ninja
NinjaOP2d ago
it is back but the key was wrong i believe honestly that is good enough for me sorry i posted the picture i deleted it
Manicraft1001
Manicraft10012d ago
Awesome. Just re-enter the credentials for the integrations then Can I mark this as resolved?
Ninja
NinjaOP2d ago
No description
Ninja
NinjaOP2d ago
it is resolved, thank you very very much

Did you find this page helpful?