-
Notifications
You must be signed in to change notification settings - Fork 297
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
System-hang when browsing unconnected network share #1378
Comments
Can confirm I have the same issue, as well as same system. Although using SSHFS. |
I too have had this same issue using SSHFS. I have shoddy internet so i'd often lose my connection nemo would completely freeze if I tried to navigate back to my network share after a connection loss. I've since moved to using filezilla but I would love to see a fix to this issue. Mint 18 64-bit cinnamon version 3.0.7 nemo 3.0.6 |
I still have this problem (I was the one who reported it originally), even when using systemd mounts in fstab and even when those mounts - as specified in fstab - have timeout values. I have the problem not only with shares on another computer on my network (another computer attached to the same router) but also with a flash drive connected to the router. It seems to me that this is a serious problem. Here's why. (Please correct my logic if it is incorrect.)
I infer further - from 4 - that this should be fixed, and pronto (!). |
@ACinnamonUserInUK Can you prove it's a nemo bug (it could equally be a gvfs-smb issue!!), you haven't provided any logs to help debug this issue.
That attitude isn't going to get the issue fixed any quicker, in fact you probably got it pushed to the bottom of the list! |
@DarthShekels Can you provide some error logs for the issue as all my sftp remote shares are working fine |
Thank you for the speedy response. 'Can you provide some error logs for the issue': please advise. I am familiar with Cinnamon's log viewer, and the KDE log viewer (which I use on Cinnamon), but I do not find either of those particularly easy to use and perhaps you would like me to look at something other than what is exposed to/by them. (As to attitude: perhaps I shouldn't complain, but I don't think you should threaten to send-to-the-back, either.) |
@ACinnamonUserInUK To capture gvfs, try
You might need to alter the gvfsd path to suit |
I opened a Nemo window, browser to a Windows share - a share on a computer that was turned off - and ran the commands you gave me. Nemo froze for some 15 seconds but did, this time, produce an error message (rather than the system producing a 'not responding message). However, the error messsage window contained an 'OK' button that was unclickable - Nemo was not responding to input, even once the message was displayed. Also, before I issued And after all this . . log.txt was zero byes, I am afraid. EDIT [I had to submit the comment before I was finished, because the text box stopped responding]: There was relevant stuff in 'syslog', viz., multiple instances of the following.
|
@leigh123linux I pasted what you typed and followed your methods, as well as tried logging the output to the console, but cant seem to get it to print anything at all ever. Not quite sure why. |
@Nackloose Try running 'killall nemo' first before
alter the /usr/lib/gvfs/gvfsd to suit the true path location |
I would like to add that I still have a less severe version of the problem. The decrease in severity could owe to software updates or to changes in my fstab but the situation is still not great. What happens now when the network drives are offline is as follows.
1 is perhaps fine, given my fstab settings (see below), though some sort of indication that an access attempt is in progress would be good. My fstab setup:
|
To quote, and correct, myself:
Actually, it transpires that I still have the original problem. That is: the computer hangs on logon if the network is offline (although, oddly, this seems to happen only on one of my two user accounts). Here, belatedly (and @Nackloose), is another attempt at obtaining the output requested. First I tried it when my network was up.
gvfsd:
I will post this and then take the network offline and, if the computer still works (I won't turn it off in the meantime, so hopefully it will: logging on without the network is the problem), then I'll reissue the command and post the output. |
The log after the network is taken down:
|
And the log when the network is down and after
|
A recent update to Samba seems to have made delays in shutting down - which already I have to tame with a watchdog and by modifying systemd timeouts - more frequent. It would be nice if something could be done about this by Mint. |
This is still an issue! |
same here. If my NAS is down, nemo hangs for 35s strace gives a lot of these lines:
|
Can confirm. This is definitely an issue. I have two servers on the same network, both acting as fileshares, amongst other things, via cifs. Both servers have respective mount points in /media, ergo, local to the filesystem rather than something like gvfs in /usr or a different directory altogether. If either side becomes unreachable/unresponsive for whatever reason (e.g. Say that a server hangs for some reason)- nemo becomes insanely unresponsive. Even when I attempt to browse local directories that should be reachable and fine, it chugs along, hangs for long periods of time, then goes back to working for a few seconds. It's as if it's struggling to attempt and access the previously mounted cifs/smb share in-between my requests to reach other local directories that are not remote. |
A fix of an issue with similar sympthoms in KDE: KDE/plasma-workspace@e1c19ce |
Hi! Edit: using NFS to mount |
Did anyone try mounting using GVFS? Does this happen with GVFS-mounted shares? |
Fixed by adding a few options to my mount: |
This has no positive effect for me, Nemo still freezes as long as a copy/write operation to the remote drive is running. |
i'm sorry, i didn't explain myself properly. I was not transfering any data from/to the NAS. My nemo was freezing just by opening it, because of bookmarks in the sidebar which pointing to the NAS disks. |
Does that fix only apply to mounts/shares that rely on fstab entries? I have a systemd automount script that I'm using for my remote CIFS share. Not sure if this would translate... Wouldn't it be better to fix the type of behavior that occurs when the file manager is opened? Why does it effectively 'hang' and spin its wheels when a share is unreachable? Perhaps I'm just dense and not getting something but shouldn't there be an 'nth attempt and backoff/stop' when accessing a share that is unreachable? Everything literally just kind of 'stops'... However I am able to access things just fine from terminal while a remote share is inaccessible. It is literally just Nemo that this happens with. |
Same here. Just started using linux (Mint 20 Cinnamon) and this is really a drag for a laptop that sometimes is home and in the home network, and sometimes somewhere else completely. Also the laptop is rarely rebooted (when forced by system), only sleep and hibernate used. SMB3 shares mounted from fstab with cifs. Tried to use the Long hang also happens almost every time (it's random, can't make out what causes this and not) e.g. when trying to save something from a web browser when the shares are not available; Vivaldi -> "Save as" -> there's a long hang before the "save file" dialog even shows up. I have added bookmarks to the SMB shares in nemo. Shares are mounted under "$HOME/.smb/" folder in their own subfolders. No processes gets seemingly stuck, and no high cpu usage, when looking at System Monitor or I got a "The folder contents could not be displayed. Sorry could not display all the contents of ".smb". Error when getting information for file "/home/(redacted)/.smb/Backup": Host is down" error dialog after a small hang when trying to navigate to the $HOME/.smb folder with nemo. Can't even see the ".smb" folder, nemo always goes back to the "$HOME" and shows the error dialog even though the shares are mounted in their own folders under the ".smb" folder. Many times even when browsing to a non-share folder, e.g. "$HOME/downloads", there's a "loading..." indicator in the right-bottom corner of nemo. Nemo rarely totally hangs on my system, but things are slowed down and there's longer and shorter hangs with virtually everything user tries to do (though these also happen randomly), e.g. opening a txt file from non-share folder hangs for a while. "journalctl" and "dmesg" pretty much show only this line (once only for some reason even though the hangs continue if navigating again and again to the shares that are not connected anymore):
That's all I can report with my limited knowledge about linux.
Could this be used as a reference to conjure a solution for nemo? |
From terminal,
Removing a bookmark for the share from nemo (after a hang when right-clicking the bookmark) helps a bit sometimes, for example, opening text documents are fast again, and also opening the "save as" dialog from e.g. Vivaldi browser. Still, this is not a fix for this problem. Tried quitting nemo with For a temporary fix, I created a script that force unmounts all my smb shares and put it in my home folder for easy access:
This can be ran when nemo starts hanging. If you run it from nemo itself, choose "Run in terminal" so that you can enter pw for sudo (the After force unmounting, clicking any of the SMB share bookmarks in nemo show this error message instantly with no hangs (how it should happen when the not available shares are still mounted):
|
Jesus christ nearly 6 years later and this still isn't fixed? I can't use my computer if a network share goes offline. I can't believe this isn't fixed. Good job devs. |
Switch from nemo to nautilus. |
It isn't wise to add networks shares to fstab, if you do add the nofail option so the PC can still boot when the share goes MIA. |
Why? What is the better way then? Years ago I tried to mount/access the shares directly from Nemo (gvfsd?) and I couldn't get full gigabit speeds from my home network, the speed was reduced like over 60% or even more (I can't recall the exact amount, but it was a VERY large drop). Then tried to mount from fstab and I got full gigabit speed.
This doesn't help people with laptops that use sleep &/ hibernate. Not everybody reboots daily. (at the time of writing this my uptime is 13 days.. and can be easily much longer) Is this impossible to fix? Has anybody even tried to think of a fix for this? What about the link to a "fix of an issue with similar symptoms in KDE" which was posted here earlier, would that help fixing this? If I'd knew how to even start fixing this problem, I'd try to do it, but alas, I can't. |
I do "gio mount smb://diskstation/home" and it hangs also when the NAS ist not running. |
I have a good workaround, if anyone still has this problem in 2023.
I don't (maybe obviously?) use this in Today I've had the problem again because, by mistake, I mounted a samba share through nemo (which I think uses udisks / gio mount / its own CIFS arguments). I'm not afraid of doing it since I learnt that Also now I remember it took me a long time to get rid of ALL problems, as Linux Mint relies heavily on gvfs, so for some time, some problems were fixed, but others weren't (for example, when saving a file from Firefox (gtk3 ?)). But one fine day I found the best list of arguments for me / for my |
Are you sure this is a working workaround? I checked how my cifs were mounted with I think that the problem is twofold:
EDIT: Just for reference, here's a mount from my
|
When I download files with chromium and save them on my NAS, it seems to work but the files are not on the NAS. So I always download to my SDD and then move the files to the NAS. |
I think you have some other problem (maybe related to GVFS that Nemo uses when mounting, IF you mount that way). I don't see how this is relevant to this issue/topic. I have no problem downloading/saving files from Vivaldi (Chrome/Chromium) straight to my NAS shares. Never had a problem with it, it has always worked fine, I do that daily, so I definitely would have noticed. Also the user you quoted, had that problem at some point but not anymore. |
I didn't know that, I thought forceuid was the main trick. Interesting. My comment was already long, but I wanted to add that at first I thought I had to have both my custom mounts and the gvfs mounts. My main goals were to have my network pictures in digiKam network collections, and to be able to query all my drives through one instance of (1) One interesting case if with Timeshift. Btw it's not even related to Samba, but to the suspend bugs. I do my snapshots on an encrypted external disk. If I forget to mount it, Timeshift automatically creates a root mount, with udisks, of a nonexisting drive (because my LUKS container is closed). That mount appears in Nemo, and in the UI it looks a bit like a Samba Mount. Unmounting this is a bit tricky (because root, can't GUI), and if I forget to do it, the laptop can't suspend. That (second paragraph above) is why I thought my list of mount.cifs option could be the fix for everyone, as I haven't had a problem in a year. I'm interested if you or others try ======================= edit : my Basically my suggestion boils down to this : Try to do a manual CIFS mount that integrates well with gtk apps, while never using gio / udisks / gvfs mounts. That should avoid nemo problems. Before suspending the computer, make sure in Nemo that systemd (or a program like Timeshift) didn't auto mount any samba share / any network drive at all (or just unmount them each time). |
I'm a bit swamped with everything, but I'll try to answer a bit.
Why "users"? I'm not really interested in using a very old, insecure, and IF my memory serves me right, slower version of cifs/smb. I don't use version in my fstab mount because Mint automatically forces the newest (3.1.1) version (from journalctl):
BTW. I'm using Linux Mint Cinnamon 20.3.
I'm not a linux expert so bear with me; is mounting with fstab ok regarding what you wrote above? |
8 years later and this still isn't fixed? Cinnamon freezes if SMB mount goes offline. |
I have a samba NAS mounted through FSTAB and opening Nemo when I'm not connected to my network causes Nemo to take an unreasonable amount of time to open. |
Unfortunately it seems that no one that would have the knowledge to try to fix this is interested. :( |
You can use nautilus. |
What happens
I have Nemo bookmarks for shares on my local network. Those shares are controller, on the Linux side (they point to a Windows computer) by systemd and Samba and my fstab. Relevant part of the latter:
When I am away from home, naturally I cannot connect to the local network. Yet, if I try to - via a Nemo bookmark - the whole system hangs. I have to press the reset button on the laptop computer.
What should happen
I should get an error mesage and the system should not hang. I hope the problem is with my particular setup. Otherwise, this is a serious bug - though, even if the problem is with my setup, surely it should be easier to create network shares (or at least ones that, unlike normal Samba shares, do not temporarily freeze the system when they are unavailable - though note that such a temporary freeze would be better than the hard-reset-necessitating situation that I am experiencing).
My system
Mint 18.1 x64. Nemo 3.2.2.
The text was updated successfully, but these errors were encountered: