-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Fix sqlite3 for sync folders on FAT(?) permissions #2701
Comments
I could not reproduce the problem with master and a FAT partition. |
Are you using Windows 8.1 like the other reporters? |
Here are also two reports of issues with exFAT and sqlite: |
I tried with an exfat-formatted USB stick from linux and that worked fine. I will attempt the same from Windows later. |
I could not reproduce the issue when syncing an owncloud folder to an exFAT-formatted USB stick in a Windows 7 guest. |
@danimo and me just tried with exfat and Windows 8.1 and couldn't reproduce it either. Any other ideas? |
@dragotin Shall we have Windows specific code that adds a special message when this error happens that we don't support exfat? @rudo54 and @andrewbridge had this issue, so at least for them it existed.. |
@guruz I'm not convinced it's related to the WAL file, look at @andrewbridge's log in #2693. Maybe the DB really is corrupt - or there's a bug in quick_check on exFAT somehow? |
Yes, I'm not convinced anymore either. It's just that it happened with 1.7.0
@dragotin close issue? |
yes, I think we can close this one, as the investigations haven't lead to something. And we also remove the corrupted file so it gets recreated so I think its done. |
(Although I remember one of the reporters mentioned having recreated the DB, tried a new sync dir etc..odd) |
Have you also tried to contact DiskCryptor about this? Does removing the |
@guruz For the record, selecting a directory in the standard NTFS partition works fine, the client works flawlessly as it should. Its just the exFAT partitions providing the spanner in the works. |
@soluxima-erik Could you run with a logfile (see the manual on how to do that) and see if you get the log message 5cdf448#diff-0b6f105ffd4493a278873f32b7c170c1R116 FYI @ckamm |
@AMDG2 Does it work when you set the |
Yes it works. I tried to delete csync journal from Owncloud sync folder before but it doesn't work. Was it an error ? May I help to fix the issue in Owncloud Client ? |
@AMDG2 We'll give you a new build next week to try. Something is wrong with the FAT detection. |
@guruz This might be a bug in the file system detection function:
In the log, the path is "D:/..." so |
@AMDG2 A potential fix is in |
I will try it in the evening (GMT+2) or tomorrow. Le 19 janvier 2016 10:03:16 GMT+01:00, ckamm notifications@github.com a écrit :
Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté. |
I upgraded to ownCloud 8.2.0 server a while back and this issue started happening - I was no longer able to sync due to the csync error. Tonight I downloaded ownCloud-2.1.1.5785-nightly20160120-setup.exe. After uninstall of my previous version and an installation of the new version, ownCloud popped up and started syncing immediately. I am unfortunately getting 'Service Unavailable'...'Operation Canceled' errors upon sync, which may be an unrelated issue. |
@XianPalin Sounds unrelated. Please try 8.2.1, if issue persists create a new issue. |
@AMDG2 Could you try this: ownCloud-2.1.1.3067-nightly20160125.pkg, please? |
@guruz this version was working. I didn't have time to try your version @Dianafg76 |
👍 |
We need to find out if WAL (that was activated for 1.7.0) is a problem and we'd need to detect FAT(?) or if there is another way.
Related:
"On Windows, Microsoft's documentation says that locking may not work under FAT filesystems if you are not running the Share.exe daemon. " https://www.sqlite.org/faq.html
A question is if setting the lock mode helps: https://www.sqlite.org/draft/pragma.html#pragma_locking_mode https://www.sqlite.org/draft/wal.html#noshm (according to someone on IRC in #sqlite no..)
I propose that for now when creating a new Journal, we'll use
GetVolumeInformationW
(http://msdn.microsoft.com/en-us/library/aa364993(v=vs.85).aspx) and checklpFileSystemNameBuffer
if it containsntfs
. If not, then we don't enable WAL.The text was updated successfully, but these errors were encountered: