NEWS
can't restore backup from linux to docker
-
Hi
I have iobroker running on debian host for quite a while now. Latest version.
I installed the latest docker version from scratch. Trying to restore the backup I have taken on the linux version I get the following error:SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
How can I restore?
Help much appreciated.
-
@manilx Nobody?
-
@manilx sagte in can't restore backup from linux to docker:
@manilx Nobody?
Sorry!
I'm not sure whether I have seen this post and ignored it because I'm not familiar with docker, or (more possible) I didn't see it.So I will try now!
Do you use the buanet docker?
There is a great docu available.Otherwise I only can push this thread, hoping any docker user will find it.
-
@homoran Yes. Using that docker image.
Plain install and then trying to import the backup from a bare metal install results in the above error. -
@manilx hope anyone else can help you. @andre would be 1st choice.
but I think you should provide more Info
-
@homoran Exactly what additional info do you need?
Fresh iobroker docker install. I finish the wizard and then go to Backitup and hit restore, select my saved backup file (zip) and then I get the error.
When I try to do the same on a bare metal install it restores just fine.
-
@manilx
You need the latest version of the docker image as well as of the Backitup Adapter
-
@manilx sagte in can't restore backup from linux to docker:
Exactly what additional info do you need?
not me personally, as I don't know nothing about docker
so i cannot tell -
@thomas-braun Just installed fresh docker image to try this again.
-
@homoran sagte in can't restore backup from linux to docker:
@manilx hope anyone else can help you. @andre would be 1st choice.
but I think you should provide more Info
There is an issue with restoring fromt backitup in docker image v9
https://github.com/buanet/ioBroker.docker/issues/393
You can use commandline to restore or use backitup minimum v2.8.7.
Regards,
André -
@andre Just tried that.
Opening a cli on the iobroker docker container. Got that:root@iobroker:/opt/iobroker# iobroker restore iobroker_2023_10_19-02_41_01_backupiobroker.tar.gz
Stop iobroker first!
root@iobroker:/opt/iobroker# iobroker stop
The execution of this command is blocked as your ioBroker is running inside a Docker container! -
@manilx tried via maintenance mode logged in as iobroker user:
maintenance restore
iobroker@iobroker:~$ maintenance restore
You are now going to perform a restore of your iobroker.
During the restore process, the container will automatically switch into maintenance mode and stop ioBroker.
Depending on the restart policy, your container will be stopped or restarted automatically after the restore.
Do you want to continue [yes/no]? yes
You are now going to stop ioBroker and activate maintenance mode for this container.
Activating maintenance mode...
Stopping ioBroker.....Done.
Restoring ioBroker... Failed.
For more details see "/opt/iobroker/log/restore.log".
Please check backup file location and permissions and try again.where do I put the backup zip file and under what name?
-
@manilx OK. Put the backuo file under "backups" and did maintenance restore. Worked.
But now influxdb is not registering data..... More to fix.Thx!