Syncing wrong folder names to remote node


#1

Hi,

I’m having some issues with syncthing where the remote will have the wrong directory name compared to the source.

I’m using Syncthing to sync a drive from my desktop (Windows 7) to a remote server (Ubuntu 16.04). The desktop side is using “Send only” and “Compress All Data”. Server side has “Staggered File Versioning enabled”. Both are using the latest version (0.14.43)

I have a folder named “2015 Desktop unsorted” in the top level of the drive on my desktop. However, when it gets synced to my server, it shows up as “Desktop”. The synced contents and any sub-directories appear to be correct, but the directory has the wrong name. All other top level directories are correctly named.

The contents of the drive haven’t been changed since I started using Syncthing, so the folder hasn’t been renamed during sync (even if it did, Syncthing should pick up the changes).

Logging on the server shows Syncthing writing to the incorrect directory name, bot doesn’t show anything else of interest. Verbose logging on my desktop doesn’t show anything interesting (it doesn’t print anything about reads).

Any idea why this is happening?


(Audrius Butkevicius) #2

If one of the folders is send only, it’s possible that the rename will never propagate as it’s send only. It’s impossible for syncthing to come up with its own name for a folder, so it was definately caused by a user.

You should provide screenshots and logs from both sides.


#3

Except there was never a rename. This drive hasn’t had any modifications since I started Syncthing and this is a brand new install of Syncthing on both sides.

Desktop side:

Drive:

image

(have to make a new post for every screenshot, since I’m only allowed 1 upload per post)


#4

Syncthing settings:

644746f9-ad5d-4825-b71b-173eee746339


#5

Server side: G directory was created by Syncthing. Nothing has been modified by anyone serverside. Oddly, Desktop has 555 permissions.

G % la
total 0
drwxrwxr-x 1 336 Jan  9 17:32 .
drwxrwxr-x 1 6 Jan  6 02:12 ..
drwxr-xr-x 1 0 Jan  6 02:29 2014 Unsorted old windows
drwxr-xr-x 1 28666 Jan 10 01:28 2015 torrents unsorted
drwxr-xr-x 1 6648 Jan  9 21:10 Anime
drwxr-xr-x 1 338 Jan  9 23:14 Backups
dr-xr-xr-x 1 4626 Jan  9 19:55 Desktop
drwxr-xr-x 1 24 Jan  6 02:38 Games
drwxr-xr-x 1 16710 Jan  9 21:58 Music
drwxr-xr-x 1 358 Jan  6 02:29 $RECYCLE.BIN
drwxrwxr-x 1 0 Jan  6 02:12 .stfolder
drwxr-xr-x 1 24 Jan  9 17:32 .stversions
drwxr-xr-x 1 0 Jan  6 02:38 System Volume Information

Settings:

c114f675-d354-4643-a981-e682b8f3fa22

Logs:

