Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. ioBroker general
    4. can't restore backup from linux to docker

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    can't restore backup from linux to docker

    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by

      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.

      ? 1 Reply Last reply Reply Quote 0
      • ?
        A Former User @Guest last edited by

        @manilx Nobody?

        Homoran 1 Reply Last reply Reply Quote 0
        • Homoran
          Homoran Global Moderator Administrators @Guest last edited by Homoran

          @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.

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @Homoran last edited by

            @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.

            Homoran 1 Reply Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Guest last edited by Homoran

              @manilx hope anyone else can help you. @andre would be 1st choice.

              but I think you should provide more Info

              ? andre 2 Replies Last reply Reply Quote 0
              • ?
                A Former User @Homoran last edited by

                @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.

                Thomas Braun Homoran 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Guest last edited by

                  @manilx

                  You need the latest version of the docker image as well as of the Backitup Adapter

                  ? 1 Reply Last reply Reply Quote 0
                  • Homoran
                    Homoran Global Moderator Administrators @Guest last edited by

                    @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

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @Thomas Braun last edited by

                      @thomas-braun Just installed fresh docker image to try this again.

                      1 Reply Last reply Reply Quote 0
                      • andre
                        andre Developer @Homoran last edited by

                        @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é

                        buanet created this issue in buanet/ioBroker.docker

                        closed [Problem]: Restore from Backitup not working #393

                        ? 1 Reply Last reply Reply Quote 1
                        • ?
                          A Former User @andre last edited by

                          @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!

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Guest last edited by

                            @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?

                            ? 1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User @Guest last edited by

                              @manilx OK. Put the backuo file under "backups" and did maintenance restore. Worked.
                              But now influxdb is not registering data..... More to fix.

                              Thx!

                              1 Reply Last reply Reply Quote 0
                              • First post
                                Last post

                              Support us

                              ioBroker
                              Community Adapters
                              Donate

                              816
                              Online

                              31.7k
                              Users

                              79.9k
                              Topics

                              1.3m
                              Posts

                              5
                              13
                              1034
                              Loading More Posts
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes
                              Reply
                              • Reply as topic
                              Log in to reply
                              Community
                              Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                              The ioBroker Community 2014-2023
                              logo