Sync deleting files inappropriately

I’m trying Sync again after a gap of a year, but am not filled with confidence as to it’s robustness or how well this has been thought through.

Steps to reproduce:

  • I had a fully synchronised vault on desktop, including all file types apart from images
  • I then added an android sync but did not change any of the defaults, so it was to synchronise only images and not other attachments.
  • It synched perfectly well.
  • I then changed the sync settings on the phone to include all file types, media pdf files etc.
  • I got this in the log (Log 1 on mobile below)
  • A half a day later I opened obsidian on the desktop and got this (log 2 below)
  • All media files wiped as having been deleted on mobile - Holy Smoke!
  • I will add that one possible factor (not 100% clear - but does not make it any less of a bug) in reproduction is that the phone memory was quite full. It is possible that if the phone tries to do a download and that download fails (they are not shown as failed, simply as “skipped”) it marks the file as having been deleted on the server. If that is the cause it would be even more problematical.

Log 1 on mobile

2024-02-22 04:46 - Connecting to server
2024-02-22 04:46 - Connection successful. Detecting changes…
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/davidson_mental_illness_in_us_presidents.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/20161029_lying_new_scientist.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/och_occupational_health_law.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/paper_soviet_psychiatry.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/luther_king_querulous.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/querulous_paranoia.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/CPT and notice periods and AST interpretation - LandlordZONE Forums.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/01 Woke and related/attachments/hidden environmental downsides electric cars.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Interpretation of a break clause - LandlordZONE Forums.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Fom 4 section 13 rent increase - LandlordZONE Forums.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Council housing repairs disaster.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield_council_dishonesty_tree_felling.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Labour candidate deselected.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/bbc City council staff sacked fraud.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/eye-watering pay Sheffield Councils.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/01 Woke and related/attachments/Eco-friendly paper straws toxic.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Council house disrepair.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield councillors antisemitic.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Contractual Periodic Tenancy or Statuto…pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Deregulation Act, return of deposits an…pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Can tenant leave before end of fixed te…pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Snowmen trees scandal.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield council must resign.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/dumped ebay holocaust seller examples.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield_council_no_toilets.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Council privatising parkland.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield_council_planning.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield centre disaster.pdf
2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] attachments/Untitled.loom
2024-02-22 04:46 - Server pushed [moto g(8)] 06 Current Brain dump/attachments/Defending_Possession_Proceedings.pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/Defending_Possession_Proceedings.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/Sheffield centre disaster.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/sheffield_council_planning.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/sheffield_council_no_toilets.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/Council privatising parkland.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/sheffield council must resign.pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/dumped ebay holocaust seller examples.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/Sheffield Snowmen trees scandal.pdf
2024-02-22 04:46 - Skipped 04 Assorted/01 Woke and related/attachments/Eco-friendly paper straws toxic.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/Sheffield Council house disrepair.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/Sheffield councillors antisemitic.pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/Contractual Periodic Tenancy or Statuto…pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/Deregulation Act, return of deposits an…pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/Can tenant leave before end of fixed te…pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/bbc City council staff sacked fraud.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/eye-watering pay Sheffield Councils.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/Sheffield Labour candidate deselected.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/sheffield_council_dishonesty_tree_felling.pdf
2024-02-22 04:46 - Skipped 04 Assorted/Sheffield Council/attachments/Sheffield Council housing repairs disaster.pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/Fom 4 section 13 rent increase - LandlordZONE Forums.pdf
2024-02-22 04:46 - Skipped 04 Assorted/01 Woke and related/attachments/hidden environmental downsides electric cars.pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/Interpretation of a break clause - LandlordZONE Forums.pdf
2024-02-22 04:46 - Skipped 06 Current Brain dump/attachments/CPT and notice periods and AST interpretation - LandlordZONE Forums.pdf
2024-02-22 04:46 - Skipped 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/querulous_paranoia.pdf
2024-02-22 04:46 - Skipped 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/luther_king_querulous.pdf
2024-02-22 04:46 - Skipped 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/paper_soviet_psychiatry.pdf
2024-02-22 04:46 - Skipped 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/och_occupational_health_law.pdf
2024-02-22 04:46 - Skipped 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/20161029_lying_new_scientist.pdf
2024-02-22 04:46 - Skipped 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/davidson_mental_illness_in_us_presidents.pdf
2024-02-22 04:46 - Uploading file .obsidian/plugins/recent-files-obsidian/data.json
2024-02-22 04:46 - Upload complete .obsidian/plugins/recent-files-obsidian/data.json
2024-02-22 04:46 - Fully synced

