# Sync with windows client fails with shared files

**URL:** <https://help.nextcloud.com/t/sync-with-windows-client-fails-with-shared-files/42785>\
**Category:** ℹ️ Support\
**Tags:** nc14\
**Created:** [December 8, 2018, 10:54am UTC](https://help.nextcloud.com/t/sync-with-windows-client-fails-with-shared-files/42785 "2018-12-08T10:54:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pilus](https://help.nextcloud.com/letter_avatar/pilus/32/6_22734026db12803ebb3e059622ac3534.png) [@pilus](https://help.nextcloud.com/u/pilus)\
**Post date:** [December 8, 2018, 10:54am UTC](https://help.nextcloud.com/t/sync-with-windows-client-fails-with-shared-files/42785/1 "2018-12-08T10:54:09Z")

</div>

Hello  
When I share a file within nextcloud by link or with members as well the file will be locked. My local sync clients pops up every 5 minutes remarking failed sync because the file is locked. How can I solve this problem? I already changed config.php to ‘filelockingenabled’’ =\> true, The Problem is only with shared files / folder. I am admin and I created / uploaded the data and I shared them.

08.12.2018 10:30:56, JOB/Noeverhof/Bilder II/Alle Bilder zip.zip, Documents,Error transferring [https://nc.xxx.de/Bilder](https://nc.xxx.de/Bilder) II/Alle Bilder zip.zip - server replied: Locked  
Nextcloud 14.04  
PHP 7  
MySQL - I do not know the version and do not know how to check it  
It is a shared hosted system, so I can not change all kind of PHP / MySQL Settings because of provider and security reasons.

Thank you

Christoph  
PS: I found some articles but there was no realiable solutens

> [@File is locked - how to unlock](https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883):
>
> You can’t access files because they are locked and you find such errors in your logfile: {"reqId":"0DijSqEkfOg2iyh9VD8J","remoteAddr":"xx.xx.xx.xx","app":"webdav","message":"Exception: {\"Message\":\"HTTP\\\/1.1 423 \\\"path\\\/file.extension\\\" is locked\",\"Exception\":\"OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Exception\\\\FileLocked\",\"Code\":0,\"Trace\":\"#0 Manually disable locking state: put Nextcloud in maintenance mode: edit config/config.php and change this line: 'maintenance' =\> tr…

---

<div class="post-metadata">

**Author:** ![tflidd](https://help.nextcloud.com/letter_avatar/tflidd/32/6_22734026db12803ebb3e059622ac3534.png) [@tflidd](https://help.nextcloud.com/u/tflidd)\
**Post date:** [December 10, 2018, 11:01am UTC](https://help.nextcloud.com/t/sync-with-windows-client-fails-with-shared-files/42785/2 "2018-12-10T11:01:26Z")

</div>

> [@pilus](#):
>
> I already changed config.php to ‘filelocking.enabled’’ =\> true

but in the howto it says to set it to `false`! Keep in mind this disables the feature and when different users are changing a file, that can get messy. If they just read, this shouldn’t be a problem. However, if you plan to use this setup with several users seriously, I’d use a different setup.

---

<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, 8:28am UTC](https://help.nextcloud.com/t/sync-with-windows-client-fails-with-shared-files/42785/3 "2024-12-04T08:28:47Z")

</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 9, 2024, 3:44pm UTC](https://help.nextcloud.com/t/sync-with-windows-client-fails-with-shared-files/42785/4 "2024-12-09T15:44:12Z")

</div>