% syncthing -verbose -no-browser
[monitor] 02:50:59 INFO: Starting syncthing
[CKEWU] 02:50:59 INFO: syncthing v0.14.43 "Dysprosium Dragonfly" (go1.9.2 linux-amd64) deb@build.syncthing.net 2017-12-29 21:23:06 UTC [noupgrade]
[CKEWU] 02:50:59 INFO: My ID: CKEWUTO
[CKEWU] 02:51:00 INFO: Single thread SHA256 performance is 313 MB/s using minio/sha256-simd (213 MB/s using crypto/sha256).
[CKEWU] 02:51:00 VERBOSE: Starting up (/home//.config/syncthing)
[CKEWU] 02:51:00 INFO: Hashing performance with weak hash is 270.05 MB/s
[CKEWU] 02:51:01 INFO: Hashing performance without weak hash is 308.41 MB/s
[CKEWU] 02:51:01 INFO: Weak hash enabled, as it has an acceptable performance impact.
[CKEWU] 02:51:01 INFO: Ready to synchronize "E" (2dzqu-h2u3u) (readwrite)
[CKEWU] 02:51:01 INFO: Ready to synchronize "F" (fx2jj-3jumc) (readwrite)
[CKEWU] 02:51:01 INFO: Ready to synchronize "G" (rg5cj-byvph) (readwrite)
[CKEWU] 02:51:01 INFO: Send rate is unlimited, receive rate is unlimited
[CKEWU] 02:51:01 INFO: Rate limits do not apply to LAN connections
[CKEWU] 02:51:01 INFO: Using discovery server https://discovery-v4-2.syncthing.net/v2/?id=DVU36WY-
[CKEWU] 02:51:01 INFO: Using discovery server https://discovery-v4-3.syncthing.net/v2/?id=VK6HNJ3-
[CKEWU] 02:51:01 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
[CKEWU] 02:51:01 INFO: Using discovery server https://discovery-v4-4.syncthing.net/v2/?id=LYXKCHX-
[CKEWU] 02:51:01 INFO: TCP listener ([::]:22000) starting
[CKEWU] 02:51:01 INFO: KCP listener ([::]:22020) starting
[CKEWU] 02:51:01 VERBOSE: Folder "2dzqu-h2u3u" is now scanning
[CKEWU] 02:51:01 VERBOSE: Folder "fx2jj-3jumc" is now scanning
[CKEWU] 02:51:01 VERBOSE: Folder "rg5cj-byvph" is now scanning
[CKEWU] 02:51:01 INFO: kcp://0.0.0.0:22020 detected NAT type: Not behind a NAT
[CKEWU] 02:51:01 INFO: kcp://0.0.0.0:22020 resolved external address kcp://5.:22020 (via stun.ideasip.com:3478)
[CKEWU] 02:51:01 VERBOSE: Listen address kcp://0.0.0.0:22020 resolution has changed: lan addresses: [kcp://0.0.0.0:22020] wan addresses: [kcp://0.0.0.0:22020 kcp://5.:22020]
[CKEWU] 02:51:01 INFO: Completed initial scan of readwrite folder "E" (2dzqu-h2u3u)
[CKEWU] 02:51:01 VERBOSE: Folder "2dzqu-h2u3u" is now idle
[CKEWU] 02:51:01 VERBOSE: Folder "2dzqu-h2u3u" is now syncing
[CKEWU] 02:51:02 INFO: Completed initial scan of readwrite folder "F" (fx2jj-3jumc)
[CKEWU] 02:51:02 VERBOSE: Folder "fx2jj-3jumc" is now idle
[CKEWU] 02:51:02 VERBOSE: Folder "fx2jj-3jumc" is now syncing
[CKEWU] 02:51:03 INFO: Completed initial scan of readwrite folder "G" (rg5cj-byvph)
[CKEWU] 02:51:03 VERBOSE: Folder "rg5cj-byvph" is now idle
[CKEWU] 02:51:03 VERBOSE: Folder "rg5cj-byvph" is now syncing
[CKEWU] 02:51:03 VERBOSE: Folder "2dzqu-h2u3u" is now idle
[CKEWU] 02:51:03 INFO: Using discovery server https://discovery-v6-2.syncthing.net/v2/?id=DVU36WY-
[CKEWU] 02:51:03 INFO: Using discovery server https://discovery-v6-3.syncthing.net/v2/?id=VK6HNJ3-
[CKEWU] 02:51:03 INFO: Using discovery server https://discovery-v6-4.syncthing.net/v2/?id=LYXKCHX-
[CKEWU] 02:51:03 INFO: Device CKEWUTO is "server" at [dynamic]
[CKEWU] 02:51:03 INFO: Device DFBQ4ZF is "desktop" at [dynamic]
[CKEWU] 02:51:03 VERBOSE: Startup complete
[CKEWU] 02:51:03 INFO: GUI and API listening on [::]:8384
[CKEWU] 02:51:03 INFO: Access the GUI via the following URL: https://127.0.0.1:8384/
[CKEWU] 02:51:05 VERBOSE: Folder "fx2jj-3jumc" is now idle
[CKEWU] 02:51:06 VERBOSE: Summary for folder "fx2jj-3jumc" is map[globalSymlinks:0 globalBytes:900243801428 globalFiles:16008 needBytes:888223625448 inSyncBytes:12020175980 localFiles:464 sequence:20002 needSymlinks:0 globalDirectories:1463 localBytes:12020175980 needDirectories:0 version:20002 globalDeleted:226 state:idle needDeletes:0 localDeleted:76 needFiles:15544 localSymlinks:0 localDirectories:1463 inSyncFiles:464]
[CKEWU] 02:51:06 VERBOSE: Folder "rg5cj-byvph" is now idle
[CKEWU] 02:51:07 VERBOSE: Summary for folder "rg5cj-byvph" is map[localFiles:2619 needFiles:34367 globalSymlinks:0 localDeleted:5 localBytes:14806264260 globalFiles:36984 needDirectories:0 needBytes:910686488115 localSymlinks:0 sequence:46461 globalBytes:925492752347 version:46461 state:idle needSymlinks:0 needDeletes:0 inSyncFiles:2617 globalDeleted:5 localDirectories:3418 globalDirectories:3418 inSyncBytes:14806264232]
[CKEWU] 02:51:10 INFO: Joined relay relay://176.114.250.14:443
[CKEWU] 02:51:11 VERBOSE: Listen address dynamic+https://relays.syncthing.net/endpoint resolution has changed: lan addresses: [relay://176.114.250.14:443/?id=I5QCDAR-OZWY2M2-OIMO57D-5O4HRXY-UNO5MD4-PUVWODJ-G32HUS4-37XRNQG&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=250000&statusAddr=:8082&providedBy=horda] wan addresses: [relay://176.114.250.14:443/?id=I5QCDAR-OZWY2M2-OIMO57D-5O4HRXY-UNO5MD4-PUVWODJ-G32HUS4-37XRNQG&pingInterval=1m0s&networkTimeout=2m0s&sessionLimitBps=0&globalLimitBps=250000&statusAddr=:8082&providedBy=horda]
[CKEWU] 02:51:12 INFO: Detected 0 NAT devices
[CKEWU] 02:51:24 INFO: Established secure connection to DFBQ4ZF at 5:33488-107:8080 (relay-client) (TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305)
[CKEWU] 02:51:24 INFO: Device DFBQ4ZF client is "syncthing v0.14.43" named "desktop"
[CKEWU] 02:51:24 VERBOSE: Connected to device DFBQ4ZF at 107:8080 (type relay-client)
[CKEWU] 02:51:25 VERBOSE: Folder "fx2jj-3jumc" is now syncing
[CKEWU] 02:51:25 VERBOSE: Folder "rg5cj-byvph" is now syncing
[CKEWU] 02:51:29 VERBOSE: Started syncing "rg5cj-byvph" / "Desktop/StepMania/Cache/Songs/1980481138" (update file)
[CKEWU] 02:51:29 VERBOSE: Started syncing "rg5cj-byvph" / "Desktop/3ML/extracted/thing.txt" (update file)
[CKEWU] 02:51:29 VERBOSE: Started syncing "rg5cj-byvph" / "Desktop/StepMania/Themes/default/BGAnimations/ScreenNameEntry background/CVS/Entries" (update file)
[CKEWU] 02:51:29 VERBOSE: Started syncing "rg5cj-byvph" / "Desktop/StepMania/NoteSkins/dance/note/Left Hold Head Active 32nd.sprite" (update file)
[CKEWU] 02:51:29 VERBOSE: Started syncing "rg5cj-byvph" / "Desktop/3ML/musicid355.mml" (update file)


#6

For the hell of it, I spun up another Syncthing instance on another server, and it creates does the exact same thing.

~/G % la                                                                                                                                                                             
total 64
drwxrwxr-x 16 4096 Jan 10 03:20 .
drwxr-xr-x 26 4096 Jan 10 03:21 ..
drwxr-xr-x  2 4096 Jan 10 03:20 2014 Unsorted old windows
drwxr-xr-x 44 4096 Jan 10 03:20 2015 torrents unsorted
drwxr-xr-x 47 4096 Jan 10 03:20 Anime
drwxr-xr-x  5 4096 Jan 10 03:20 Backups
dr-xr-xr-x 22 4096 Jan 10 03:20 Desktop
drwxr-xr-x  6 4096 Jan 10 03:20 Games
drwxr-xr-x 78 4096 Jan 10 03:20 Music
drwxr-xr-x  6 4096 Jan 10 03:20 $RECYCLE.BIN
drwxrwxr-x  2 4096 Jan 10 03:14 .stfolder
drwxr-xr-x  2 4096 Jan 10 03:20 System Volume Information

The outdated files list on the desktop (Send only) side shows the wrong directory name too.


(Jakob Borg) #7

I wonder if the desktop is magic enough that Windows does something to show it with a different name than is actually on disk. Mac OS can do this with localized file names, for example Applications on disk that shows as Program in Swedish, etc.

In other words - I don’t know how or why, but I suspect that if there is a discrepancy here it’s Explorer lying to you.


#8

I thought about this. Open a command box and cd drive: then dir /x

Also I met this on a localised Win2k8 server trying to sync a dir on the desktop. ST created a Bureau\dir beside Bureau (Desktop) in the profile.

I solved it using english wording for the folder path : ~\Desktop\Dir


(Antony Male) #9

Yes, it can and will do this. ‘Desktop’ is one of those. Right-click the ‘Desktop’ folder, view the ‘Location’ tab to see the actual path.


#10

It’s the way to change C:\User\You\Music to D:\User\You\Music Enter/Enter/Enter

The funny thing is that I discovered only 3 days ago that we could also do this in XP only from within the special My Docs icon in startup menu or the one that can be shown on the desktop with Display Properties/Desktop/Customize dialog (beside registry edit or GPO).


#11

@calmh That seems to be the issue after seeing the output of @cosas’ instructions May be something in Windows about renaming user directories and not having it change the canonical name.

@cosas Interesting

G:\>dir /x
 Volume in drive G is Storage2
 Volume Serial Number is BA89-C783

 Directory of G:\

12/16/2016  09:51 PM    <DIR>          2014UN~1     2014 Unsorted old windows
06/07/2017  12:16 AM    <DIR>          2015TO~1     2015 torrents unsorted
05/05/2016  11:59 PM    <DIR>                       Anime
12/23/2017  03:44 AM    <DIR>                       Backups
06/07/2017  12:18 AM    <DIR>                       Desktop
04/05/2015  12:21 AM    <DIR>                       Games
09/10/2017  06:07 PM    <DIR>                       Music

@canton7 I’m assuming you meant "Right-click the “Desktop” folder and Click “Properties”, but neither the right click menu, nor the properties menu have a “location” tab/button. image

I did some digging on my own, as I was writing this and it seems that desktop.ini will override the display name if it has a localized name set.

Which appartently is the case.

[.ShellClassInfo]
LocalizedResourceName=2015 Desktop unsorted

Removing desktop.ini and remounting the drive fixes the issue.

Case closed! Thanks for the help @cosas @calmh


#12

The “Place” tab only shows on users’ main sub-folders (Docs, Mus, Vid, Desktop …)

Have a look in C:\Users\You(FatherInLaw)* and right click some folders here : some of them show this tab

  • as long as this system wasn’t tweaked so that whole C:\Users was moved elsewhere, which is quite difficult

(system) #13

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.