# Owncloud Sync constantly detecting changes in mounted CIFS

**URL:** <https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293>\
**Category:** ℹ️ Support\
**Created:** [June 30, 2016, 1:13pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293 "2016-06-30T13:13:53Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![g33kphr33k](https://help.nextcloud.com/user_avatar/help.nextcloud.com/g33kphr33k/32/14178_2.png) [@g33kphr33k](https://help.nextcloud.com/u/g33kphr33k)\
**Post date:** [June 30, 2016, 1:13pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/1 "2016-06-30T13:13:53Z")

</div>

I’ve tested this on a VM with perfect clock sync both with Debian/CentOS and Owncloud 9 and now Nextcloud 9:

Any Owncloud client that I use constantly detects changed files on the CIFS shares. It then decides to download all files again and again. The linux client tells me there’s a file conflict and asks whether the local or remote files should win. The Windows client just downloads over and over again. This is even when NO files have been changed.

Does anyone have any ideas to stop this happening? This is the show stopper that I’ve been running in to for days and really can’t get around.

---

<div class="post-metadata">

**Author:** ![jospoortvliet](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jospoortvliet/32/3_2.png) [@jospoortvliet](https://help.nextcloud.com/u/jospoortvliet)\
**Post date:** [June 30, 2016, 2:24pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/2 "2016-06-30T14:24:29Z")

</div>

First off, I’d say it is a server issue, not a client problem as the client just asks the server if something changed.

Second - if clock sync isn’t an issue, it must be a bug in the CIFS backend… ☹

Do your logs give any info, perhaps? It might be wise to report this as a bug and see if it can be debugged. Either at own- or Nextcloud…

---

<div class="post-metadata">

**Author:** ![applemachome](https://help.nextcloud.com/letter_avatar/applemachome/32/6_22734026db12803ebb3e059622ac3534.png) [@applemachome](https://help.nextcloud.com/u/applemachome)\
**Post date:** [July 6, 2016, 3:18pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/3 "2016-07-06T15:18:27Z")

</div>

I am having this same issue - but I get the prompt on the OS X client constantly (every minute or two). I have not made any changes on the server.

(copy and pasted, the misspelling is built into the client, it is not due to my writing)

“This sync would reset the files to an erlier time in the sync folder ‘ownCloud’.  
This might be because a backup was restored on the server.  
Continuing the sync as normal will cause all your files to be overwritten by an older file in an earlier state. Do you want to keep your local most recent files as conflict files?”

---

<div class="post-metadata">

**Author:** ![applemachome](https://help.nextcloud.com/letter_avatar/applemachome/32/6_22734026db12803ebb3e059622ac3534.png) [@applemachome](https://help.nextcloud.com/u/applemachome)\
**Post date:** [July 6, 2016, 4:11pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/4 "2016-07-06T16:11:32Z")

</div>

I found a solution that worked for me, at least until the next time I change more then 4-5 files at a time, which could be immediately after this fix is applied.

I have come to realize CIFS/SMB is broken for OwnCloud, it may be an included feature, but it is not stable and is bug-ridden.

First of all I made sure the SMB server, the Owncloud server, and the client were synced to the same NTP server.

Secondly, I had noticed in the web interface it was not reporting the folder sizes, so I ran a new file scan using the occ:

```
sudo -u www-data php /var/www/owncloud/occ files:scan --all

```

After a few more larger syncs, everything is set and working properly now, until the next time I add or change more than just a couple files every hour or so.

---

<div class="post-metadata">

**Author:** ![applemachome](https://help.nextcloud.com/letter_avatar/applemachome/32/6_22734026db12803ebb3e059622ac3534.png) [@applemachome](https://help.nextcloud.com/u/applemachome)\
**Post date:** [May 17, 2017, 7:09pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/5 "2017-05-17T19:09:55Z")

</div>

I would like to follow up on this.  
I still have this issue.  
It seems to be triggered when moving files to a different directory, or adding more. Adding or changing more than 4-5 at a time and it sets off this cycle again.

The client or server with CIFS/SMB is broken, I don’t recommend using it.

---

<div class="post-metadata">

**Author:** ![jospoortvliet](https://help.nextcloud.com/user_avatar/help.nextcloud.com/jospoortvliet/32/3_2.png) [@jospoortvliet](https://help.nextcloud.com/u/jospoortvliet)\
**Post date:** [May 18, 2017, 8:00pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/6 "2017-05-18T20:00:28Z")

</div>

So this is on Nextcloud 11, or 12?

---

<div class="post-metadata">

**Author:** ![g33kphr33k](https://help.nextcloud.com/user_avatar/help.nextcloud.com/g33kphr33k/32/14178_2.png) [@g33kphr33k](https://help.nextcloud.com/u/g33kphr33k)\
**Post date:** [July 4, 2017, 1:19pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/7 "2017-07-04T13:19:17Z")

</div>

All versions do this unfortunately. I’ve not gotten it to be stable.

---

<div class="post-metadata">

**Author:** ![yanuk](https://help.nextcloud.com/user_avatar/help.nextcloud.com/yanuk/32/21640_2.png) [@yanuk](https://help.nextcloud.com/u/yanuk)\
**Post date:** [August 3, 2017, 2:55am UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/8 "2017-08-03T02:55:12Z")

</div>

I am also constantly have the same pop up. Choosing either option of Normal Sync or Keep Local Files as Conflict doesn’t work out.

Currently on NC12

---

<div class="post-metadata">

**Author:** ![lulu99](https://help.nextcloud.com/letter_avatar/lulu99/32/6_22734026db12803ebb3e059622ac3534.png) [@lulu99](https://help.nextcloud.com/u/lulu99)\
**Post date:** [November 14, 2017, 7:33pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/9 "2017-11-14T19:33:22Z")

</div>

I have the same problem.

In one folder, I have for example 19 files. If I copy another file into it, some of the older files get also synched again. Always the same files and always not all files get synched again. When I rename a file, this also happens.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [November 6, 2024, 8:58pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/10 "2024-11-06T20:58:33Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 4, 2024, 3:18pm UTC](https://help.nextcloud.com/t/owncloud-sync-constantly-detecting-changes-in-mounted-cifs/1293/11 "2024-12-04T15:18:13Z")

</div>


