Bug 407855 - Kdeinit5 unable to write to NFS share
Summary: Kdeinit5 unable to write to NFS share
Status: RESOLVED WORKSFORME
Alias: None
Product: frameworks-kinit
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Mint (Ubuntu based) Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-23 07:06 UTC by Bobby
Modified: 2023-08-21 17:44 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
apt history.log (8.53 KB, text/plain)
2020-06-20 14:24 UTC, Jason D. Kelleher
Details
.xsession-errors (3.05 KB, text/plain)
2020-06-20 14:26 UTC, Jason D. Kelleher
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bobby 2019-05-23 07:06:42 UTC
Kde is unable to start when user home is an NFSv3 share. I can also confirm this to happen when you try to run a kde application in other desktop environment like gnome or even mint. I get this error 

qt5ct: using qt5ct plugin
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kdeinit5: Aborting. No write access to $HOME directory (/home/user).
No text-to-speech plug-ins were found.
trying to load "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so" from "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so"
XmbTextListToTextProperty result code -2
Segmentation fault (core dumped)



STEPS TO REPRODUCE
1. Try login to a KDE session or a run a kde application on another desktop environment.
2. Application fails with kdeinit5 complaining of inability to write to home directory
3. Home directory is writable from the shell and other non kde applications are working fine

OBSERVED RESULT

qt5ct: using qt5ct plugin
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
XmbTextListToTextProperty result code -2
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
kf5.kservice.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
kdeinit5: Aborting. No write access to $HOME directory (/home/user).
No text-to-speech plug-ins were found.
trying to load "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so" from "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/kio/file.so"
XmbTextListToTextProperty result code -2
Segmentation fault (core dumped)



EXPECTED RESULT
Kde application should run fine even in a nfs share which is well configured and writable to the user 


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: kubuntu 18.04
(available in About System)
KDE Plasma Version: 5.12 LTS
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2019-05-24 20:38:42 UTC
> kdeinit5: Aborting. No write access to $HOME directory (/home/user).
That seems to be the precise problem.
Comment 2 Kai Uwe Broulik 2019-06-03 06:42:41 UTC
Try setting KDE_HOME_READONLY in your environment
Comment 3 Bobby 2019-06-03 08:19:13 UTC
(In reply to Kai Uwe Broulik from comment #2)
> Try setting KDE_HOME_READONLY in your environment

Please kindly direct how best to do this. I created a env directory in .kde/env/kile.sh with the following content

export $KDE_HOME_READONLY

It however made no difference, I still have same issue. Also is there a way I can make this global just in case it fixes the issue.
Comment 4 Max Schettler 2020-02-10 18:29:10 UTC
This affects me as well  (on Debian 10). The workaround using KDE_HOME_READONLY works for me, I created a file /etc/xdg/plasma-workspace/env/nfs_home_workaround.sh with the content export KDE_HOME_READONLY=x.
Comment 5 Jason D. Kelleher 2020-06-05 12:22:33 UTC
I can confirm this bug and workaround on kubuntu 20.04.

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04 LTS
Release:	20.04
Codename:	focal
$ 
$ ls -la $HOME/.config/plasma-workspace/env/nfs_home_workaround.sh
-rwxr-xr-x 1 -------- -------- 42 Jun  3 12:03 /vol/home/----/.config/plasma-workspace/env/nfs_home_workaround.sh
$ 
$ cat  $HOME/.config/plasma-workspace/env/nfs_home_workaround.sh
#!/bin/sh

export KDE_HOME_READONLY=TRUE

$
Comment 6 Jason D. Kelleher 2020-06-20 14:21:41 UTC
The KDE_HOME_READONLY workaround stopped working and failure behavior changed last week after I applied updates to kubuntu 20.04. 

Instead of a logout as previously experienced, NFS home now results in a black screen with a mouse pointer. 

See attached apt history.log and .xsession-errors for more details.

Please let me know what additional information I can provide to help resolve this issue. Thanks.
Comment 7 Jason D. Kelleher 2020-06-20 14:24:41 UTC
Created attachment 129548 [details]
apt history.log

apt history log showing updates that correspond to timing of KDE_HOME_READONLY workaround no longer working.
Comment 8 Jason D. Kelleher 2020-06-20 14:26:59 UTC
Created attachment 129549 [details]
.xsession-errors

.xsession-errors file for new black screen behavior after recent updates. Note that the read-only home directory error is no longer displayed, so not sure how this relates to previous behavior.
Comment 9 Christoph Cullmann 2023-07-03 21:17:02 UTC
We used nfs3 for years without issues and now nfs4 at work, please retry with a recent release.
Comment 10 Bug Janitor Service 2023-07-18 03:45:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Max Schettler 2023-07-18 13:41:40 UTC
Just tested again on Debian 11 with Plasma 5.20. Without the workaround mentioned above the problem persists.
Comment 12 Bug Janitor Service 2023-08-02 03:44:54 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Bug Janitor Service 2023-08-17 03:45:19 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!
Comment 14 Nate Graham 2023-08-21 17:44:26 UTC
This is a fairly old bug report and the code has changed a lot since it was reported. In particular, kdeinit is gone entirely in Plasma 6. And people seem to be reporting multiple distinct issues here.

I think at this point the sanest course of action is to open anew bug report for the specific issue you're experiencing, if you think it might be the same issue as this one. Because there's a good chance it's actually something different.

Thanks everyone!