Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory issue #5

Closed
ceremcem opened this issue Jun 16, 2017 · 2 comments
Closed

No such file or directory issue #5

ceremcem opened this issue Jun 16, 2017 · 2 comments
Assignees
Labels

Comments

@ceremcem
Copy link
Owner

@ceremcem ceremcem commented Jun 16, 2017

Description

One usual run of sync-local.sh produces following output:

[✓] /mnt/erik/snapshots/rootfs/rootfs.20170612T1632 exists in destination, no need to send again.
[✓] /mnt/erik/snapshots/rootfs/rootfs.20170612T1642 exists in destination, no need to send again.
[✓] /mnt/erik/snapshots/rootfs/rootfs.20170612T1652 exists in destination, no need to send again.
[✓] /mnt/erik/snapshots/rootfs/rootfs.20170613T0357 exists in destination, no need to send again.
/mnt/erik/snapshots/rootfs/rootfs.20170613T1737 will be sent to destination.
Sending difference between /mnt/erik/snapshots/rootfs/rootfs.20170613T0357 and /mnt/erik/snapshots/rootfs/rootfs.20170613T1737
At subvol /mnt/erik/snapshots/rootfs/rootfs.20170613T1737
At subvol /mnt/erik/snapshots/rootfs/rootfs.20170613T1737                                                                                          ]
 115 B 0:00:02 [ 123 B/s] [  <=>                                                                                                                   ]At snapshot rootfs.20170613T1737
 160MiB 0:00:23 [6.92MiB/s] [                                                  <=>                                                                 ]
/mnt/erik/snapshots/rootfs/rootfs.20170614T0320 will be sent to destination.
Sending difference between /mnt/zencefil/snapshots/rootfs/rootfs.20170613T1737 and /mnt/erik/snapshots/rootfs/rootfs.20170614T0320
ERROR: open fil/snapshots/rootfs/rootfs.20170613T1737 failed. No such file or directory
ERROR: could not resolve rootid for /mnt/zencefil/snapshots/rootfs/rootfs.20170613T1737
WE DETECT AN ERROR in btrfs_send_diff! parent: /mnt/zencefil/snapshots/rootfs/rootfs.20170613T1737, curr: /mnt/erik/snapshots/rootfs/rootfs.20170614T0320
   0 B 0:00:00 [   0 B/s] [<=>                                                                                                                     ]
ERROR: empty stream is not considered valid
not setting ref as empty string, skipping!
/mnt/erik/snapshots/rootfs/rootfs.20170614T0331 will be sent to destination.
Sending difference between /mnt/zencefil/snapshots/rootfs/rootfs.20170613T1737 and /mnt/erik/snapshots/rootfs/rootfs.20170614T0331
ERROR: open fil/snapshots/rootfs/rootfs.20170613T1737 failed. No such file or directory
ERROR: could not resolve rootid for /mnt/zencefil/snapshots/rootfs/rootfs.20170613T1737
WE DETECT AN ERROR in btrfs_send_diff! parent: /mnt/zencefil/snapshots/rootfs/rootfs.20170613T1737, curr: /mnt/erik/snapshots/rootfs/rootfs.20170614T0331
   0 B 0:00:00 [   0 B/s] [<=>                                                                                                                     ]
ERROR: empty stream is not considered valid
not setting ref as empty string, skipping!
Synchronization finished. 00:05:41

Second run right after above output is as follows:

[✓] /mnt/erik/snapshots/rootfs/rootfs.20170612T1632 exists in destination, no need to send again.
[✓] /mnt/erik/snapshots/rootfs/rootfs.20170612T1642 exists in destination, no need to send again.
[✓] /mnt/erik/snapshots/rootfs/rootfs.20170612T1652 exists in destination, no need to send again.
[✓] /mnt/erik/snapshots/rootfs/rootfs.20170613T0357 exists in destination, no need to send again.
[✓] /mnt/erik/snapshots/rootfs/rootfs.20170613T1737 exists in destination, no need to send again.
/mnt/erik/snapshots/rootfs/rootfs.20170614T0320 will be sent to destination.
Sending difference between /mnt/erik/snapshots/rootfs/rootfs.20170613T1737 and /mnt/erik/snapshots/rootfs/rootfs.20170614T0320
At subvol /mnt/erik/snapshots/rootfs/rootfs.20170614T0320
At subvol /mnt/erik/snapshots/rootfs/rootfs.20170614T0320                                                                                          ]
At snapshot rootfs.20170614T0320
1.79GiB 0:01:44 [17.6MiB/s] [                                    <=>                                                                               ]
/mnt/erik/snapshots/rootfs/rootfs.20170614T0331 will be sent to destination.
Sending difference between /mnt/zencefil/snapshots/rootfs/rootfs.20170614T0320 and /mnt/erik/snapshots/rootfs/rootfs.20170614T0331
ERROR: open fil/snapshots/rootfs/rootfs.20170614T0320 failed. No such file or directory
ERROR: could not resolve rootid for /mnt/zencefil/snapshots/rootfs/rootfs.20170614T0320
WE DETECT AN ERROR in btrfs_send_diff! parent: /mnt/zencefil/snapshots/rootfs/rootfs.20170614T0320, curr: /mnt/erik/snapshots/rootfs/rootfs.20170614T0331
   0 B 0:00:00 [   0 B/s] [<=>                                                                                                                     ]
ERROR: empty stream is not considered valid
not setting ref as empty string, skipping!
Synchronization finished. 00:02:57

It looks like btrfs send keeps the snapshot - somewhat - open and we can not read a snapshot we just sent.

Re-running the sync-local.sh script over and over again solves the issue.

Version

smith-sync: 668e791 (relevant part here)
btrfs-progs: v4.11

Reproduction

Can not be reproduced by tests

@ceremcem
Copy link
Owner Author

@ceremcem ceremcem commented Jun 16, 2017

It seems this error is normal as we are passing two snapshots to btrfs send to make it calculate the difference, but these two snapshots reside on different physical disks:

Sending difference between /mnt/zencefil/snapshots/rootfs/rootfs.20170613T1737 and /mnt/erik/snapshots/rootfs/rootfs.20170614T0320

A check point is added in order to avoid such problems in the future.

@ceremcem ceremcem closed this in 55fd696 Jun 16, 2017
@ceremcem
Copy link
Owner Author

@ceremcem ceremcem commented Jun 16, 2017

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.