[SOLVED] sqlite data on NFS stop working after upgrade ??
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Set up
Debian testing, (buster amd64) bibus, using sqlite, database file on NFS dirve.
Situation
After dist-upgrade, bibus stopped working. It looks like that an error is locked database, according to sqlitebrowser.
Troubleshooting This thread says some trouble with database file on NFS drive. I tried renaming and several tricks, without success. No other processes use same database file. lsof and fuser fails to detect any clue.
Whole system reboot and fsck did not solve situation.
I found that item #5 of this thread and this one say that some trouble with locking process.
I guess if I am on a right track, it is far beyond of whatever I can do. Log files say that many python files are updated, but neither nfs nor kernel related ones. (bibus is a python2 application.)
For the time being, I can move database file to local drive, although for data security reason, it is not feasible.
Question
Has anybody ever run into similar situation? Is there any other workaround?
I also found that libreoffice files on nfs are also affected. App says that "Document file @#.od? is locked for editing by Unknown user"
There is no .lock file and so far all of od? files on nfs drive are affected. Once file is copied to local drive, it can be edited. I found bug #884284, but it does not look related.
I will update.
cheers
++ added
I recompiled kernel (4.18.10-rt5), but did not solve. System is up-to-date as of 19/Oct.
Following applications can edit files on nfs drive. - pycharm, vi, gimp
Last edited by kaz2100; 10-18-2018 at 11:05 PM.
Reason: update info
I guess my previous post (#4) is totally off track.
Now, I know that
/proc/sys/sunrpc is missing on nfs server. (rpcbind is running!)
/proc/sys/sunrpc exists on nfs client.
recent upgrade of rpcbind (0.2.3-0.6 -> 1.2.5-0.3) is NOT related.
Debugging info on client says that "lockd: server returns status 2"
Currently, I cannot go further, because I cannot set debug info on server. (This info does not help.)
With the working nfs server, it is possible to set debug info. For some obvious reason, no error (on both client and server).
cheers
++ added
CONFIG_SRNRPC_DEBUG needs to be on to get /proc/sys/sunrpc
However, still problem persists. Problematic log (/var/log/messages) is
Code:
kernel: lockd: NSM upcall RPC failed, status=-5
Last edited by kaz2100; 11-19-2018 at 07:44 PM.
Reason: ++ added
Probably recent upgrade of rpcbind IS related. (post #5 is incorrect)
When I posted #5, I only rebooted nfs host. (host was upgraded and rebooted. client was 0.2.3-0.6)
After reboot (or whatever reason), all nfs hosts (1.2.5-0.3) are dead, regardless of client version.
cheers
+ added
Same error happens with sqlite3.
Is this a bug?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.