Linux Version Not Uploading Newly Added Files


7bit

Recommended Posts

Reproducible: always.

 

Steps to reproduce:

 

* Kubuntu 12.04 and BitTorrent Sync 1.2.82 (the one from the launchpad ppa)

* have a folder on the Linux PC shared with your mobile phone (or with other PC)

* make a new folder outside this shared folder, place a file into this new folder

* drag&drop¹ this new folder into the shared folder ("move" not "copy")

* watch the user interface in the browser and observe what happens on both devices

 

 

Expected result:

 

* It should detect this newly placed folder and file

* It should begin uploading the folder and the file

 

Actual result:

 

* It will detect this and correctly sum up the file sizes for transfer (shown in the UI)

* It will create the folder on the other device

* It will not upload the file!

 

It won't upload any files from moved folders (actually it won't upload any moved files at all, even without any folders involved), it will create the entire folder structure with all subfolders that was moved into the shared folder and also correctly count the file sizes of all contained files and display the bytes to upload in the UI but it won't actually upload any files, all I get is empty folders and the UI telling me how many MB there still need to be uploaded but it just won't ever happen, no matter how long I wait.

 

 

Workaround:

 

$ cd /path/to/the/new/folder

$ find . -exec touch {} \;
 

The above workaround works always, at least in my simple scenario but this does not seem to be a good solution, especially when the problematic folder is somewhere deep inside a folder structure and I have no idea which one it is I have to touch every single file in the entire folder and all subfolders every time there is a problem and this might even cause additional problems if more than one peer is involved or it needs synching in both directions.

 

Please try to fix this bug, this software is excellent and there exists nothing comparable on this planet but this one annoying bug makes the Linux version almost unusable.

 

___________

¹) drag&drop in Dolphin (KDE) will ask whether to copy or whether to move, choose move (although copy won't work either, copy did work (sometimes) when done from the command line)

Link to comment
Share on other sites

Edit: forget the log below, its the wrong one, I'll try to make another one

/Edit

 

Here is some log (grepped for folder name):

[20140203 16:15:56.572] Found peer for folder /home/bernd/btsync/Handy/Download 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140203 16:15:59.510] [OnNotifyFileChange] /home/bernd/btsync/Handy/Download/testfolder, source = NULL[20140203 16:15:59.510] SyncFilesController [file changed]: processing file "/home/bernd/btsync/Handy/Download/testfolder"[20140203 16:15:59.510] Added path=/home/bernd/btsync/Handy/Download/testfolder with fd=50[20140203 16:15:59.511] [OnNotifyFileChange] /home/bernd/btsync/Handy/Download/.SyncID, source = NULL[20140203 16:16:00.577] State sync finished for folder /home/bernd/btsync/Handy/Download[20140203 16:16:06.607] Found peer for folder /home/bernd/btsync/Handy/Download 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140203 16:16:10.379] SyncFilesController [file updated]: processing file /home/bernd/btsync/Handy/Download/testfolder 1391440442 4096[20140203 16:16:10.379] [OnNotifyFileChange] /home/bernd/btsync/Handy/Download/.SyncID, source = NULL[20140203 16:16:10.380] SyncFilesController [file updated]: processing file /home/bernd/btsync/Handy/Download/testfolder/testfile.png 1391374253 276144[20140203 16:16:16.596] Found peer for folder /home/bernd/btsync/Handy/Download 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140203 16:16:21.967] State sync finished for folder /home/bernd/btsync/Handy/Download[20140203 16:16:22.784] [OnNotifyFileChange] /home/bernd/btsync/Handy/Download/.SyncID, source = NULL[20140203 16:16:22.831] Extension: ipv4:[93.218.125.192] for '/home/bernd/btsync/Handy/Download/testfolder/testfile.png'[20140203 16:16:23.221] Torrent /home/bernd/btsync/Handy/Download/testfolder/testfile.png status:137 error:<NULL> meta:1 conns:1 io:0[20140203 16:16:24.022] Torrent /home/bernd/btsync/Handy/Download/testfolder/testfile.png status:137 error:<NULL> meta:1 conns:1 io:0[20140203 16:16:25.171] Torrent /home/bernd/btsync/Handy/Download/testfolder/testfile.png status:137 error:<NULL> meta:1 conns:0 io:0[20140203 16:16:25.171] Force unloading torrent /home/bernd/btsync/Handy/Download/testfolder/testfile.png[20140203 16:16:26.672] Found peer for folder /home/bernd/btsync/Handy/Download 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140203 16:16:36.610] Found peer for folder /home/bernd/btsync/Handy/Download 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140203 16:16:36.678] State sync finished for folder /home/bernd/btsync/Handy/Download
Link to comment
Share on other sites

I have made another observation: I have also a Windows 7 machine in my network and when sharing between Linux and Windows there are no problems, the problems described in post #1 only occur between my Linux box and my Android phone!

 

Also since I have enabled DHT on all my shares on the Linux box it does not seem to happen anymore (need more testing before i can say this with certainty). How can this possibly affect it? They both see each other even without DHT (on both sides its displayed that the other side is online) what has DHT then to do with it after they are connected already?

Link to comment
Share on other sites

Ok, it seems it does not have to do with DHT, it still happens. This time i copied (not moved!) 9 jpeg files into the "Camera" folder that is synced with my Android phone camera folder. I first created a new folder, this was synced to the device immediately, the new folder appears on my Android. Then I dumped these 9 files into this new folder and now it shows "^ 6.3 MB", sync indicator is spinning, nothing happens. Grepping the log for the folder name only shows repeated the following:

[...][20140205 14:13:19.478] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:20.190] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:29.388] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:29.407] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:32.069] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:32.070] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:32.490] State sync finished for folder /home/bernd/btsync/Handy/Camera[20140205 14:13:39.746] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:39.851] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:39.852] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:40.465] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:49.568] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:49.579] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:51.217] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:51.218] Found peer for folder /home/bernd/btsync/Handy/Camera 01225B248E83DE5FCE15FAD8148839E634E31BA1 192.168.178.20:10960 direct:1[20140205 14:13:51.435] State sync finished for folder /home/bernd/btsync/Handy/Camera[...]

And it stays that way, nothing further happening.

 

Whatever the "state sync" is doing, it must be doing it wrong or interpreting its results the wrong way. Why is it able to determine the exact amount of data needed to upload but does not actually try to do it?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.