A half a day later I opened obsidian on the desktop and got this

Log 2 on desktop - all media files wiped

2024-02-22 09:55 - Connecting to server
2024-02-22 09:55 - Server pushed [moto g(8)] .obsidian/app.json
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/davidson_mental_illness_in_us_presidents.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/20161029_lying_new_scientist.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/och_occupational_health_law.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/paper_soviet_psychiatry.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/luther_king_querulous.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/querulous_paranoia.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/CPT and notice periods and AST interpretation - LandlordZONE Forums.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/01 Woke and related/attachments/hidden environmental downsides electric cars.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Interpretation of a break clause - LandlordZONE Forums.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Fom 4 section 13 rent increase - LandlordZONE Forums.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Council housing repairs disaster.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield_council_dishonesty_tree_felling.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Labour candidate deselected.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/bbc City council staff sacked fraud.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/eye-watering pay Sheffield Councils.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/01 Woke and related/attachments/Eco-friendly paper straws toxic.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Council house disrepair.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield councillors antisemitic.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Contractual Periodic Tenancy or Statuto…pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Deregulation Act, return of deposits an…pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/Can tenant leave before end of fixed te…pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield Snowmen trees scandal.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield council must resign.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 06 Current Brain dump/attachments/dumped ebay holocaust seller examples.pdf
2024-02-22 09:55 - Connection successful. Detecting changes…
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield_council_no_toilets.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Council privatising parkland.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/sheffield_council_planning.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] 04 Assorted/Sheffield Council/attachments/Sheffield centre disaster.pdf
2024-02-22 09:55 - Server pushed (deleted or renamed) [moto g(8)] attachments/Untitled.loom
2024-02-22 09:55 - Server pushed [moto g(8)] 06 Current Brain dump/attachments/Defending_Possession_Proceedings.pdf
2024-02-22 09:55 - Server pushed [moto g(8)] .obsidian/plugins/recent-files-obsidian/data.json
2024-02-22 09:55 - Server pushed [moto g(8)] 06 Current Brain dump/:brain: Brain Dump.md
2024-02-22 09:55 - Downloading file .obsidian/app.json
2024-02-22 09:55 - Downloading complete .obsidian/app.json
2024-02-22 09:55 - Accepted .obsidian/app.json
2024-02-22 09:55 - Deleting 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/davidson_mental_illness_in_us_presidents.pdf
2024-02-22 09:55 - Accepted 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/davidson_mental_illness_in_us_presidents.pdf
2024-02-22 09:55 - Deleting 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/20161029_lying_new_scientist.pdf
2024-02-22 09:55 - Accepted 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/20161029_lying_new_scientist.pdf
2024-02-22 09:55 - Deleting 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/och_occupational_health_law.pdf
2024-02-22 09:55 - Accepted 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/och_occupational_health_law.pdf
2024-02-22 09:55 - Deleting 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/paper_soviet_psychiatry.pdf
2024-02-22 09:55 - Accepted 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/paper_soviet_psychiatry.pdf
2024-02-22 09:55 - Deleting 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/luther_king_querulous.pdf
2024-02-22 09:55 - Accepted 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/luther_king_querulous.pdf
2024-02-22 09:55 - Deleting 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/querulous_paranoia.pdf
2024-02-22 09:55 - Accepted 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/querulous_paranoia.pdf
2024-02-22 09:55 - Deleting 06 Current Brain dump/attachments/CPT and notice periods and AST interpretation - LandlordZONE Forums.pdf
2024-02-22 09:55 - Accepted 06 Current Brain dump/attachments/CPT and notice periods and AST interpretation - LandlordZONE Forums.pdf
2024-02-22 09:55 - Deleting 04 Assorted/01 Woke and related/attachments/hidden environmental downsides electric cars.pdf
2024-02-22 09:55 - Accepted 04 Assorted/01 Woke and related/attachments/hidden environmental downsides electric cars.pdf
2024-02-22 09:55 - Deleting 06 Current Brain dump/attachments/Interpretation of a break clause - LandlordZONE Forums.pdf
2024-02-22 09:55 - Accepted 06 Current Brain dump/attachments/Interpretation of a break clause - LandlordZONE Forums.pdf
2024-02-22 09:55 - Deleting 06 Current Brain dump/attachments/Fom 4 section 13 rent increase - LandlordZONE Forums.pdf
2024-02-22 09:55 - Accepted 06 Current Brain dump/attachments/Fom 4 section 13 rent increase - LandlordZONE Forums.pdf
2024-02-22 09:55 - Deleting 04 Assorted/Sheffield Council/attachments/Sheffield Council housing repairs disaster.pdf
2024-02-22 09:55 - Accepted 04 Assorted/Sheffield Council/attachments/Sheffield Council housing repairs disaster.pdf
2024-02-22 09:55 - Deleting 04 Assorted/Sheffield Council/attachments/sheffield_council_dishonesty_tree_felling.pdf
2024-02-22 09:55 - Accepted 04 Assorted/Sheffield Council/attachments/sheffield_council_dishonesty_tree_felling.pdf
2024-02-22 09:55 - Deleting 04 Assorted/Sheffield Council/attachments/Sheffield Labour candidate deselected.pdf
2024-02-22 09:55 - Accepted 04 Assorted/Sheffield Council/attachments/Sheffield Labour candidate deselected.pdf
2024-02-22 09:55 - Deleting 04 Assorted/Sheffield Council/attachments/bbc City council staff sacked fraud.pdf
2024-02-22 09:55 - Accepted 04 Assorted/Sheffield Council/attachments/bbc City council staff sacked fraud.pdf
2024-02-22 09:55 - Deleting 04 Assorted/Sheffield Council/attachments/eye-watering pay Sheffield Councils.pdf
2024-02-22 09:55 - Accepted 04 Assorted/Sheffield Council/attachments/eye-watering pay Sheffield Councils.pdf
2024-02-22 09:55 - Deleting 04 Assorted/01 Woke and related/attachments/Eco-friendly paper straws toxic.pdf
2024-02-22 09:55 - Accepted 04 Assorted/01 Woke and related/attachments/Eco-friendly paper straws toxic.pdf
2024-02-22 09:55 - Deleting 04 Assorted/Sheffield Council/attachments/Sheffield Council house disrepair.pdf
2024-02-22 09:55 - Accepted 04 Assorted/Sheffield Council/attachments/Sheffield Council house disrepair.pdf
2024-02-22 09:55 - Deleting 04 Assorted/Sheffield Council/attachments/Sheffield councillors antisemitic.pdf
2024-02-22 09:55 - Accepted 04 Assorted/Sheffield Council/attachments/Sheffield councillors antisemitic.pdf
2024-02-22 09:55 - Deleting 06 Current Brain dump/attachments/Contractual Periodic Tenancy or Statuto…pdf
2024-02-22 09:55 - Accepted 06 Current Brain dump/attachments/Contractual Periodic Tenancy or Statuto…pdf
2024-02-22 09:55 - Deleting 06 Current Brain dump/attachments/Deregulation Act, return of deposits an…pdf
2024-02-22 09:55 - Accepted 06 Current Brain dump/attachments/Deregulation Act, return of deposits an…pdf
2024-02-22 09:56 - Deleting 06 Current Brain dump/attachments/Can tenant leave before end of fixed te…pdf
2024-02-22 09:56 - Accepted 06 Current Brain dump/attachments/Can tenant leave before end of fixed te…pdf
2024-02-22 09:56 - Deleting 04 Assorted/Sheffield Council/attachments/Sheffield Snowmen trees scandal.pdf
2024-02-22 09:56 - Accepted 04 Assorted/Sheffield Council/attachments/Sheffield Snowmen trees scandal.pdf
2024-02-22 09:56 - Deleting 04 Assorted/Sheffield Council/attachments/sheffield council must resign.pdf
2024-02-22 09:56 - Accepted 04 Assorted/Sheffield Council/attachments/sheffield council must resign.pdf
2024-02-22 09:56 - Deleting 06 Current Brain dump/attachments/dumped ebay holocaust seller examples.pdf
2024-02-22 09:56 - Accepted 06 Current Brain dump/attachments/dumped ebay holocaust seller examples.pdf
2024-02-22 09:56 - Deleting 04 Assorted/Sheffield Council/attachments/sheffield_council_no_toilets.pdf
2024-02-22 09:56 - Accepted 04 Assorted/Sheffield Council/attachments/sheffield_council_no_toilets.pdf
2024-02-22 09:56 - Deleting 04 Assorted/Sheffield Council/attachments/Council privatising parkland.pdf
2024-02-22 09:56 - Accepted 04 Assorted/Sheffield Council/attachments/Council privatising parkland.pdf
2024-02-22 09:56 - Deleting 04 Assorted/Sheffield Council/attachments/sheffield_council_planning.pdf
2024-02-22 09:56 - Accepted 04 Assorted/Sheffield Council/attachments/sheffield_council_planning.pdf
2024-02-22 09:56 - Deleting 04 Assorted/Sheffield Council/attachments/Sheffield centre disaster.pdf
2024-02-22 09:56 - Accepted 04 Assorted/Sheffield Council/attachments/Sheffield centre disaster.pdf
2024-02-22 09:56 - Deleting attachments/Untitled.loom
2024-02-22 09:56 - Accepted attachments/Untitled.loom
2024-02-22 09:56 - Downloading file 06 Current Brain dump/attachments/Defending_Possession_Proceedings.pdf
2024-02-22 09:56 - Downloading complete 06 Current Brain dump/attachments/Defending_Possession_Proceedings.pdf
2024-02-22 09:56 - Accepted 06 Current Brain dump/attachments/Defending_Possession_Proceedings.pdf
2024-02-22 09:56 - Merging conflicted file .obsidian/plugins/recent-files-obsidian/data.json
2024-02-22 09:56 - Merge successful .obsidian/plugins/recent-files-obsidian/data.json
2024-02-22 09:56 - Downloading file 06 Current Brain dump/:brain: Brain Dump.md
2024-02-22 09:56 - Downloading complete 06 Current Brain dump/:brain: Brain Dump.md
2024-02-22 09:56 - Accepted 06 Current Brain dump/:brain: Brain Dump.md
2024-02-22 09:56 - Fully synced

1 Like

On further examination of disk backups before and after these events the above is exactly what happened. There are several different bugs involved here.

  • Sync of other file types was switched on - on the mobile
  • The phone ran out of space in the MIDDLE of the first attachment download.
  • This yielded a partial file for that attachment which was downloaded - the first half of the binary of a pdf (Bug 1: Downloads should be complete or not at all)
  • All other files are noted in log as “skipped” - (Bug 2: Running out of space is not a “skipped” - that is an inappropriate log entry, which is not even marked as an error at all)
  • Deletion of every file was then transmitted back to the server, and the partial (corrupted) one file was also transmitted back (Bug 3)
  • Obviously all the files were then wiped on other devices, and the corrupted half file also sent
  • Absolutely no error messages in the log on either side as part of any of this.

I am not as certain as you are on the reconstruction of events.

Are you sure that Log 1 is from moto g(8), it looks like it comes from another device.

Yes exactly as described

2024-02-22 04:46 - Server pushed (deleted or renamed) [moto g(8)] 08 Verbiage and writing resources/Dump zone/From dokuwiki not just case lots more/Attachments/20161029_lying_new_scientist.pdf

Here [moto g(8)] is the device who did the action originally (deleted or renamed).
In normal circumstances, it is impossible for [moto g(8)] to originate the delete and be on the receiving end of the same action.

