bug: btrfs receive: ERROR: clone: did not find source subvol
on sending host:
btrfs send -p /mnt/root/btrbk/q.20230126T000018-0500 /mnt/root/btrbk/q.20230130T200019-0500 on receiving host:
btrfs -v receive '/mnt/root/btrbk/'
...
write p/c/firefox-swf-profile/places.sqlite - offset=0 length=32768
... (642 similar lines writing to places.sqlite)
write path/to/abrowser-profile/places.sqlite - offset=42860544 length=32768 write path/to/abrowser-profile/places.sqlite - offset=42893312 length=49152 write path/to/abrowser-profile/places.sqlite - offset=42942464 length=16384
ERROR: clone: did not find source subvol
On the receiving machine:
# cat /proc/version Linux version 6.1.4-060104-generic (kernel@sita) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-9ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #202301071207 SMP PREEMPT_DYNAMIC Sun Jan 8 18:52:10 UTC 2023 # btrfs --version btrfs-progs v6.1.2
On the sending machine:
# cat /proc/version Linux version 6.1.8-gnu (rms@mit-oz) (x86_64-linux-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40) #1.0 SMP PREEMPT_DYNAMIC Tue Sep 27 12:35:59 EST 1983 # btrfs --version btrfs-progs v6.1.2
The snapshot was created running those versions.
I take snapshots hourly and send and receive them using btrbk, which is a perl wrapper. This error has happened around 7 times in the last year or so, and when I inspected, it was always places.sqlite, which is a 45M sqlite database of firefox containing browsing history. Note, I use abrowser, a rebranded firefox in trisquel that fixes some software freedom issues. The workaround I've found is to delete the parent snapshot on sending machine. The error exists for any combination of that parent and a subsequent snapshot.
A few details about the sending machine where the bad snapshot
originated: It is using ECC ram and reported no ECC errors, and no kernel errors anywhere near the time of the snapshot. The disks are 2 ssds in raid1.
I'm happy to help the btrfs developers debug the issue, running any commands, running alternate software, etc. Note, I can't share places.sqlite file as it contains private browsing history.
Signature · 3 lines
Ian Kelling | Senior Systems Administrator, Free Software Foundation GPG Key: B125 F60B 7B28 7FF6 A2B7 DF8F 170A F0E2 9542 95DF https://fsf.org | https://gnu.org
Quoted 2 lines · Ian Kelling
on sending host:
btrfs send -p/mnt/root/btrbk/q.20230126T000018-0500/mnt/root/btrbk/q.20230130T200019-0500
Show output of
btrfs subvolume show /mnt/root/btrbk/q.20230126T000018-0500 btrfs subvolume show /mnt/root/btrbk/q.20230130T200019-0500
Quoted 1 line
on receiving host:
Show output of
btrfs subvolume list -uR /mnt/root/btrbk
Quoted 46 lines
btrfs -v receive '
/mnt/root/btrbk/'
...
write p/c/firefox-swf-profile/places.sqlite - offset=0 length=32768 ... (642 similar lines writing to places.sqlite)
write path/to/abrowser-profile/places.sqlite - offset=42860544 length=32768 write path/to/abrowser-profile/places.sqlite - offset=42893312 length=49152 write path/to/abrowser-profile/places.sqlite - offset=42942464 length=16384
ERROR: clone: did not find source subvolOn the receiving machine:
# cat /proc/version Linux version 6.1.4-060104-generic (kernel@sita) (x86_64-linux-gnu-gcc-12 (Ubuntu 12.2.0-9ubuntu1) 12.2.0, GNU ld (GNU Binutils for Ubuntu) 2.39) #202301071207 SMP PREEMPT_DYNAMIC Sun Jan 8 18:52:10 UTC 2023 # btrfs --version btrfs-progs v6.1.2On the sending machine:
# cat /proc/version Linux version 6.1.8-gnu (rms@mit-oz) (x86_64-linux-gcc (GCC) 12.2.0, GNU ld (GNU Binutils) 2.40) #1.0 SMP PREEMPT_DYNAMIC Tue Sep 27 12:35:59 EST 1983 # btrfs --version btrfs-progs v6.1.2The snapshot was created running those versions.
I take snapshots hourly and send and receive them using btrbk, which is a perl wrapper. This error has happened around 7 times in the last year or so, and when I inspected, it was always places.sqlite, which is a 45M sqlite database of firefox containing browsing history. Note, I use abrowser, a rebranded firefox in trisquel that fixes some software freedom issues. The workaround I've found is to delete the parent snapshot on sending machine. The error exists for any combination of that parent and a subsequent snapshot.
A few details about the sending machine where the bad snapshot
originated: It is using ECC ram and reported no ECC errors, and no kernel errors anywhere near the time of the snapshot. The disks are 2 ssds in raid1.I'm happy to help the btrfs developers debug the issue, running any commands, running alternate software, etc. Note, I can't share places.sqlite file as it contains private browsing history.
Sorry I didn't reply sooner, I was about to go to fosdem and I needed data copied over to my laptop, so I deleted the offending subvolumes knowing the issue would reoccur. It has now with the same 2 machines. Here is the information I posted before, but with the new iteration of the error, the only notable differences are the various timestamps and uuids:
# btrfs send -p '/mnt/root/btrbk/q.20230218T054921-0500' '/mnt/root/btrbk/q.20230218T060025-0500'
on receiving host:
# btrfs -v receive /mnt/root/btrbk At snapshot q.20230218T060025-0500 receiving snapshot q.20230218T060025-0500 uuid=f98f24ce-03ef-2b44-be4e-599c45fc3965, ctransid=553735 parent_uuid=11c71068-830b-044a-b032-3cc12947d88f, parent_ctransid=553712 write p/c/.bh - offset=5484544 length=1143 write p/c/firefox-swf-profile/cookies.sqlite - offset=131072 length=49152 write p/c/firefox-swf-profile/cookies.sqlite - offset=180224 length=16384 write p/c/firefox-swf-profile/formhistory.sqlite - offset=0 length=32768 write p/c/firefox-swf-profile/formhistory.sqlite - offset=262144 length=32768 write p/c/firefox-swf-profile/formhistory.sqlite - offset=458752 length=49152 write p/c/firefox-swf-profile/formhistory.sqlite - offset=507904 length=16384 write p/c/firefox-swf-profile/formhistory.sqlite - offset=655360 length=49152 write p/c/firefox-swf-profile/formhistory.sqlite - offset=704512 length=16384 write p/c/firefox-swf-profile/formhistory.sqlite - offset=1212416 length=32768 write p/c/firefox-swf-profile/permissions.sqlite - offset=0 length=32768 write p/c/firefox-swf-profile/permissions.sqlite - offset=98304 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=0 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=98304 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=557056 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=1343488 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=1703936 length=49152 write p/c/firefox-swf-profile/places.sqlite - offset=1753088 length=16384 write p/c/firefox-swf-profile/places.sqlite - offset=21659648 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=21987328 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=22216704 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=22675456 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23429120 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23494656 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23756800 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23986176 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=24182784 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=25526272 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=26247168 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=26312704 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=26902528 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28409856 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28508160 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28672000 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28966912 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29065216 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29491200 length=49152 write p/c/firefox-swf-profile/places.sqlite - offset=29540352 length=16384 write p/c/firefox-swf-profile/places.sqlite - offset=29556736 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29753344 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29884416 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29949952 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=36569088 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=37683200 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=41156608 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=41385984 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=41418752 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46006272 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46104576 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46235648 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46268416 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46301184 length=49152 write p/c/firefox-swf-profile/places.sqlite - offset=46350336 length=49152 ERROR: clone: did not find source subvol
Quoted 8 lines · Andrei Borzenkov
Quoted 2 lines · Ian Kelling
on sending host:
btrfs send -p/mnt/root/btrbk/q.20230126T000018-0500/mnt/root/btrbk/q.20230130T200019-0500Show output of
btrfs subvolume show
/mnt/root/btrbk/q.20230126T000018-0500btrfs subvolume show/mnt/root/btrbk/q.20230130T200019-0500
Using the subvolumes of the current error:
# btrfs subvolume show /mnt/root/btrbk/q.20230218T054921-0500 btrfs subvolume show /mnt/root/btrbk/q.20230218T054921-0500 btrbk/q.20230218T054921-0500 Name: q.20230218T054921-0500 UUID: f41b8364-5c1f-d74d-aa68-a44298993f65 Parent UUID: cc4f736a-b3c0-6a49-846d-f1e7c77bd27f Received UUID: 11c71068-830b-044a-b032-3cc12947d88f Creation time: 2023-02-18 05:49:44 -0500 Subvolume ID: 12734 Generation: 553712 Gen at creation: 553708 Parent ID: 5 Top level ID: 5 Flags: readonly Send transid: 433889 Send time: 2023-02-18 05:49:44 -0500 Receive transid: 553709 Receive time: 2023-02-18 05:49:44 -0500 Snapshot(s): q # btrfs subvolume show /mnt/root/btrbk/q.20230218T060025-0500 btrfs subvolume show /mnt/root/btrbk/q.20230218T060025-0500 btrbk/q.20230218T060025-0500 Name: q.20230218T060025-0500 UUID: f98f24ce-03ef-2b44-be4e-599c45fc3965 Parent UUID: 4771b096-9488-3f4a-a894-cde735111183 Received UUID: - Creation time: 2023-02-18 06:00:37 -0500 Subvolume ID: 12739 Generation: 553736 Gen at creation: 553736 Parent ID: 5 Top level ID: 5 Flags: readonly Send transid: 0 Send time: 2023-02-18 06:00:37 -0500 Receive transid: 0 Receive time: - Snapshot(s):
Quoted 6 lines
Quoted 2 lines
on receiving host:
Show output of
btrfs subvolume list -uR
/mnt/root/btrbk
That lists a lot of unrelated subvolumes, I narrowed it down:
btrfs subvolume list -uR /mnt/root/btrbk | grep -P 'path (btrbk/q\.|q$)'
ID 9407 gen 424001 top level 5 received_uuid - uuid c73d6305-d71a-024a-9905-e1c8bb8a029b path btrbk/q.20221218T210012-0500
ID 9714 gen 424001 top level 5 received_uuid 35ebfa2d-f1ba-5f4f-8ae1-6b7ee78e7e87 uuid 83a9cd45-081b-ea4e-b247-40e79c2080e7 path btrbk/q.20221225T000021-0500 ID 10173 gen 424001 top level 5 received_uuid a079d502-03ad-8344-ba86-23d0d8025dc8 uuid 988af5bf-831f-0d4e-9db3-2a600f9984aa path btrbk/q.20230101T000019-0500
ID 10710 gen 424192 top level 5 received_uuid - uuid 8c19d1ba-97ac-0540-ac79-d7ea281aedbe path btrbk/q.20230108T000017-0500
ID 11319 gen 424192 top level 5 received_uuid bc951b3f-6ce4-dd4b-85ca-7e3e3cf2016a uuid 1ff39f4c-9ad1-024c-933c-34f08c05ebd4 path btrbk/q.20230115T000023-0500 ID 11693 gen 424192 top level 5 received_uuid d04eca55-42cd-1742-88f6-4e48b4fbdf3c uuid 2adee47b-5eb9-8e43-9cba-e1d7c9a9b681 path btrbk/q.20230123T080020-0500 ID 12058 gen 424192 top level 5 received_uuid 77304ad5-ed1f-164e-9923-612dbb92376c uuid 823148ae-ec29-2947-bd34-b27bbe91267b path btrbk/q.20230130T200019-0500
ID 12219 gen 424192 top level 5 received_uuid - uuid 7513a7d3-15e9-804b-ba1c-55ba50f7ea92 path btrbk/q.20230204T000006-0500 ID 12267 gen 424192 top level 5 received_uuid - uuid ff3e022d-948d-f142-b58d-15b7a546972b path btrbk/q.20230205T000006-0500 ID 12308 gen 424192 top level 5 received_uuid - uuid 9e057038-dae1-f046-808e-ae1bd20d6cdb path btrbk/q.20230206T100008-0500 ID 12343 gen 424192 top level 5 received_uuid - uuid e9271ada-c4dc-6347-9b8a-2486f5b105a9 path btrbk/q.20230207T060008-0500 ID 12429 gen 424192 top level 5 received_uuid - uuid 3287fa82-303e-284e-91b0-4312c0807973 path btrbk/q.20230208T000008-0500 ID 12456 gen 424192 top level 5 received_uuid - uuid 0c64b911-001d-b44e-9fdc-12f50e73e544 path btrbk/q.20230209T000017-0500 ID 12490 gen 424192 top level 5 received_uuid - uuid b0f6b97f-76a4-694e-985c-cc176b1d5e3b path btrbk/q.20230210T000017-0500
ID 12533 gen 424192 top level 5 received_uuid 49392969-6193-8c47-b525-45756f46d111 uuid efbe102a-8b33-1943-921d-233adad00286 path btrbk/q.20230211T000030-0500 ID 12534 gen 424192 top level 5 received_uuid dd610a39-d0a5-0047-bf1e-27bd10f17d9a uuid 7abb2b2d-816d-a944-a7e9-29e5be16eb61 path btrbk/q.20230212T080020-0500 ID 12582 gen 424165 top level 5 received_uuid 58e912fe-1161-b543-9014-3035ec76d6dd uuid 39cd2cf1-f81b-f94b-9d26-593dc8831f90 path btrbk/q.20230213T000021-0500 ID 12654 gen 424165 top level 5 received_uuid 789169fb-5f08-9e49-bab3-e016c67e6f7d uuid 738f886d-5e57-2747-a75e-e4543d97be90 path btrbk/q.20230214T000022-0500 ID 12730 gen 426574 top level 5 received_uuid 22251827-86eb-a748-b9a3-d10a629f4825 uuid 0d89c062-7a88-544d-bd4c-d7c7b6eefafc path btrbk/q.20230215T000022-0500
ID 12791 gen 429107 top level 5 received_uuid - uuid 474ce40f-0cd9-7c4f-8796-4905a59b8f64 path btrbk/q.20230216T000019-0500
ID 12841 gen 431664 top level 5 received_uuid - uuid a95ffdeb-f119-3f45-995f-8f20b8ffbac0 path btrbk/q.20230217T000013-0500
ID 12869 gen 432802 top level 5 received_uuid 90c38844-0e82-a043-a1ba-42dccdd8ff6a uuid ad8ed7ed-b966-8042-85c3-55b18a82e079 path btrbk/q.20230217T110028-0500 ID 12870 gen 432805 top level 5 received_uuid eb503c6b-8037-2749-b426-c8d819282da7 uuid 72da80c6-4194-1440-a4ef-8200a009d4d4 path btrbk/q.20230217T120027-0500 ID 12871 gen 432808 top level 5 received_uuid a3b2fbac-2a53-d847-8820-df15365ab0f7 uuid f87e4a48-6bce-6543-af38-0a7eb1f0f610 path btrbk/q.20230217T130028-0500 ID 12872 gen 432811 top level 5 received_uuid 0ad7d50d-aaa5-184e-a85d-8e720ea17602 uuid 95893850-9240-4643-8994-27127f454d85 path btrbk/q.20230217T140027-0500
ID 12877 gen 432833 top level 5 received_uuid - uuid aae679e8-60d0-c54f-b1d0-488a65d7bd16 path btrbk/q.20230217T150021-0500
ID 12879 gen 432990 top level 5 received_uuid - uuid 4a3d1300-fe37-074f-bc87-9733c87ec55e path btrbk/q.20230217T174534-0500
ID 12884 gen 432993 top level 5 received_uuid ab36acd8-402e-1f48-91e9-7ee84a689a32 uuid 14e8d9f7-a718-dd43-8698-7b593532a18b path btrbk/q.20230217T180028-0500 ID 12885 gen 432996 top level 5 received_uuid 3887c8f6-e14e-4e44-9621-29435fa7cfb9 uuid 749f3f49-1a3f-3949-8239-37907f6d7f1b path btrbk/q.20230217T190026-0500 ID 12886 gen 432999 top level 5 received_uuid a6164fd8-d7f4-b547-bdbd-4c437051f966 uuid 80f6acff-010d-8944-90e2-03a6af8549b9 path btrbk/q.20230217T200028-0500
ID 12888 gen 433895 top level 5 received_uuid - uuid 4e0f0bd5-0a43-0440-b272-6c9d4b06e489 path q ID 12891 gen 433033 top level 5 received_uuid - uuid 0d776c9a-a4b5-994b-8a0a-56224f36b599 path btrbk/q.20230217T210023-0500 ID 12893 gen 433195 top level 5 received_uuid - uuid 38f25e4d-e5de-4c4d-a011-4490b34b899e path btrbk/q.20230217T230015-0500 ID 12895 gen 433300 top level 5 received_uuid - uuid c5c5ccbc-e402-714b-a2d5-a1832169b37a path btrbk/q.20230218T000014-0500 ID 12897 gen 433403 top level 5 received_uuid - uuid 82410a19-9a65-3348-8f81-135df27c3043 path btrbk/q.20230218T010015-0500 ID 12899 gen 433507 top level 5 received_uuid - uuid 79c83786-0d36-6643-8db7-bf387c78ffa8 path btrbk/q.20230218T020017-0500 ID 12901 gen 433609 top level 5 received_uuid - uuid e7c8c3b4-1ae1-be44-a0ad-88d112bc7e67 path btrbk/q.20230218T030017-0500 ID 12903 gen 433708 top level 5 received_uuid - uuid ac35015a-1ff6-394f-88f5-0d7cc394a089 path btrbk/q.20230218T040016-0500 ID 12905 gen 433811 top level 5 received_uuid - uuid 6ede5b66-9c0e-724d-be87-fe52dbc29155 path btrbk/q.20230218T050014-0500 ID 12907 gen 434221 top level 5 received_uuid - uuid 11c71068-830b-044a-b032-3cc12947d88f path btrbk/q.20230218T054921-0500
Quoted 84 lines · Ian Kelling
Sorry I didn't reply sooner, I was about to go to fosdem and I needed data copied over to my laptop, so I deleted the offending subvolumes knowing the issue would reoccur. It has now with the same 2 machines. Here is the information I posted before, but with the new iteration of the error, the only notable differences are the various timestamps and uuids:
# btrfs send -p '/mnt/root/btrbk/q.20230218T054921-0500' '/mnt/root/btrbk/q.20230218T060025-0500'on receiving host:
# btrfs -v receive /mnt/root/btrbk At snapshot q.20230218T060025-0500 receiving snapshot q.20230218T060025-0500 uuid=f98f24ce-03ef-2b44-be4e-599c45fc3965, ctransid=553735 parent_uuid=11c71068-830b-044a-b032-3cc12947d88f, parent_ctransid=553712 write p/c/.bh - offset=5484544 length=1143 write p/c/firefox-swf-profile/cookies.sqlite - offset=131072 length=49152 write p/c/firefox-swf-profile/cookies.sqlite - offset=180224 length=16384 write p/c/firefox-swf-profile/formhistory.sqlite - offset=0 length=32768 write p/c/firefox-swf-profile/formhistory.sqlite - offset=262144 length=32768 write p/c/firefox-swf-profile/formhistory.sqlite - offset=458752 length=49152 write p/c/firefox-swf-profile/formhistory.sqlite - offset=507904 length=16384 write p/c/firefox-swf-profile/formhistory.sqlite - offset=655360 length=49152 write p/c/firefox-swf-profile/formhistory.sqlite - offset=704512 length=16384 write p/c/firefox-swf-profile/formhistory.sqlite - offset=1212416 length=32768 write p/c/firefox-swf-profile/permissions.sqlite - offset=0 length=32768 write p/c/firefox-swf-profile/permissions.sqlite - offset=98304 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=0 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=98304 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=557056 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=1343488 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=1703936 length=49152 write p/c/firefox-swf-profile/places.sqlite - offset=1753088 length=16384 write p/c/firefox-swf-profile/places.sqlite - offset=21659648 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=21987328 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=22216704 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=22675456 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23429120 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23494656 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23756800 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=23986176 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=24182784 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=25526272 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=26247168 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=26312704 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=26902528 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28409856 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28508160 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28672000 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=28966912 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29065216 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29491200 length=49152 write p/c/firefox-swf-profile/places.sqlite - offset=29540352 length=16384 write p/c/firefox-swf-profile/places.sqlite - offset=29556736 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29753344 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29884416 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=29949952 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=36569088 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=37683200 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=41156608 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=41385984 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=41418752 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46006272 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46104576 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46235648 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46268416 length=32768 write p/c/firefox-swf-profile/places.sqlite - offset=46301184 length=49152 write p/c/firefox-swf-profile/places.sqlite - offset=46350336 length=49152 ERROR: clone: did not find source subvolQuoted 8 lines · Andrei Borzenkov
Quoted 2 lines · Ian Kelling
on sending host:
btrfs send -p/mnt/root/btrbk/q.20230126T000018-0500/mnt/root/btrbk/q.20230130T200019-0500Show output of
btrfs subvolume show
/mnt/root/btrbk/q.20230126T000018-0500btrfs subvolume show/mnt/root/btrbk/q.20230130T200019-0500Using the subvolumes of the current error:
Quoted 7 lines
# btrfs subvolume show /mnt/root/btrbk/q.20230218T054921-0500 btrfs subvolume show /mnt/root/btrbk/q.20230218T054921-0500 btrbk/q.20230218T054921-0500 Name: q.20230218T054921-0500 UUID: f41b8364-5c1f-d74d-aa68-a44298993f65 Parent UUID: cc4f736a-b3c0-6a49-846d-f1e7c77bd27f Received UUID: 11c71068-830b-044a-b032-3cc12947d88f
This is UUID that "btrfs receive" will look for. If there are multiple subvolumes with this received UUID on destination side, it is unpredictable which one will be used.
Quoted 35 lines
Creation time: 2023-02-18 05:49:44 -0500 Subvolume ID: 12734 Generation: 553712 Gen at creation: 553708 Parent ID: 5 Top level ID: 5 Flags: readonly Send transid: 433889 Send time: 2023-02-18 05:49:44 -0500 Receive transid: 553709 Receive time: 2023-02-18 05:49:44 -0500 Snapshot(s): q # btrfs subvolume show /mnt/root/btrbk/q.20230218T060025-0500 btrfs subvolume show /mnt/root/btrbk/q.20230218T060025-0500 btrbk/q.20230218T060025-0500 Name: q.20230218T060025-0500 UUID: f98f24ce-03ef-2b44-be4e-599c45fc3965 Parent UUID: 4771b096-9488-3f4a-a894-cde735111183 Received UUID: - Creation time: 2023-02-18 06:00:37 -0500 Subvolume ID: 12739 Generation: 553736 Gen at creation: 553736 Parent ID: 5 Top level ID: 5 Flags: readonly Send transid: 0 Send time: 2023-02-18 06:00:37 -0500 Receive transid: 0 Receive time: - Snapshot(s):Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
on receiving host:
Show output of
btrfs subvolume list -uR
/mnt/root/btrbkThat lists a lot of unrelated subvolumes, I narrowed it down:
Assuming this is the complete list, it shows only one sibvolume with UUID 11c71068-830b-044a-b032-3cc12947d88f, so it is not what I suspected. You could still check for duplicates.
Quoted 41 lines
btrfs subvolume list -uR
/mnt/root/btrbk| grep -P 'path (btrbk/q\.|q$)'
ID 9407 gen 424001 top level 5received_uuid- uuid c73d6305-d71a-024a-9905-e1c8bb8a029b path btrbk/q.20221218T210012-0500
ID 9714 gen 424001 top level 5received_uuid35ebfa2d-f1ba-5f4f-8ae1-6b7ee78e7e87 uuid 83a9cd45-081b-ea4e-b247-40e79c2080e7 path btrbk/q.20221225T000021-0500 ID 10173 gen 424001 top level 5received_uuida079d502-03ad-8344-ba86-23d0d8025dc8 uuid 988af5bf-831f-0d4e-9db3-2a600f9984aa path btrbk/q.20230101T000019-0500
ID 10710 gen 424192 top level 5received_uuid- uuid 8c19d1ba-97ac-0540-ac79-d7ea281aedbe path btrbk/q.20230108T000017-0500
ID 11319 gen 424192 top level 5received_uuidbc951b3f-6ce4-dd4b-85ca-7e3e3cf2016a uuid 1ff39f4c-9ad1-024c-933c-34f08c05ebd4 path btrbk/q.20230115T000023-0500 ID 11693 gen 424192 top level 5received_uuidd04eca55-42cd-1742-88f6-4e48b4fbdf3c uuid 2adee47b-5eb9-8e43-9cba-e1d7c9a9b681 path btrbk/q.20230123T080020-0500 ID 12058 gen 424192 top level 5received_uuid77304ad5-ed1f-164e-9923-612dbb92376c uuid 823148ae-ec29-2947-bd34-b27bbe91267b path btrbk/q.20230130T200019-0500ID 12219 gen 424192 top level 5 received_uuid - uuid 7513a7d3-15e9-804b-ba1c-55ba50f7ea92 path btrbk/q.20230204T000006-0500 ID 12267 gen 424192 top level 5 received_uuid - uuid ff3e022d-948d-f142-b58d-15b7a546972b path btrbk/q.20230205T000006-0500 ID 12308 gen 424192 top level 5 received_uuid - uuid 9e057038-dae1-f046-808e-ae1bd20d6cdb path btrbk/q.20230206T100008-0500 ID 12343 gen 424192 top level 5 received_uuid - uuid e9271ada-c4dc-6347-9b8a-2486f5b105a9 path btrbk/q.20230207T060008-0500 ID 12429 gen 424192 top level 5 received_uuid - uuid 3287fa82-303e-284e-91b0-4312c0807973 path btrbk/q.20230208T000008-0500 ID 12456 gen 424192 top level 5 received_uuid - uuid 0c64b911-001d-b44e-9fdc-12f50e73e544 path btrbk/q.20230209T000017-0500 ID 12490 gen 424192 top level 5 received_uuid - uuid b0f6b97f-76a4-694e-985c-cc176b1d5e3b path btrbk/q.20230210T000017-0500ID 12533 gen 424192 top level 5
received_uuid49392969-6193-8c47-b525-45756f46d111 uuid efbe102a-8b33-1943-921d-233adad00286 path btrbk/q.20230211T000030-0500 ID 12534 gen 424192 top level 5received_uuiddd610a39-d0a5-0047-bf1e-27bd10f17d9a uuid 7abb2b2d-816d-a944-a7e9-29e5be16eb61 path btrbk/q.20230212T080020-0500 ID 12582 gen 424165 top level 5received_uuid58e912fe-1161-b543-9014-3035ec76d6dd uuid 39cd2cf1-f81b-f94b-9d26-593dc8831f90 path btrbk/q.20230213T000021-0500 ID 12654 gen 424165 top level 5received_uuid789169fb-5f08-9e49-bab3-e016c67e6f7d uuid 738f886d-5e57-2747-a75e-e4543d97be90 path btrbk/q.20230214T000022-0500 ID 12730 gen 426574 top level 5received_uuid22251827-86eb-a748-b9a3-d10a629f4825 uuid 0d89c062-7a88-544d-bd4c-d7c7b6eefafc path btrbk/q.20230215T000022-0500
ID 12791 gen 429107 top level 5received_uuid- uuid 474ce40f-0cd9-7c4f-8796-4905a59b8f64 path btrbk/q.20230216T000019-0500
ID 12841 gen 431664 top level 5received_uuid- uuid a95ffdeb-f119-3f45-995f-8f20b8ffbac0 path btrbk/q.20230217T000013-0500
ID 12869 gen 432802 top level 5received_uuid90c38844-0e82-a043-a1ba-42dccdd8ff6a uuid ad8ed7ed-b966-8042-85c3-55b18a82e079 path btrbk/q.20230217T110028-0500 ID 12870 gen 432805 top level 5received_uuideb503c6b-8037-2749-b426-c8d819282da7 uuid 72da80c6-4194-1440-a4ef-8200a009d4d4 path btrbk/q.20230217T120027-0500 ID 12871 gen 432808 top level 5received_uuida3b2fbac-2a53-d847-8820-df15365ab0f7 uuid f87e4a48-6bce-6543-af38-0a7eb1f0f610 path btrbk/q.20230217T130028-0500 ID 12872 gen 432811 top level 5received_uuid0ad7d50d-aaa5-184e-a85d-8e720ea17602 uuid 95893850-9240-4643-8994-27127f454d85 path btrbk/q.20230217T140027-0500
ID 12877 gen 432833 top level 5received_uuid- uuid aae679e8-60d0-c54f-b1d0-488a65d7bd16 path btrbk/q.20230217T150021-0500
ID 12879 gen 432990 top level 5received_uuid- uuid 4a3d1300-fe37-074f-bc87-9733c87ec55e path btrbk/q.20230217T174534-0500
ID 12884 gen 432993 top level 5received_uuidab36acd8-402e-1f48-91e9-7ee84a689a32 uuid 14e8d9f7-a718-dd43-8698-7b593532a18b path btrbk/q.20230217T180028-0500 ID 12885 gen 432996 top level 5received_uuid3887c8f6-e14e-4e44-9621-29435fa7cfb9 uuid 749f3f49-1a3f-3949-8239-37907f6d7f1b path btrbk/q.20230217T190026-0500 ID 12886 gen 432999 top level 5received_uuida6164fd8-d7f4-b547-bdbd-4c437051f966 uuid 80f6acff-010d-8944-90e2-03a6af8549b9 path btrbk/q.20230217T200028-0500ID 12888 gen 433895 top level 5 received_uuid - uuid 4e0f0bd5-0a43-0440-b272-6c9d4b06e489 path q ID 12891 gen 433033 top level 5 received_uuid - uuid 0d776c9a-a4b5-994b-8a0a-56224f36b599 path btrbk/q.20230217T210023-0500 ID 12893 gen 433195 top level 5 received_uuid - uuid 38f25e4d-e5de-4c4d-a011-4490b34b899e path btrbk/q.20230217T230015-0500 ID 12895 gen 433300 top level 5 received_uuid - uuid c5c5ccbc-e402-714b-a2d5-a1832169b37a path btrbk/q.20230218T000014-0500 ID 12897 gen 433403 top level 5 received_uuid - uuid 82410a19-9a65-3348-8f81-135df27c3043 path btrbk/q.20230218T010015-0500 ID 12899 gen 433507 top level 5 received_uuid - uuid 79c83786-0d36-6643-8db7-bf387c78ffa8 path btrbk/q.20230218T020017-0500 ID 12901 gen 433609 top level 5 received_uuid - uuid e7c8c3b4-1ae1-be44-a0ad-88d112bc7e67 path btrbk/q.20230218T030017-0500 ID 12903 gen 433708 top level 5 received_uuid - uuid ac35015a-1ff6-394f-88f5-0d7cc394a089 path btrbk/q.20230218T040016-0500 ID 12905 gen 433811 top level 5 received_uuid - uuid 6ede5b66-9c0e-724d-be87-fe52dbc29155 path btrbk/q.20230218T050014-0500 ID 12907 gen 434221 top level 5 received_uuid - uuid 11c71068-830b-044a-b032-3cc12947d88f path btrbk/q.20230218T054921-0500
Re: btrfs receive: ERROR: clone: did not find source subvol (user error, not a bug)
Upon further investigation, I'm pretty sure there was an error on my end, nothing wrong with btrfs. A cronjob was creating a snapshot on the wrong host with a name that lead me to think it was from a different host. Thank you everyone for the help.
Re: btrfs receive: ERROR: clone: did not find source subvol (user error, not a bug)
Scratch that, I had the error again, and there was no simultaneous snapshots. Again, I needed to wipe the relevant snapshots to get work done, but next time I'm going to try to save them off for further debugging.
Quoted 4 lines · Ian Kelling
Upon further investigation, I'm pretty sure there was an error on my end, nothing wrong with btrfs. A cronjob was creating a snapshot on the wrong host with a name that lead me to think it was from a different host. Thank you everyone for the help.