You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unjustified download of a big file just after being uploaded #1425
I have created a file (VERY-BIG.3GB) with dd inside the sync folder:
$ dd if=/dev/zero of=VERY-BIG.3GB bs=10M count=300
300+0 records in
300+0 records out
3145728000 bytes (3.1 GB) copied, 49.6872 s, 63.3 MB/s
The sync client started uploading while the file was being modified (looking at the behaviour of the progress bar I think it may have restarted the upload while the file was being created).
Eventually the file was uploaded ok.
But then it was downloaded twice for no reason.
I repeated the test with another file (MEGA-BIG.3GB) and this time it worked fine.
Is it possible to tell from this log if this is a race-condition in the client or a hickup with server's etags?
I notice a presence of a temporary file VERY-BIG.3GB.~1c69fb81
Here is the grep of VERY-BIG.3GB from the relevant client logs:
Normaly this housl happen only if the server had given an empty e-tag field in the reply to the PUT: E-Tag: ""
If there was no etag at all from the server, we would have normaly thrown another error.
On the second sync however, the server report a different etag (52fe2cff34e1e) so we beleive the file has changed on the servrer.
The question is why do we save an empty etag in the first place? Was the server really reporting an empty etag? Or is there a bug in the way we parse etags? Or was there a proxy messing with the E-Tag field?
I have the same problem, it looks like for files over 4GB (I tried with 4.1GB and 5.7GB files) after the upload (see the file attached at time: 04-08 10:51:38:281) the client starts to download the file (I didn't touch it at all). For a file of 3.5GB it doesn't happen.
@guruz Yes, I have the same behavior with CentOS and I receive this message too: #1729 (I don't know if its related)
but I have tested with 1.6.3 and 1.6.4
The server reports a changed mtime (through a changed etag), that is why the client re-downloads.
The server log file contains a lot of lines like this:
{"app":"remote","message":"SQLSTATE[HY000] [1129] Host 'owncld21' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'","level":4,"time":"2014-10-29T17:40:09+09:00"}
Please fix the PHP to database connection and I am positive that the problem will go away.
{"app":"hook","message":"error while running hook (OC\\Preview::post_write): An exception occurred while executing 'INSERT INTO `oc_filecache` (`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `storage_mtime`, `parent`, `path_hash`, `path`, `name`, `storage`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)':\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '6-13cd79b7b4d3191ffaa9cb66cb3e7681' for key 'fs_storage_path_hash'","level":3,"time":"2014-11-07T16:16:17+09:00"}
I don't know that one, but it is just present at the beginning of the log and looks like a filter, that dodn't match anything:
{"app":"webdav","message":"Sabre_DAV_Exception_PreconditionFailed: An If-Match header was specified, but none of the specified the ETags matched.","level":4,"time":"2014-11-07T16:26:18+09:00"}
Something that is possibly just a notice (4 is warning):
{"app":"webdav","message":"Sabre_DAV_Exception_MethodNotAllowed: The resource you tried to create already exists","level":4,"time":"2014-11-11T13:26:28+09:00"}
And finally those: (last two ones have the same size but other expectations ... kinda weird, but maybe this is simply luck)
That are simply too many possible problems in here. Can we have a clean setup that breaks with reproducible steps? @cdamken You said, that you can reproduce with a CentOS box? Is this the Inc. appliance? Where can I grab one with 6.0.5? Did you also notice the problem with 1.7.1?
You said, that you can reproduce with a CentOS box? Is this the Inc. appliance? Where can I grab one with 6.0.5? Did you also notice the problem with 1.7.1?
I reproduced once, but my NFS was probably not synced on that time.
I try with 6.0.5, 6.0.6, 7.0.3 and 7.0.4 with 1.7.1 and I could not reproduce it anymore 😞
Activity
moscicki commentedon Feb 14, 2014
Client: 1.5.1-rc1 on redhat6
ogoffart commentedon Feb 15, 2014
After the first upload, we save an empty etag to the datavase (md5 field)
Normaly this housl happen only if the server had given an empty e-tag field in the reply to the PUT:
E-Tag: ""If there was no etag at all from the server, we would have normaly thrown another error.
On the second sync however, the server report a different etag (52fe2cff34e1e) so we beleive the file has changed on the servrer.
The question is why do we save an empty etag in the first place? Was the server really reporting an empty etag? Or is there a bug in the way we parse etags? Or was there a proxy messing with the E-Tag field?
EmidioStani commentedon Apr 8, 2014
I have the same problem, it looks like for files over 4GB (I tried with 4.1GB and 5.7GB files) after the upload (see the file attached at time: 04-08 10:51:38:281) the client starts to download the file (I didn't touch it at all). For a file of 3.5GB it doesn't happen.
See the mirall log: https://gist.github.com/EmidioStani/10108753
Client: Mirall 1.5.3 (2523) on windows 7
Server: Owncloud 6.0.2 on Ubuntu 12.04.4 LTS, Apache 2.4.7, PHP 5.5
guruz commentedon Oct 21, 2014
@cdamken How similar is this to the issue we chatted about today?
cdamken commentedon Oct 27, 2014
@guruz Yes, I have the same behavior with CentOS and I receive this message too: #1729 (I don't know if its related)
but I have tested with 1.6.3 and 1.6.4
cdamken commentedon Nov 3, 2014
@ogoffart @guruz
The file name is VERY.BIG.FILE
MTIME of the original file is Oct 29 17:01:12
It was started to be uploaded at 17:01:13 and it finished at 17:07:42.
In the check just after the upload, MTIME/etag has not been changed.
On the next check (I don’t know why it was 30 mins later…I just greped the file name), MTIME/etag has been changed.
monitoring the file on the ownCloud server:
At 17:09:58, it was
and at 17:10:08, it was
Logs and Pictures
S3-ownCloud\Shared\owncloud\support\github-issues\mirall\1425
cdamken commentedon Nov 24, 2014
@ogoffart @guruz Any news?
dragotin commentedon Nov 24, 2014
The server reports a changed mtime (through a changed etag), that is why the client re-downloads.
The server log file contains a lot of lines like this:
Please fix the PHP to database connection and I am positive that the problem will go away.
dragotin commentedon Nov 27, 2014
@cdamken any news on this one?
9 remaining items
cdamken commentedon Jan 26, 2015
@craigpg @markviens I need a solution here please.
MorrisJobke commentedon Jan 26, 2015
Is this still the problem described in the initial post or is this just #1425 (comment) ? It is just this error message, isn't it?
MorrisJobke commentedon Jan 26, 2015
Maybe #2116 (comment) fixes it.
MorrisJobke commentedon Jan 26, 2015
The linked PR is merged into 6.0.6. @cdamken Which version did they use?
cdamken commentedon Jan 27, 2015
@MorrisJobke #1425 (comment) In my case only the comment, but the errors are similar as the initial post.
cdamken commentedon Jan 27, 2015
@PVince81 #1425 (comment) Both servers have the same time.
@MorrisJobke #1425 (comment) They use 6.0.5, I already told them to upgrade it at least to 6.0.6
MorrisJobke commentedon Jan 27, 2015
Nothing happened here with 6.0.5 and client 1.7.1:
It did several checks, but in the last 5 minutes there was not a single redownload. I will keep the client open and maybe it good redownloaded.
MorrisJobke commentedon Jan 27, 2015
20 minutes later. Nothing happened yet. I will have a look at the logs again.
MorrisJobke commentedon Jan 27, 2015
This message shows up repeatedly (3 is error):
I don't know that one, but it is just present at the beginning of the log and looks like a filter, that dodn't match anything:
Something that is possibly just a notice (4 is warning):
And finally those: (last two ones have the same size but other expectations ... kinda weird, but maybe this is simply luck)
That are simply too many possible problems in here. Can we have a clean setup that breaks with reproducible steps? @cdamken You said, that you can reproduce with a CentOS box? Is this the Inc. appliance? Where can I grab one with 6.0.5? Did you also notice the problem with 1.7.1?
cdamken commentedon Jan 28, 2015
@MorrisJobke
I reproduced once, but my NFS was probably not synced on that time.
I try with 6.0.5, 6.0.6, 7.0.3 and 7.0.4 with 1.7.1 and I could not reproduce it anymore 😞
MorrisJobke commentedon Feb 2, 2015
@moscicki @EmidioStani Can one of you reproduce this with a current client? Otherwise I tend to close this ticket as nobody can reproduce this.
EmidioStani commentedon Feb 2, 2015
Hello,
unfortunately I am not able to reproduce because I work for another
organization. Thanks for looking into it.
Best,
Emidio
On 2 February 2015 at 10:36, Morris Jobke [email protected] wrote:
Emidio Stani
PwC | Senior Consultant
Direct: +32 2 7104162 | Mobile: +32 499 599823 | Fax: +32 2 7104069
Email: [email protected]
PwC Enterprise Advisory cvba/scrl
dragotin commentedon Feb 17, 2015
Closing this as the problem obviously is solved. Please reopen if not.