Skip to content

Scan problem within single unignored subdirectory prevents bidirectional sync  #6487

Closed

Description

@firecat53

More details in this forum post.

With a directory setup on the server like this:

subdir/subsubdir/new.txt

And ignores setup on Android phone to only sync subdir/subdir and not any subdir/subdirx like this:

!/subdir/subsubdir
*

New file created on phone: no log entries, not synced to server
New file created on server: file sync’d to phone
Existing file on both, deleted on phone or server, correctly deleted on both
Existing file on both, edited on server: sync’d to phone correctly
Existing file on both, edited on phone: not sync’d to server, no log entries.
Now if that file is subsequently edited on the server, a sync-conflict file is correctly created on both devices.
To summarize: new files created on phone are not sync’d, nor are changes made on the phone to existing files. All other changes/deletes/conflicts are handled correctly.

Log entries per @AudriusButkevicius

04-01 09:10:52.869 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk [subdir/subsubdir/new.txt] Matcher/[!/subdir/subsubdir !/subdir/subsubdir/** * **/* */** **/*/**]@0x4001165b00
04-01 09:10:52.869 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: rescan: File{Name:"subdir/subsubdir/new.txt", Sequence:13, Permissions:0660, ModTime:2020-04-01 16:06:52.363230458 +0000 UTC, Version:{[{ATUYUND 5} {BQMAUHB 5}]}, Length:49, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false, BlockSize:131072, Blocks:[Block{0/49/2755465447/79d04840fe79e58c912456068542762229aa32ac36168b4078ee070cf2573a4b}]} 1585757442 -rw-rw----
04-01 09:10:52.870 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: to hash: subdir/subsubdir/new.txt File{Name:"subdir/subsubdir/new.txt", Sequence:0, Permissions:0660, ModTime:2020-04-01 16:10:42.865204718 +0000 UTC, Version:{[{ATUYUND 5} {BQMAUHB 5}]}, Length:63, Deleted:false, Invalid:false, LocalFlags:0x0, NoPermissions:false, BlockSize:131072, Blocks:[]}
04-01 09:10:52.870 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: real to hash: subdir/subsubdir/new.txt
04-01 09:10:52.870 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk 

and

04-01 11:11:00.750 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk [] Matcher/[!/subdir/subsubdir !/subdir/subsubdir/** * **/* */** **/*/**]@0x40002b81b0
04-01 11:11:00.751 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: ignored (internal): .stfolder
04-01 11:11:00.751 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: ignored (internal): .stignore
04-01 11:11:00.751 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: ignored (patterns): subdir
04-01 11:11:00.752 I/SyncthingNativeCode(10855): [BQMAU] DEBUG: Walk progress done 3427d-oqk5y [] Matcher/[!/subdir/subsubdir !/subdir/subsubdir/** * **/* */** **/*/**]@0x40002b81b0

The following ignore pattern allows successful bi-directional sync:

!/subdir/subsubdir/**
!/subdir/subsubdir
/subdir/**
!/subdir
/**

Thanks!

Version Information

Syncthing Version: v1.4.0
OS Version: Archlinux, Android 10

Activity

  1. added
    bug
    on Apr 2, 2020
  2. added 2 commits that reference this issue on Apr 6, 2020
    3ab0ac4
    8af8ae7
  3. added this to the v1.5.0 milestone on Apr 13, 2020
  4. added
    frozen-due-to-age
    on Apr 8, 2021
  5. locked and limited conversation to collaborators on Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions