This forum has been archived. All content is frozen. Please use KDE Discuss instead.

dolphin and other kde parts hang when cifs host is down

Tags: None
(comma "," separated)
User avatar
Riinse
Registered Member
Posts
167
Karma
2
OS
Hi,

I have 2 cifs servers in my network, one qnap nas server and an acryan dvr player.
the shares are configured in /etc/fstab and are mounted in a sub directory in my home directory. The shares appear in the side bar of dolphin.

All that works fine, unless one of the servers is unavailable.
For example, if i switch off the acryan dvr player while my laptop is on, dolphin freezes when entering my home directory. So does any file::open dialog from kde and even the shutdown area in the k-menu.

The CLI works fine: if i do an ls in the directory where the shares are mounted, the shell gives an error after a few seconds and is usable again.

I tried several settings in /etc/fstab, but they all have the same result.

this is my last attempt:

Code: Select all
//192.168.2.14/HDD1 /home/rinse/smb/acryan cifs users,soft,guest,_netdev,timeo=14       0 0


Riinse, proud to be a member of KDE forums since 2008-Oct.
User avatar
Wizard
Registered Member
Posts
99
Karma
0
OS
I would try mounting them outside of $HOME and check if these freezes still occur.
User avatar
Riinse
Registered Member
Posts
167
Karma
2
OS
thanks for your reply

i tried that, but the same result.
The GUI of dolphin stops responding as soon as the acryan is offline.


Riinse, proud to be a member of KDE forums since 2008-Oct.
User avatar
Wizard
Registered Member
Posts
99
Karma
0
OS
Does dolphin spit something on console?
User avatar
Riinse
Registered Member
Posts
167
Karma
2
OS
Only what dolphin always prints on console, see below.
What i do notice is that when i start dolphin, the smb-server immediatly reacts on it (hard disk spin). So apperently, when starting dolphin, it tries to connect to the shares that are present in its side bar.

Also, plasma freezes when i want to open the k-menu, so apperently, plasma too tries to connect to the shares defined in /etc/fstab when i open the menu.


Riinse, proud to be a member of KDE forums since 2008-Oct.
User avatar
Riinse
Registered Member
Posts
167
Karma
2
OS
Code: Select all
rinse@linux-1q5c:~> dolphin
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Invalid iterator."
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Invalid iterator."
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
QPixmap::scaled: Pixmap is a null pixmap
QPixmap::scaled: Pixmap is a null pixmap
dolphin(16509) KSambaSharePrivate::testparmParamValue: We got some errors while running testparm "Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
ERROR: pid directory /var/run/samba does not exist
"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "QLocalSocket::connectToServer: Connection refused"
dolphin(16509) KMimeTypePrivate::ensureXmlDataLoaded: Missing <comment> field in "application/x-pem-key.xml"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "QLocalSocket::connectToServer: Connection refused"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "QLocalSocket::connectToServer: Connection refused"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Invalid iterator."
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "QLocalSocket::connectToServer: Connection refused"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Invalid iterator."
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "QLocalSocket::connectToServer: Connection refused"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Invalid iterator."
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "QLocalSocket::connectToServer: Connection refused"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Unsupported operation (2)": "Invalid model"
"" Soprano: "Invalid iterator."
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Invalid iterator."
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Invalid iterator."
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "QLocalSocket::connectToServer: Connection refused"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "org.freedesktop.DBus.Error.ServiceUnknown - The name org.kde.nepomuk.services.nepomukstorage was not provided by any .service files"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Unsupported operation (2)": "Invalid model"
"/usr/bin/dolphin(16509)" Soprano: "Invalid iterator."


Riinse, proud to be a member of KDE forums since 2008-Oct.
DeMus
Registered Member
Posts
140
Karma
0
I have exactly the same as you have/had. I got the tip to unmount the external connections before I shutdown those computers, or acryan in your case. Once done that, there is no problem anymore. It's just some extra work but it saves you from a lot of trouble.
The funny thing is, this used to work in Gnome 2 , when I skipped to KDE the trouble started.

So,
sudo umount shared-folder1
sudo umount shared-folder2
etc

Since today I have a new error: Dolphin just stops responding altogether. The kick-off menu is open right now and stays open, I can't close it anymore. This when not using the network at all, all other computers are off and stay off.
It really is time for the KDE guys to do something about this: I never had this trouble when using Gnome. I reported this bug but somehow I never receive any news about it, it seems to me nobody is working on it. This makes KDE a real big disappointment. Yes, it looks great, but watching a opened Kickoff menu for half an hour is not what I want.
rabauke
Registered Member
Posts
17
Karma
0
DeMus
Registered Member
Posts
140
Karma
0
rabauke wrote:You could help to find more info for https://bugs.kde.org/show_bug.cgi?id=184062


I just filed another complaint about this bug which is as old as KDE is, so it seems. No idea why nobody is working on this. It sure is a pain in the b*t.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This issue only occurs when you mount shares at the kernel level, through /etc/fstab (or manually with the mount command). This "hang" behaviour comes from the Linux Kernel itself, and is not under the control of KDE at all. Filing bugs against KDE for hanging when a network share is down will not get the issue corrected as you are reporting issues to the wrong place.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
DeMus
Registered Member
Posts
140
Karma
0
bcooksley wrote:This issue only occurs when you mount shares at the kernel level, through /etc/fstab (or manually with the mount command). This "hang" behaviour comes from the Linux Kernel itself, and is not under the control of KDE at all. Filing bugs against KDE for hanging when a network share is down will not get the issue corrected as you are reporting issues to the wrong place.


I don't know if you are right about that. I didn't have these issues when I was still using Gnome as DE. Then I could do what I please with my computers, nothing was hanging when a mounted network drive would be switched of.
That was my reason to look for help in the KDE forums and file a bug report there, as many others have done as well.
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS
You could switch to using fusesmb instead.

fuse runs in userspace so it doesn't lock anything else up if it goes down.

Usage: "fusesmb -s /destination/mount/point"

This will "mount" the entire worgroup, so you may want to add symlinks to the right places.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]