Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-8343

Cannot `backup` Marathon ZK state (using stand-alone tool)

    Details

      Description

      I'm trying to backup the Marathon state in order to do a rolling upgrade of the cluster. The intention is to reload the new cluster with the backed up data from the old cluster (this should allow Marathon to "find" the existing running tasks).

      On a machine where the current Marathon leader is running, I ran:

      `/usr/share/marathon/bin/marathon -main mesosphere.marathon.core.storage.backup.Backup --backup_location file:///tmp/marathon-backup/marathonbak.tar --zk zk://host1:2181,host2:2181,host3:2181/kafka`

      but I constantly get a `java.lang.IllegalArgumentException: requirement failed: the store must be opened before it can be used`.

      Is this a known issue - or am I doing something wrong?

       

      ERROR Error: requirement failed: the store must be opened before it can be used (mesosphere.marathon.core.storage.backup.Backup$:JMX exporting thread)
      java.lang.IllegalArgumentException: requirement failed: the store must be opened before it can be used
      at scala.Predef$.require(Predef.scala:277)
      at mesosphere.marathon.core.storage.store.impl.zk.ZkPersistenceStore.backup(ZkPersistenceStore.scala:293)
      at mesosphere.marathon.core.storage.store.impl.cache.LazyCachingPersistenceStore.backup(LazyCachingPersistenceStore.scala:183)
      at mesosphere.marathon.core.storage.store.impl.cache.LazyVersionCachingPersistentStore.backup(LazyCachingPersistenceStore.scala:373)
      at mesosphere.marathon.core.storage.backup.impl.PersistentStoreBackupImpl.backup(PersistentStoreBackupImpl.scala:22)
      at mesosphere.marathon.core.storage.backup.Backup$.$anonfun$main$1(Backup.scala:78)
      at mesosphere.marathon.core.storage.backup.BackupRestoreAction.action(Backup.scala:44)
      at mesosphere.marathon.core.storage.backup.Backup$.main(Backup.scala:78)
      at mesosphere.marathon.core.storage.backup.Backup.main(Backup.scala)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ivanchernetsky Ivan Chernetsky
                Reporter:
                oucemabellagha Oucema Bellagha
                Team:
                Orchestration Team
                Watchers:
                Ivan Chernetsky, Oucema Bellagha
              • Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: