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
client 1.4 unnecessarily downloads again those files which are already downloaded #994
A user shared with me a folder with about 10 10 GB data (approx. 200 files).
I don't know why, but it's often (not always) finding some new files. Download follows - but unnecessarily: files are absolutely identical (byte comparison); the file on server hasn't been touched for months. So the file hasn't changed.
Following suggestions:
Finding and fixing the reason why the client trys to re-download equal files which hasn't been changed/updated in any way
Before downloading files: download a hash of the file from server for that file + check if hash can be found in local journal database + if yes: copy the file locally
Local client: 1.4.0 on Win2008 R2 server (and other win systems, too)
Server version: 4.5.7 on Linux
this bug is critical to me since lot of traffic happens due to this issue (>30 GB per month!)
my last ISP already kicked me a few weeks ago because I had too much traffic with my internet flat rate. I don't want to retry this procedure again... ;-)
Might be related: I just noticed that my client also decided now to re-download everything (in the menu opening up when clicking on the "tray" icon in my ubuntu 13.04, it wrote "downloading file .. of .., xx of yy MB or something like that - and showing all the 950MB of the one synced folder, so it seems to just re-download everything!) - no idea why, there were no big changes to files recently, no server upgrade (still running 5.0.10), no client upgrade (apart from 1.4, but that was last week already or so and the client has run multiple times since then already).
So I really have no clue at all why the client is redownloading anything. Any logfile I could check (I heard the client now also produces a logfile if not explicitly started with the logging option)? I guess its also no option to restart I the client, not sure if he will exhibit the same behavior, but I will try...
Edit: Restarted the client with logwindow option, and the sync continued to download files I think (at least the Recent changes show something like that). Can provide the logfile on request (don't like to post it publicly with all the document references).
Is it maybe now a good time to think again about introducing proper file checksums instead of the random tags?
What was again the argument against using it? High CPU usage? If it can prevent issues such as this, where unmodified files are downloaded multiple times, this argument doesn't hold. Calculating a checksum once can't possibly cost more CPU performance than re-downloading the same things multiple times (and if the argument is for the server side, then the re-downloading possibilities can even be multiplied with more clients!)
The client seems to do repeated uploading too. Is this related? Same server version, same client version. OS - Gentoo both side. PHP 5.5, Apache 2.4, MariaDB 5.5.
An update, I just added another computer to a folder, which is already synced at a two other hosts. As expected, the new system integrated itself fine. The new system used a blank directory to start its work from.
However, one of the two other systems started to download approximaltely 85% of the files (2.700 files, 1.1 GB) after I booted the system about half an hour later. None of the files have been changed, since the download on the new system.
I have launched a log window during synchronisation, the general pattern seems to be like this:
09-15 15:25:22:087 oc_module: => open called for ownclouds://loremipsum/remote.php/webdav/Documents/file.txt
09-15 15:25:22:087 oc_module: GET request on /remote.php/webdav/Documents/file.txt
09-15 15:25:22:087 oc_module: Sendfile handling request type GET. fd 3
09-15 15:25:22:087 oc_module: -- GET on ownclouds://loremipsum/remote.php/webdav/Documents/file.txt
09-15 15:25:22:204 oc_module: Content encoding ist with status 200
09-15 15:25:22:212 oc_module: GET http result 200 (OK)
09-15 15:25:22:212 oc_module: http request all cool, result code 200
09-15 15:25:22:212 oc_module: ** Finished download ownclouds://loremipsum/remote.php/webdav/Documents/file.txt
09-15 15:25:22:219 oc_module: Get file ID for ownclouds://loremipsum/remote.php/webdav/Documents/file.txt: 5235b0ddf2dd5
09-15 15:25:22:219 _get_md5: MD5 for ownclouds://loremipsum/remote.php/webdav/Documents/file.txt: 5235b0ddf2dd5
09-15 15:25:22:219 _csync_push_file: FINAL MD5: 5235b0ddf2dd5
09-15 15:25:22:219 _csync_push_file: PUSHED file: C:\Users\loremipsum\Documents\Documents/file.txt
If you want the full log untli the end of the sync, please let me know, I have saved it. However, I did not catch the start of the sync. If that is neccessary, please let me know, then I'll change my client systems to permanent logging. As well, if you want to take a peek into the server logs (both oc internal and Apache access log), I have them available for inspection. Just drop me a mail to torbennehmernet.
Several log messages around "stat failed for /var/www/clients/client1/web27/private/somefile" (Why can't I just copy/past from the log view in the web, this is really irritating...)
At least right now the file in question exists and has the correct permission set.
Again, after a client restart, I got a few dozen files downloaded again without reason. I have zipped together the logs of the individual sync runs the client made, the oc server log and the oc apache access log. Please mail me at torbennehmernet for the password:
Note, that this is reproducible her. The number of files getting downloaded again and again is increasing (right now he sucks down 629 files wtih 200 MB needlessly).
Another thing to look out, unsure if this is related: Right now I realized (by coincidence) that I had two owncloud.exe instances running (one of it did not show a tray icon, otherwise I'd have noticed it earlier). I cannot say for sure, if this influences things. If it does, you might want to include a check to avoid duplicate program launches.
@danimo: That check is buggy, see #1004, it is easily possible to launche two instances in case you have different command line. I am unsure how long the multiple instances were running here, though I am fairly certain that most of the problems I experienced were before the second instance came up.
@dragotin Executing your SQL statement doesn't work for me since I use older server version 4.5.7
table oc_filecache doesn't exist
if I use table oc_fscache, column etag doesn't exist
Please advise what I can do for you to get information as needed.
Hi,
Same problem for me. Random files being downloaded to the client for no reason as the file is already there in both places and hasn't changed. The new file on the client has a new "date created" which is problematic for me as I use this metadata a lot. Sometime we're talking about thousands of files.
If I close the client, open it back, same, it goes on and on.
If I now close again and remove the .csync_journal.db, then I get only a dozens of files downloaded and these files are named with an *_conflict
After that, it works great. Basically I'm just deleting each db everytime I close owncloud to avoid having this issue again. Weird but couldn't find another workaround.
I don't really understand much as I'm not a skilled user, but if you need anything from me, just let me know.
Server: 7.3.5 (Synommunity package)
Client: 1.7.1 b4382 windows 8.1
@inducer Hey. I just resumed another folder and it happened again, quite annoying. I've got 3 machines to sync with this afterwards and It scares me now.
I've put windows & synology on the same time server to get the same clock. I restarted everything, remove the db and the problem is still there. When you're saying rebuild the cache, is there any other method than deleting the db? Thanks
I have the following setup:
C:\ and E:\ Partition on SSD, not synced by owncloud
D:\ RAID5 Partition on Raidcontroller with 3x1.5TB drives completely synced with owncloud
A few days ago I re-installed my windows while the raid controller was not plugged in so no data is touched on the owncloud partition. After the installation I plugged in the raid and then I installed the owncloud client and set it up with my server. Now the client says some 105GB need to be synced and started downloading them from the server. The files it downloaded so far all exist on the disk and have not been touched in years.
I have no idea which files it actually want's to sync and why. I checked and the time on server and client are perfectly sync.
Server: 8.0 (just upgraded from 7.0.2 to see if it makes a difference, nope)
Client: 1.7.1 build 4382 Windows 7
Just happened again to me after upgrading to OC 8.0. Could this be related to owncloud/core#13980 ? I did have to fiddle around in the storage table to get the upgrade working, not sure if I removed the correct entries there...
And again...
Turned on my Synology after a while with ownCloud 8.0.3. I started windows client 1.8.0, resume my usual folder and it downloads useless stuff that hasn't changed again.
On top of that All files are "Downloaded, renamed conflicting file".
Both machines are clocked on the same time.nist.gov server.
I even tried with the 1.8.1RC2 and deleted all temp files from my folders.
I don't understand and I'm having this problem since I'm using ownCloud 7 and client 1.7.1 everytime.
Same behaviour, it starts by downloading files, 1 to 200 sometimes, then it stops downloading and just upload if any. If nothing to upload, it stops and moves to other folder. Same behaviour for that folder too.
If I keep the client & server on all the times, it will not download again.
But I turn both off for a bit, to save electricity I guess, then all folders will download a few files.
Why ownCloud detect the files as changed when they are not? I'm sure of that because I sync the folders on my external HDD using size & time change.
Have you solved this issue yet? Thanks for your feedback.
@seiferflo it is still not clear why the files are being redownloaded.
What you could try is the following:
Wait for the sync client to be stable (no download) like when you keep it on for a long time.
Shut down the web server to prevent further access
Check the oc_filecache table in the database, maybe save the listing of some of the files. Goal is to find out their "etag", "mtime" and "storage_mtime" columns.
Check the files in the "data" directory and see what mtime they have, save the listing in a file.
Stop the sync client
Reboot the Synology
Let the web server start (but not the sync client).
Check the "data" folder and verify that the mtimes are still the same
Check the database again and compare the "etag", "mtime" and "storage_mtime" columns with what you saw before (for a few select files)
Start the sync client, stop it after a while (hopefully it will not upload anything yet)
Check the database again like at step 9
Goal is to find out if anything causes the "etag" or "mtime" fields to change in the database or filesystem after the Synology reboot.
You might also want to try disabling cron jobs and see if it solves the issue. (if yes, the cron job might be a clue).
Activity
torbennehmer commentedon Sep 13, 2013
I can confirm this issue against Server 5.0.10.
torbennehmer commentedon Sep 13, 2013
Please let me know what information I can give you to further track down this error. I am seeing this regularily on my install.
jochenwezel commentedon Sep 13, 2013
maybe related: #110
jochenwezel commentedon Sep 13, 2013
this bug is critical to me since lot of traffic happens due to this issue (>30 GB per month!)
my last ISP already kicked me a few weeks ago because I had too much traffic with my internet flat rate. I don't want to retry this procedure again... ;-)
RandolfCarter commentedon Sep 13, 2013
Might be related: I just noticed that my client also decided now to re-download everything (in the menu opening up when clicking on the "tray" icon in my ubuntu 13.04, it wrote "downloading file .. of .., xx of yy MB or something like that - and showing all the 950MB of the one synced folder, so it seems to just re-download everything!) - no idea why, there were no big changes to files recently, no server upgrade (still running 5.0.10), no client upgrade (apart from 1.4, but that was last week already or so and the client has run multiple times since then already).
So I really have no clue at all why the client is redownloading anything. Any logfile I could check (I heard the client now also produces a logfile if not explicitly started with the logging option)? I guess its also no option to restart I the client, not sure if he will exhibit the same behavior, but I will try...
Edit: Restarted the client with logwindow option, and the sync continued to download files I think (at least the Recent changes show something like that). Can provide the logfile on request (don't like to post it publicly with all the document references).
Is it maybe now a good time to think again about introducing proper file checksums instead of the random tags?
What was again the argument against using it? High CPU usage? If it can prevent issues such as this, where unmodified files are downloaded multiple times, this argument doesn't hold. Calculating a checksum once can't possibly cost more CPU performance than re-downloading the same things multiple times (and if the argument is for the server side, then the re-downloading possibilities can even be multiplied with more clients!)
dragotin commentedon Sep 14, 2013
Please everybody, can you please post me the result of the following SQL-Statements run on server database:
@RandolfCarter pls. send the full, zipped logfile to freitag at owncloud.com, thanks.
torbennehmer commentedon Sep 14, 2013
37 without etag, 7790 with.
The 37 are all files within zip files (.../file.zip/...) plus a directory. These are not the files I observed to be redownloaded.
nileshgr commentedon Sep 15, 2013
The client seems to do repeated uploading too. Is this related? Same server version, same client version. OS - Gentoo both side. PHP 5.5, Apache 2.4, MariaDB 5.5.
torbennehmer commentedon Sep 15, 2013
An update, I just added another computer to a folder, which is already synced at a two other hosts. As expected, the new system integrated itself fine. The new system used a blank directory to start its work from.
However, one of the two other systems started to download approximaltely 85% of the files (2.700 files, 1.1 GB) after I booted the system about half an hour later. None of the files have been changed, since the download on the new system.
I have launched a log window during synchronisation, the general pattern seems to be like this:
09-15 15:25:22:087 oc_module: => open called for ownclouds://loremipsum/remote.php/webdav/Documents/file.txt
09-15 15:25:22:087 oc_module: GET request on /remote.php/webdav/Documents/file.txt
09-15 15:25:22:087 oc_module: Sendfile handling request type GET. fd 3
09-15 15:25:22:087 oc_module: -- GET on ownclouds://loremipsum/remote.php/webdav/Documents/file.txt
09-15 15:25:22:204 oc_module: Content encoding ist with status 200
09-15 15:25:22:212 oc_module: GET http result 200 (OK)
09-15 15:25:22:212 oc_module: http request all cool, result code 200
09-15 15:25:22:212 oc_module: ** Finished download ownclouds://loremipsum/remote.php/webdav/Documents/file.txt
09-15 15:25:22:219 oc_module: Get file ID for ownclouds://loremipsum/remote.php/webdav/Documents/file.txt: 5235b0ddf2dd5
09-15 15:25:22:219 _get_md5: MD5 for ownclouds://loremipsum/remote.php/webdav/Documents/file.txt: 5235b0ddf2dd5
09-15 15:25:22:219 _csync_push_file: FINAL MD5: 5235b0ddf2dd5
09-15 15:25:22:219 _csync_push_file: PUSHED file: C:\Users\loremipsum\Documents\Documents/file.txt
If you want the full log untli the end of the sync, please let me know, I have saved it. However, I did not catch the start of the sync. If that is neccessary, please let me know, then I'll change my client systems to permanent logging. As well, if you want to take a peek into the server logs (both oc internal and Apache access log), I have them available for inspection. Just drop me a mail to torbennehmernet.
torbennehmer commentedon Sep 15, 2013
While trying to investigate #1003, I again got addidional downloads. What I did (Win 7/64 Pro, Client 1.4):
I used Windows Explorer for this.
I'll change my clients now so that they continously create log files. Maybe this gives us some insights.
Are the server logs helpful here, or are the client logs sufficient?
torbennehmer commentedon Sep 15, 2013
What i had just now:
Several log messages around "stat failed for /var/www/clients/client1/web27/private/somefile" (Why can't I just copy/past from the log view in the web, this is really irritating...)
At least right now the file in question exists and has the correct permission set.
Again, after a client restart, I got a few dozen files downloaded again without reason. I have zipped together the logs of the individual sync runs the client made, the oc server log and the oc apache access log. Please mail me at torbennehmernet for the password:
http://s.nehmer.net/eSxI6oR2rC
Note, that this is reproducible her. The number of files getting downloaded again and again is increasing (right now he sucks down 629 files wtih 200 MB needlessly).
torbennehmer commentedon Sep 15, 2013
Another thing to look out, unsure if this is related: Right now I realized (by coincidence) that I had two owncloud.exe instances running (one of it did not show a tray icon, otherwise I'd have noticed it earlier). I cannot say for sure, if this influences things. If it does, you might want to include a check to avoid duplicate program launches.
danimo commentedon Sep 15, 2013
@torbennehmer We already have a check for double instances. If another instance was running, it did not respond and thus was dead anyway.
torbennehmer commentedon Sep 15, 2013
@danimo: That check is buggy, see #1004, it is easily possible to launche two instances in case you have different command line. I am unsure how long the multiple instances were running here, though I am fairly certain that most of the problems I experienced were before the second instance came up.
jochenwezel commentedon Sep 16, 2013
@dragotin Executing your SQL statement doesn't work for me since I use older server version 4.5.7
table oc_filecache doesn't exist
if I use table oc_fscache, column etag doesn't exist
Please advise what I can do for you to get information as needed.
177 remaining items
dragotin commentedon Feb 11, 2014
@fragtion can you provide a log file snippet about the files in question, both client- and server access log?
dschmidthawk commentedon Feb 11, 2014
I'm using a linux server through BlueHost. no external anything.
fragtion commentedon Feb 11, 2014
Ok I've saved a log of it happening from one of the clients. It's 2.5MB uncompressed, so I couldn't pastebin it, rather a direct link to my server - http://197.242.147.241/owncloud-logs.zip . The server instance's log is really tiny - I hope I'm searching the right file. Does the server need to be running in a debug mode as well?
fragtion commentedon Feb 15, 2014
Acknowledgement? I suppose this hasn't been identified and resolved yet in v1.5.1 client? Is it more likely a client issue?
dschmidthawk commentedon Feb 15, 2014
I can attest to the fact that it isn't corrected for me in the latest version: 1.5.1 (build 2337)
inducer commentedon Dec 25, 2014
Not fixed for me either.
obma commentedon Dec 29, 2014
Reoccurred for me too.
Server: 7.0.4 (stable) - Ubuntu package
Client: 1.7.1- Arch Linux AUR
seiferflo commentedon Feb 3, 2015
Hi,
Same problem for me. Random files being downloaded to the client for no reason as the file is already there in both places and hasn't changed. The new file on the client has a new "date created" which is problematic for me as I use this metadata a lot. Sometime we're talking about thousands of files.
If I close the client, open it back, same, it goes on and on.
If I now close again and remove the .csync_journal.db, then I get only a dozens of files downloaded and these files are named with an *_conflict
After that, it works great. Basically I'm just deleting each db everytime I close owncloud to avoid having this issue again. Weird but couldn't find another workaround.
I don't really understand much as I'm not a skilled user, but if you need anything from me, just let me know.
Server: 7.3.5 (Synommunity package)
Client: 1.7.1 b4382 windows 8.1
inducer commentedon Feb 3, 2015
FWIW, I rebuilt the cache and resynchronized the server clock, and the issue hasn't reoccurred since.
seiferflo commentedon Feb 3, 2015
@inducer Hey. I just resumed another folder and it happened again, quite annoying. I've got 3 machines to sync with this afterwards and It scares me now.
I've put windows & synology on the same time server to get the same clock. I restarted everything, remove the db and the problem is still there. When you're saying rebuild the cache, is there any other method than deleting the db? Thanks
AiYoriAoshi commentedon Feb 14, 2015
I have the following setup:
C:\ and E:\ Partition on SSD, not synced by owncloud
D:\ RAID5 Partition on Raidcontroller with 3x1.5TB drives completely synced with owncloud
A few days ago I re-installed my windows while the raid controller was not plugged in so no data is touched on the owncloud partition. After the installation I plugged in the raid and then I installed the owncloud client and set it up with my server. Now the client says some 105GB need to be synced and started downloading them from the server. The files it downloaded so far all exist on the disk and have not been touched in years.
I have no idea which files it actually want's to sync and why. I checked and the time on server and client are perfectly sync.
Server: 8.0 (just upgraded from 7.0.2 to see if it makes a difference, nope)
Client: 1.7.1 build 4382 Windows 7
karlitschek commentedon Feb 14, 2015
It seems that ownCloud detected your files as changes. This can be cause by a changes timestamp of the files or the mountpoint.
RandolfCarter commentedon Feb 19, 2015
Just happened again to me after upgrading to OC 8.0. Could this be related to owncloud/core#13980 ? I did have to fiddle around in the storage table to get the upgrade working, not sure if I removed the correct entries there...
seiferflo commentedon May 4, 2015
And again...
Turned on my Synology after a while with ownCloud 8.0.3. I started windows client 1.8.0, resume my usual folder and it downloads useless stuff that hasn't changed again.
On top of that All files are "Downloaded, renamed conflicting file".
Both machines are clocked on the same time.nist.gov server.
I even tried with the 1.8.1RC2 and deleted all temp files from my folders.
I don't understand and I'm having this problem since I'm using ownCloud 7 and client 1.7.1 everytime.
Same behaviour, it starts by downloading files, 1 to 200 sometimes, then it stops downloading and just upload if any. If nothing to upload, it stops and moves to other folder. Same behaviour for that folder too.
If I keep the client & server on all the times, it will not download again.
But I turn both off for a bit, to save electricity I guess, then all folders will download a few files.
Why ownCloud detect the files as changed when they are not? I'm sure of that because I sync the folders on my external HDD using size & time change.
Have you solved this issue yet? Thanks for your feedback.
PVince81 commentedon May 11, 2015
@seiferflo it is still not clear why the files are being redownloaded.
What you could try is the following:
oc_filecachetable in the database, maybe save the listing of some of the files. Goal is to find out their "etag", "mtime" and "storage_mtime" columns.Goal is to find out if anything causes the "etag" or "mtime" fields to change in the database or filesystem after the Synology reboot.
You might also want to try disabling cron jobs and see if it solves the issue. (if yes, the cron job might be a clue).