Version: (using KDE 4.4.1) OS: Linux Installed from: Ubuntu Packages Sometimes i get an error saving a file in kate over kio_sftp. It would appear that the sftp connection has closed for whatever reason and nothing bothers to start a new connection. see log showing a successful save prior to the problem and then 3 failed saves kio_sftp(12893) sftpProtocol::put: put(): KUrl("sftp://root@jupiter.grapevineit.net/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php") , permissions = "-1" , overwrite = 4 , resume = 0 kio_sftp(12893) sftpProtocol::put: Appending .part extension to "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php" kio_sftp(12893) sftpProtocol::put: Trying to open: "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" , mode= "33188" kio_sftp(12893) sftpProtocol::put: Trying to set final permissions of "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php" to "33188" kio_sftp(12894) sftpProtocol::listDir: list directory: KUrl("sftp://root@jupiter.grapevineit.net/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme") kio_sftp(12894) sftpProtocol::listDir: readdir: "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme" , details: "2" kio_sftp(12894) sftpProtocol::closeConnection: closeConnection() kio_sftp(12894) sftpProtocol::slave_status: connected to "jupiter.grapevineit.net" ?: false kio_sftp(12893) sftpProtocol::put: put(): KUrl("sftp://root@jupiter.grapevineit.net/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php") , permissions = "-1" , overwrite = 4 , resume = 0 kio_sftp(12893) sftpProtocol::put: Appending .part extension to "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php" kio_sftp(12893) sftpProtocol::put: Trying to open: "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" , mode= "384" kio_sftp(12893) sftpProtocol::put: ####################### COULD NOT WRITE "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" permissions= -1 kio_sftp(12894) kdemain: *** kio_sftp Done kio_sftp(12894) sftpProtocol::~sftpProtocol: pid = 12894 kio_sftp(12894) sftpProtocol::closeConnection: closeConnection() kio_sftp(12893) sftpProtocol::put: put(): KUrl("sftp://root@jupiter.grapevineit.net/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php") , permissions = "-1" , overwrite = 4 , resume = 0 kio_sftp(12893) sftpProtocol::put: Appending .part extension to "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php" kio_sftp(12893) sftpProtocol::put: Trying to open: "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" , mode= "384" kio_sftp(12893) sftpProtocol::put: ####################### COULD NOT WRITE "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" permissions= -1 kio_sftp(12893) sftpProtocol::put: put(): KUrl("sftp://root@jupiter.grapevineit.net/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php") , permissions = "-1" , overwrite = 4 , resume = 0 kio_sftp(12893) sftpProtocol::put: Appending .part extension to "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php" kio_sftp(12893) sftpProtocol::put: Trying to open: "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" , mode= "384" kio_sftp(12893) sftpProtocol::put: ####################### COULD NOT WRITE "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" permissions= -1
Application/System Versions Kate 3.4.1 KDE 4.4.1 Linux Mint 8 Helena - KDE64 ( based on Ubuntu Karmic ) Ubuntu Karmic ppa backports to get the latest KDE packages
Looking at the log output there was no closeConnection() so the kio still thinks we are still connnected. It looks like the server closed the connection. How long do you have to wait until the save fails?
I think you are right, the connection was not closed by the kio slave, but rather by the ssh link failing or the server disconnecting the connection. The failure message is reported very quickly < 1s
Where you log sftpProtocol::put: ####################### COULD NOT WRITE "/var/www/clients/client1/web1/web/sites/all/themes/gv_kbltheme/page.tpl.php.part" permissions= -1 Can you just run sftpProtocol::closeConnection: closeConnection() for good measure and then repeat the put request on a new connection? Just because it is the IP network or the remote end which has closed the connection still means that the user should not care, just start a new connection and try again would be my solution, but then i never write nice code!
Can you test a patch? http://www.cynapses.org/tmp/patches/kde/look
(In reply to comment #5) > Can you test a patch? > > http://www.cynapses.org/tmp/patches/kde/look What about this patch now?
I guess this is already fixed since a long time ...
This seems to be fixed at least since 2014.