dotmesh-io / dotmesh

dotmesh (dm) is like git for your data volumes (databases, files etc) in Docker and Kubernetes
https://dotmesh.com
Apache License 2.0
539 stars 29 forks source link

'Cannot reconcile filesystems with different ids' on zfs-kernel-modules push to backup-cluster #375

Open prisamuel opened 6 years ago

prisamuel commented 6 years ago

Backups fail for the zfs-kernel-modules with the following error:

priya@Priyas-MBP:~/dmesh/ops/backup$ dm push backup-cluster-1 zfs-kernel-modules
Pushing admin/zfs-kernel-modules to backup-cluster-1:admin/zfs-kernel-modules
Response '{"jsonrpc":"2.0","error":{"code":-32000,"message":"Cannot reconcile filesystems with different ids, remote=d5598ff1-7ddd-45e9-623c-4f82a0442692, local=6ccf6d7e-3cb9-436e-625f-3de1a3b2dc29, args= Peer=35.204.135.111, User=admin, ApiKey=****, Direction=push, LocalNamespace=admin, LocalName=zfs-kernel-modules, LocalBranchName=, RemoteNamespace=admin, RemoteName=zfs-kernel-modules, RemoteBranchName=, TargetCommit=,","data":null},"id":4037200794235010051}
' yields error Cannot reconcile filesystems with different ids, remote=d5598ff1-7ddd-45e9-623c-4f82a0442692, local=6ccf6d7e-3cb9-436e-625f-3de1a3b2dc29, args= Peer=35.204.135.111, User=admin, ApiKey=****, Direction=push, LocalNamespace=admin, LocalName=zfs-kernel-modules, LocalBranchName=, RemoteNamespace=admin, RemoteName=zfs-kernel-modules, RemoteBranchName=, TargetCommit=,

Status of dot on the backup cluster:

priya@Priyas-MBP:~/dmesh/ops/backup$ dm remote switch backup-cluster-1
priya@Priyas-MBP:~/dmesh/ops/backup$ dm switch zfs-kernel-modules
priya@Priyas-MBP:~/dmesh/ops/backup$ dm dot show
Dot admin/zfs-kernel-modules:
Master branch ID: d5598ff1-7ddd-45e9-623c-4f82a0442692
Dot is currently selected.
Commits: 0
Dot size: - (all clean)
Branches:
* master
   Replication Status:
    server 15034aa2c12b5981 [MASTER] (status: missing: waiting, 0 snaps (v1101905)) is up to date
    server 976c4d583f26d1f5 (status: missing: waiting, 0 snaps (v1102015)) is up to date
Tracks dot admin/zfs-kernel-modules on remote backup-cluster-1

Status of dot on the hub:

priya@Priyas-MBP:~/dmesh/ops/backup$ dm dot show
Dot admin/zfs-kernel-modules:
Master branch ID: 6ccf6d7e-3cb9-436e-625f-3de1a3b2dc29
Dot is currently selected.
Commits: 1
Dot size: 579.31 MiB (all clean)
Branches:
* master
   Replication Status:
    server 198cdf7c12622838 (status: receiving: transferred 386.53MiB in 34.21s (11.30MiB/s)..., 0 snaps (v1143386)) is missing [5b11bc9d-028b-4e3c-41a0-9f604d91ec5b]
    server 2a1f51b88403779 (status: receiving: transferred 378.81MiB in 34.00s (11.14MiB/s)..., 0 snaps (v1143385)) is missing [5b11bc9d-028b-4e3c-41a0-9f604d91ec5b]
    server 806ed3b7173f9693 [MASTER] (status: active: waiting, 1 snaps (v1143205)) is up to date
Tracks dot admin/zfs-kernel-modules on remote backup-cluster-1
lukemarsden commented 6 years ago

So delete the old filesystem on the backup cluster and open an issue for auto resolving id mismatch on push.