There are 2 explanations:

  1. The simple explanation: That sync log is not from [moto g(8)]
  2. The exceptional explanation: You have two local copies of the same vault on [moto g(8)] and both are connected to the same remote vault on sync. The note was deleted on one of the local copies, then you switched to the other local copy and received the deletion there.

@WhiteNoise

I’m experiencing sync deletion issues as well, in this context:

  • I have a .cycler DSL and an Obsidian plugin that generates UI for it
    • there are .md files which activate the UI via a MarkdownPostProcessor
    • the .cycler files have data persistence via vault.adapter.write, based on myAPI.save events that occur in the UI. these events occur infrequently, several times a day at most and are typically spaced out by at least several minutes/hours.
    • no deletion events occur from within my plugin, and no file operations are performed to dynamic groupings of files at any time - only a single targeted file is updated at a time.
  • My vault is under Git version control as a safety net for Sync. This repo is managed exclusively from my desktop and only pushes to remote - pull is never used.

The deletion seems to be triggered primarily when using Sync. I can use my Cycler plugin without issue if I stick to a particular device, but when I load Obsidian on another device there is a sporadic chance that my files will get deleted. Sometimes it’s a single file, sometimes it’s an entire folder.

I’m not sure if the plugin or usage of the vault API has anything to do with the deletion issue, just figured I’d include these details in case they happen to be relevant.

 

Reference

 
Sync Logs

 

 
These are the only adapter usages in my entire plugin:

If this happens only with your plugin, open a thread in developers and API.

If it happens with your plugin disabled, attach the sync logs of all devices involved when the issue happens.