View Single Post
Old 04-06-2019, 08:50 PM   #1716
bennor
Junior Member
bennor began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Apr 2019
Device: Nexus 7
Quote:
Originally Posted by bennor View Post
But obviously something is wrong as it's not working and it's only not working when using NFS to access the network share. If I change the share mapping to CIFS then COPS works fine.
I wonder if what I'm seeing is SQLite3 related. It appears that SQLite3 may have an issue with NFS (https://sqlite.org/faq.html). And some recommend not using NFS if using SQLite3.

From the FAQ link:
Quote:
SQLite uses reader/writer locks to control access to the database. (Under Win95/98/ME which lacks support for reader/writer locks, a probabilistic simulation is used instead.) But use caution: this locking mechanism might not work correctly if the database file is kept on an NFS filesystem. This is because fcntl() file locking is broken on many NFS implementations. You should avoid putting SQLite database files on NFS if multiple processes might try to access the file at the same time. On Windows, Microsoft's documentation says that locking may not work under FAT filesystems if you are not running the Share.exe daemon. People who have a lot of experience with Windows tell me that file locking of network files is very buggy and is not dependable. If what they say is true, sharing an SQLite database between two or more Windows machines might cause unexpected problems.
bennor is offline   Reply With Quote