It is currently Sat May 18, 2013 3:30 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Size Mismatch after Resume Download FAILED
PostPosted: Mon Mar 05, 2012 10:04 am 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Mar 05, 2012 9:22 am
Posts: 5

Hello everybody!

I've bought and set up TonidoServer. Really cool thing, thanks for your work! But something is wrong with one of the major features - sync. All the files have been uploaded from client (where tonidosync works) to server but they have not been placed in TonidoSync directory on the server, indeed, they hung somewhere inside TonidoSyncData. Any ideas?
Log (trace level, timestamps are manually removed) says:
Code:
[47] [Sync]:T: Download Exists in cache: Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1353.avi
[47] [Sync]:T: Download Exists in cache: Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1332.jpg
[47] [Sync]:T: Download Exists in cache: Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1341.jpg
[47] [Sync]:T: Download Exists in cache: Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1355.jpg
[47] [Sync]:T: Download Exists in cache: Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1331.avi
[47] [Sync]:T: getCheckSum
[51] [TCPServerConnection (default[#31])]:T: HTTP Request [127.0.0.1] [GET] [/app/sync/getchecksum?friendly=tvbox&download=1&fullpath=%2Fhome%2Fprokher%2FTonidoSyncData%2Fserver%2Fcache%2FPictures%2FPhotos%2FParties%2F2008-01-00%20New%20Year%20Party%2F2008-01-01%20%D0%9D%D0%93%20%D0%94%D0%B5%D0%BD%D1%8C%201%2Fcimg1327.jpg&name=b68b2eff-40e9-4f73-90c7-90d25fdddb55&start=0&length=800735]
[7] [DeferredDispatcher]:T: CHECKSUM CALC:[/home/prokher/TonidoSyncData/server/cache/Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1327.jpg][0][800735] START
[7] [DeferredDispatcher]:T: CHECKSUM CALC:[/home/prokher/TonidoSyncData/server/cache/Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1327.jpg] END
[47] [Sync]:T: GetRemote Checksum: 4165389629
[47] [Sync]:T: CHECKSUM CALC:[/home/prokher/TonidoSyncData/client/.tonidocache/Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1327.jpg][0][800735] START
[47] [Sync]:T: CHECKSUM CALC:[/home/prokher/TonidoSyncData/client/.tonidocache/Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1327.jpg] END
[47] [Sync]:T: Get Local Checksum: 4165389629
[47] [Sync]:T: Checksum Matches, Resume Download from 800735
[47] [Sync]:T: downloadFile : Downloading file [cimg1327.jpg] in path [/home/prokher/TonidoSyncData/server/cache/Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1327.jpg] to [/home/prokher/TonidoSyncData/client/.tonidocache/Pictures/Photos/Parties/2008-01-00 New Year Party/2008-01-01 НГ День 1/cimg1327.jpg]
[47] [Sync]:T: downloadFile : /core/downloadfile?filepath=%2Fhome%2Fprokher%2FTonidoSyncData%2Fserver%2Fcache%2FPictures%2FPhotos%2FParties%2F2008-01-00%20New%20Year%20Party%2F2008-01-01%20%D0%9D%D0%93%20%D0%94%D0%B5%D0%BD%D1%8C%201%2Fcimg1327.jpg&filename=cimg1327.jpg&app=sync
[50] [TCPServerConnection (default[#30])]:T: HTTP Request [127.0.0.1] [GET] [/core/downloadfile?filepath=%2Fhome%2Fprokher%2FTonidoSyncData%2Fserver%2Fcache%2FPictures%2FPhotos%2FParties%2F2008-01-00%20New%20Year%20Party%2F2008-01-01%20%D0%9D%D0%93%20%D0%94%D0%B5%D0%BD%D1%8C%201%2Fcimg1327.jpg&filename=cimg1327.jpg&app=sync]
[6] [Dispatcher]:T: Tonido Event [FILE_DOWNLOAD_STARTED]
[6] [Dispatcher]:T: FILE_DOWNLOAD_STARTED --> sync
[50] [TCPServerConnection (default[#30])]:T: Requesting Partial Content: bytes=800735-
[50] [TCPServerConnection (default[#30])]:T: Setting Content Length: 0
[50] [TCPServerConnection (default[#30])]:T: Setting Content Range: bytes 800735-800734/800735
[50] [TCPServerConnection (default[#30])]:T: [Single] Content-Range: 800735-800734
[47] [Sync]:E: Size Mismatch after Resume Download FAILED: cimg1327.jpg Bad File Size
[47] [Sync]:T: doUnlock



Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Mon Mar 05, 2012 10:46 am 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7287
Location: Dallas, USA

That does look like an issue. We will check this and get back to you. Thanks for reporting.

Did that file cimg1327.jpg size ever get changed?


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Mon Mar 05, 2012 10:58 am 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7287
Location: Dallas, USA

This issue can only arise if the size is reported as one thing and when the download happens it is unexpectedly different.

What OS is your server running on?


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Mon Mar 05, 2012 11:04 am 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Mar 05, 2012 9:22 am
Posts: 5

That is true, size of the file on the server is smaller than on the client. And I definitely did not change it manually ;) How shall I handle this?


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Mon Mar 05, 2012 11:05 am 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Mar 05, 2012 9:22 am
Posts: 5

Server is running on:
Code:
$ cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.10
DISTRIB_CODENAME=maverick
DISTRIB_DESCRIPTION="Ubuntu 10.10"
$ uname -a
Linux tvbox 2.6.35-32-generic #66-Ubuntu SMP Mon Feb 13 21:04:32 UTC 2012 x86_64 GNU/Linux


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Mon Mar 05, 2012 11:29 am 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Mar 05, 2012 9:22 am
Posts: 5

I've just scp it to the server replacing both occurrences... sync continues.... anyway, software need to handle this right.


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Mon Mar 05, 2012 11:32 am 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7287
Location: Dallas, USA

yes, this is a mystery. Sync keeps a copy of the file and a record of the expected size. There is a mismatch, not fully clear why or how this happened.
We will see how to handle this.


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Sat Jun 09, 2012 10:15 pm 
Regular Tonidoid
Regular Tonidoid
Joined: Sat Jun 09, 2012 9:47 pm
Posts: 12

I am running into similar problems. I am running an Ubuntu 10.04 machine as the server and have a Windows 7 client and Ubuntu 12.04 client. Occasionally, when the server tries to Sync files from the Windows 7 client it hangs with an error of [Sync]:E: Download FAILED: halophilic_outline_3_30_2012.lyx Bad File Size (except the file name will be different). The log file is filled with hundreds of lines outputting the exact same message. The really bizarre part is that this problem prevents any changes on the server to be synced to the clients. However, if I say make a new file on my Windows 7 client, it will sync to the Ubuntu 12.04 client but won't show up in the server's TonidoSync/ folder. I usually resolve the problem by hunting down the file and deleting every copy. However, this happens almost every other week and it is quite frustrating. I can't seem to figure out what is special about the files that break the sync. These are files I haven't changed in weeks but suddenly there is a problem. Note I am running the most updated software on the servers and clients. I can attach any logfiles that you might need.


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Sun Jun 10, 2012 2:43 am 
Veteran Tonidoid
Veteran Tonidoid
Joined: Mon Oct 26, 2009 7:28 am
Posts: 68

Yes, this is the behaviour which brought me again to give up on TonidoSync. One error and Sync will sync the same files over and over again until it comes to the error and once again over and over again the same files up to the error. Until I search out the problematic file and delete it.


Offline
 Profile  
 Post subject: Re: Size Mismatch after Resume Download FAILED
PostPosted: Sun Jun 10, 2012 3:01 pm 
Admin Tonidoid
Admin Tonidoid
User avatar
Joined: Tue Dec 30, 2008 12:13 am
Posts: 7287
Location: Dallas, USA

@cbaker, please provide us with a problem file name, path and size and we can check if there are some patterns.


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: