-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Files freeze after ssh server drops connection #1858
Comments
This still applies to 6.1. Same issue here, commented just to raise awareness. No way to debug this
|
I just realized one way to test this bug with any ssh server, as there is at least one other way to make the server drop the connection. Have a tab with active connection to a ssh server and suspend the laptop / desktop for some time (e.g. over night, but even something like 15 minutes should be enough, or maybe a lunch break). After waking up, try to interact with the ssh server tab as described above (navigate folders or refresh the current folder view). Edit: Forgot to mention I'm on OS 6.1 now. |
This behavior is reproducible, when we let the system go to sleep while connected to a remote server. If the file was opened with a tab displaying remote location, on waking up, it crashes. |
I have tried to reproduce this with version 6.5.0 (On Elementary 7) on an SFTP connection, simulating the "going to sleep" by going into aeroplane mode. I haven't experienced any crashing or freezing of the entire interface (the tab itself may block but other tabs and other elements of the UI continue to work). Reconnecting either completes the operation or asks for the password again. I'll try it with suspending the laptop. Closing and opening Files such that a disconnected location is restored results in the tab continuing to be in a "working" state but the rest of the UI works as usual. Reconnecting results in the tab completing the load process. A fair few changes have been made since this issue was first reported so a fresh report for Horus is required if it still happens under some circumstances. |
I'll check it today |
I can still get it to freeze. I connected to a server (my model finished overnight, cool!), then closed the laptop and went for breakfast. Now I opened it again, focused Files and clicked on a folder (in a column view) that I didn't load before - and Files are frozen now, clicking other tabs or anything else isn't working. PS: upon switching back to Files after writing this comment I was presented with the "wait or kill" dialog. PPS: relaunching Files again doesn't work and presents the same "wait or kill" dialog. Kiling the PPPS: BTW after all of this the path bar in Files looks like this: Switching between tabs or opening new tabs doesn't help it, it just stays there like that with new paths projected over it. The background path seems to be the one to the server (closing connection from sidebar and reconnecting also doesn't help). Closing Files with Ctrl+Q finally shows normal breadcrumbs. |
@janxkoci Thanks for the update. Looks like there is a blocking io process going on that needs to be made asynchronous. Either that or an infinite loop (in that case the cpu usage will be high). Either way something is stopping any other Files process from getting any cpu time. To help identify what it is, could you run Files from the terminal under |
The pathbar appearance is just a side-effect of the animation being interrupted in the middle of a transition. By the way, could you confirm which version of Files you are running? The latest is 6.5.0. |
Ok my is older:
(Btw issuing |
@janxkoci Hmm that's a regression - not sure when that happened. I'll raise an issue and investigate. |
Ah, the update to Files is in the queue, but Appcenter forces me to double-reboot to even install the update (it only downloads it now) and I didn't have time to reboot this week. 🤷 |
Hopefully it helps. I havent been able to freeze Files by simulating the server disconnecting by turning wifi off while suspended using a public SFTP server. The tab freezes but not the whole app. However, this is not exactly the same as the server disconnecting. When I have time Ill try to set up an SSH server I can control. |
I thought AppCenter does install native apps like Files straight-away (although you need to close and restart Files for it to have an effect) however there do seem to be a lot of mandatory restarts recently - I assumed due to kernel updates - so maybe something changed. |
Ok this is crazy. I did the two reboots to install the update, then after the second booting I opened Files and the SSH session in one of the tabs, closed the laptop and went out witm my second laptop. Now I returned, opened, focused Files and tried to navigate another folder on the SSH server - instant freeze. I realized I forgot to check the version after the update, so I popped up a terminal and - well this is weird:
It timed out because Files were frozen 😮 I had to check in Appcenter, which shows the version as 6.5 now. About the reboots - all "OS updates" (I think it means |
The Might be worth running |
The |
The same applies to |
@janxkoci I have tried setting up an OpenSSH server on my local machine but have not succeeded in getting a freeze so far. One thing occurred to me is that when Files is frozen, there might be a modal dialog somewhere (e.g. beneath a window) that has stolen focus. Unlikely, but worth asking. https://www.cyberciti.biz/tips/open-ssh-server-connection-drops-out-after-few-or-n-minutes-of-inactivity.html might be of help but only if you have access to the server config file. |
There is definitely no dialog behind the window or anything like that. If there is, it appears normally on top, asking to wait or kill the app. In fact, killing the app and trying to re-launch will often show no window and only the wait-or-kill dialog appears. Afaik, the only way to avoid the freeze is to eject the connection from the sidebar before it times-out (e.g. server dropping the connection, or me suspending the laptop), or to close the remote tab/not interact with it. |
This issue still exists in files --version 6.5.3. |
What Happened?
At my university we have a few ssh servers and clusters for running computations. I often connect to these servers from Files, because it's a convenient way to copy files between the servers and my local machine.
These particular servers have an annoying habit of dropping the ssh connection after few minutes of inactivity (unless I'm connected to university wifi - eduroam - which is quite weird in itself). When this happens, and I go to Files and try to interact with the remote directories (navigate folders or refresh current folder view), the Files app freezes. The only point of action afterwards is to kill Files.
One way to prevent this freezing is to disconnect the server from sidebar whenever I suspect the connection was dropped (e.g. coming back 5 minutes or more after I used it last time), then I can reconnect and everything works without issue. But obviously I forget to do that way too often.
I know that the ssh/sftp feature is handled by gvfs backend, however I also use another app - Taxi, the (s)ftp client from AppCenter - which is using the same backend, but doesn't freeze after the connection drops. I know it uses the same feature as it doesn't even ask for password if I already used the password in Files.
Steps to Reproduce
I admit this will not be easy to reproduce, but it goes something like this:
Expected Behavior
Files should not freeze just because a connection to a server was dropped. Taxi uses the same backend to connect to the servers and does not freeze when connection is dropped.
OS Version
5.x (Hera)
Software Version
Latest release (I have run all updates)
Log Output
I tried launching Files from terminal, but the freeze doesn't produce any output there. Also `coredumpctl` says there are no coredumps to show.
Hardware Info
All the laptops that I ever had with elementary OS. Acer, Dell, Slimbook, all with Intel chips. I think the issue exists maybe since Loki, but I never paid enough attention to it, until my friend pointed out the dropping connections to our servers (I use a few other servers at different institutes and those are all fine). I then noticed that Files tends to freeze after the connection drops.
The text was updated successfully, but these errors were encountered: