H
Homarr•2mo ago
L0rd

Unfinished Update destroyed Homarr

When I was updating Homarr I cancelled the update by accident and now my Homarr wont work anymore. Is there any way to fix it without losing all my apps and boards?
Solution:
take a backup the run the following ```bash rm -rf /opt/homarr mkdir -p /opt/homarr...
Jump to solution
38 Replies
Cakey Bot
Cakey Bot•2mo 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?
Manicraft1001
Manicraft1001•2mo ago
!qa required_data
Cakey Bot
Cakey Bot•2mo ago
Thank you for your question. Our support team has noted that your request does not meet the minimum required data so we are unable to answer your question. Please provide: - your Homarr logs - your setup configuration (eg. docker compose, docker run, helm chart, screenshot, ...) - A detailed description of your problem or question with additional images where necessary - Your operating system - Version of Homarr (do not say latest! say 0.15.2, ...) Failure to comply with this will result in a permanent closure of your support request.
L0rd
L0rdOP•2mo ago
I have homarr running in a proxmox lxc container with debian on it. When trying to update homarr I get this error: ā ‹ Backup Datacp: cannot stat '/opt/homarr/.env': No such file or directory ā ¦ Backup Data [ERROR] in line 92: exit code 0: while executing command cp /opt/homarr/.env /opt/homarr-data-backup/.env And I cant access the UI because of "Internal Server Error" Currently I have version 1.42.1 And I installed it via the proxmox helper script
Manicraft1001
Manicraft1001•2mo ago
@CrazyWolf13 can you check? Also, why was the process interrupted @L0rd ?
L0rd
L0rdOP•2mo ago
It said that the user cancelled the process but I dont really remember what happened. I think I pressed something wrong. This was a few days ago. Have been trying to fix it ever since.
Manicraft1001
Manicraft1001•2mo ago
You probably sent the interrupt signal, for example by copying text, since CTRL + C also sends an INTR. Please wait for CrazyWolf to reply.
L0rd
L0rdOP•2mo ago
Oh, thanks a lot!
CrazyWolf13
CrazyWolf13•2mo ago
In proxmox you should be able to just roll back to your latest backup of the lxc @L0rd Why it interrupted is difficult to say, either you pressed ctl+c or the build failed, do you possibly run older hardware? If so try bumping the ressources.
L0rd
L0rdOP•2mo ago
Problem is, I dont have one... I thought about reinstalling homarr but than I will loose everything on it
CrazyWolf13
CrazyWolf13•2mo ago
Well that's not good, that should be a lesson to immediately set up proxmox backup server 😬 We can restore, but that will be a bit complicated So setting up backups for your lxc is definitely a thing you should do. Please ping me when you are ready
L0rd
L0rdOP•2mo ago
Yes have to do that I am ready sorry just saw that. sorry for the inconvenience
CrazyWolf13
CrazyWolf13•2mo ago
@L0rd okay, so please send the reults of the following:
ls -al /opt
ls -al /opt/homarr
ls -al /opt
ls -al /opt/homarr
We need this to locate the .env file containing the creds for the db
L0rd
L0rdOP•2mo ago
root@homarr:/opt/homarr# ls -al /opt
homarrtotal 31
drwxr-xr-x 5 root root 6 Oct 20 13:15 .
drwxr-xr-x 18 root root 22 Oct 26 10:17 ..
drwxr-xr-x 5 root root 17 Oct 26 10:44 homarr
drwxr-xr-x 2 root root 3 Oct 26 08:57 homarr-data-backup
drwxr-xr-x 3 root root 4 Oct 25 09:46 homarr_db
-rwxr-xr-x 1 root root 850 Oct 20 13:15 run_homarr.sh
root@homarr:/opt/homarr# ls -al /opt/homarr
total 329
drwxr-xr-x 5 root root 17 Oct 26 10:44 .
drwxr-xr-x 5 root root 6 Oct 20 13:15 ..
drwxr-xr-x 6 root root 6 Oct 20 13:17 apps
-rw-r--r-- 1 root root 695092 Oct 20 13:15 CHANGELOG.md
-rw-r--r-- 1 root root 27 Oct 20 13:15 CODEOWNERS
drwxr-xr-x 2 root root 5 Oct 20 13:15 development
-rw-r--r-- 1 root root 2345 Oct 20 13:15 Dockerfile
-rw-r--r-- 1 root root 18 Oct 20 13:15 .gitattributes
drwxr-xr-x 4 root root 7 Oct 20 13:15 .github
-rw-r--r-- 1 root root 821 Oct 20 13:15 nginx.conf
-rw-r--r-- 1 root root 225 Oct 20 13:15 .npmrc
-rw-r--r-- 1 root root 4432 Oct 20 13:17 package.json
-rw-r--r-- 1 root root 50 Oct 20 13:15 pnpm-workspace.yaml
-rw-r--r-- 1 root root 126 Oct 20 13:17 redis.conf
-rw-r--r-- 1 root root 981 Oct 20 13:15 .releaserc.json
-rw-r--r-- 1 root root 1922 Oct 20 13:15 turbo.json
-rw-r--r-- 1 root root 86 Oct 20 13:15 vitest.setup.ts
root@homarr:/opt/homarr#
root@homarr:/opt/homarr# ls -al /opt
homarrtotal 31
drwxr-xr-x 5 root root 6 Oct 20 13:15 .
drwxr-xr-x 18 root root 22 Oct 26 10:17 ..
drwxr-xr-x 5 root root 17 Oct 26 10:44 homarr
drwxr-xr-x 2 root root 3 Oct 26 08:57 homarr-data-backup
drwxr-xr-x 3 root root 4 Oct 25 09:46 homarr_db
-rwxr-xr-x 1 root root 850 Oct 20 13:15 run_homarr.sh
root@homarr:/opt/homarr# ls -al /opt/homarr
total 329
drwxr-xr-x 5 root root 17 Oct 26 10:44 .
drwxr-xr-x 5 root root 6 Oct 20 13:15 ..
drwxr-xr-x 6 root root 6 Oct 20 13:17 apps
-rw-r--r-- 1 root root 695092 Oct 20 13:15 CHANGELOG.md
-rw-r--r-- 1 root root 27 Oct 20 13:15 CODEOWNERS
drwxr-xr-x 2 root root 5 Oct 20 13:15 development
-rw-r--r-- 1 root root 2345 Oct 20 13:15 Dockerfile
-rw-r--r-- 1 root root 18 Oct 20 13:15 .gitattributes
drwxr-xr-x 4 root root 7 Oct 20 13:15 .github
-rw-r--r-- 1 root root 821 Oct 20 13:15 nginx.conf
-rw-r--r-- 1 root root 225 Oct 20 13:15 .npmrc
-rw-r--r-- 1 root root 4432 Oct 20 13:17 package.json
-rw-r--r-- 1 root root 50 Oct 20 13:15 pnpm-workspace.yaml
-rw-r--r-- 1 root root 126 Oct 20 13:17 redis.conf
-rw-r--r-- 1 root root 981 Oct 20 13:15 .releaserc.json
-rw-r--r-- 1 root root 1922 Oct 20 13:15 turbo.json
-rw-r--r-- 1 root root 86 Oct 20 13:15 vitest.setup.ts
root@homarr:/opt/homarr#
This is it @CrazyWolf13
CrazyWolf13
CrazyWolf13•2mo ago
can you do the same for homarr-data-backup
L0rd
L0rdOP•2mo ago
root@homarr:/opt/homarr# ls -al /opt/homarr-data-backup total 14 drwxr-xr-x 2 root root 3 Oct 26 08:57 . drwxr-xr-x 5 root root 6 Oct 20 13:15 .. -rw-r--r-- 1 root root 248 Oct 26 08:57 .env root@homarr:/opt/homarr#
CrazyWolf13
CrazyWolf13•2mo ago
finally here we got the env file
L0rd
L0rdOP•2mo ago
Thanks so I just need to put it from here into the right folder?
Solution
CrazyWolf13
CrazyWolf13•2mo ago
take a backup the run the following
rm -rf /opt/homarr
mkdir -p /opt/homarr
mv /opt/homarr-data-backup/.env /opt/homarr/.env
rm -rf /opt/homarr-data-backup
rm -rf /opt/homarr
mkdir -p /opt/homarr
mv /opt/homarr-data-backup/.env /opt/homarr/.env
rm -rf /opt/homarr-data-backup
CrazyWolf13
CrazyWolf13•2mo ago
then try the update again and paste the output of every command here
L0rd
L0rdOP•2mo ago
Thanks thanks will do a backup rq
CrazyWolf13
CrazyWolf13•2mo ago
alright
L0rd
L0rdOP•2mo ago
Thanks a lot It works thanks so much
CrazyWolf13
CrazyWolf13•2mo ago
awesome! happy to help but for god sake configure backup if proxmox already has such an easy and efficient way to do so
CrazyWolf13
CrazyWolf13•2mo ago
Proxmox VE Helper-Scripts
Proxmox VE Helper-Scripts
The official website for the Proxmox VE Helper-Scripts (Community) repository. Featuring over 400+ scripts to help you manage your Proxmox Virtual Environment.
L0rd
L0rdOP•2mo ago
Youre right hahah
CrazyWolf13
CrazyWolf13•2mo ago
šŸ˜„
L0rd
L0rdOP•2mo ago
And this should run on a seperate node or the same node?
CrazyWolf13
CrazyWolf13•2mo ago
well best would be to run it compledtely on a different node I personally run it as an LXC on my storage server. Not ideal but possible
L0rd
L0rdOP•2mo ago
If it doesnt use much ressources I could run it on my secondary node in the cluster
CrazyWolf13
CrazyWolf13•2mo ago
worst case I have to install install proxmox backup server to a usb drive connect my zfs pool and have access again, a bit more fragile that with it's own server but good enough for me šŸ™‚ doesn't really use a lot for me I have assigned 1 Core and 1Gbit RAM just needs storage ^^ though for me it deduplicates around 7x, which is insane, imagine your VM and LXC taking up 700 GB, on proxmox backup server a full backup just uses 100GB depending on what you run it may be even higher
L0rd
L0rdOP•2mo ago
Okay thats crazy haha
CrazyWolf13
CrazyWolf13•2mo ago
yeah
L0rd
L0rdOP•2mo ago
Would need to figure out where to best install it
CrazyWolf13
CrazyWolf13•2mo ago
alright, if you need anything else feel free to ping me šŸ™‚
L0rd
L0rdOP•2mo ago
Will do thanks Really appreciate it
CrazyWolf13
CrazyWolf13•2mo ago
no problem ^^
Thomas
Thomas•2mo ago
Thanks a lot for helping on this @CrazyWolf13

Did you find this page helpful?