#1797 Write config file occasionally


When I use "Open Recent" in KeePass 2.23, for an SFTP connection, where I stored the user name and password (using the option "Remember user name and password"), I get the following error:

"Failed to load the specified file! An exception occurred during a WebClient request."

I tried multiple password changes (like reducing the size and not using special characters), and nothing seems to solve this problem. The password itself works alright on the first time I open the database or when I use the option "Remember user name only".


  • Miguel Duarte

    Miguel Duarte - 2013-09-23

    After a few more tests, I arrived the conclusion that using the option "Clear List" on the "Open Recent" menu solves the problem. Maybe the application is not properly cleaning the old passwords?

    So to repeat the bug you have to:

    1. By sftp use an sftp user/password to open a remote file
    2. Change the sftp user password
    3. Try to open the file with the new password and use the option "Remember user name and password". It should work.
    4. Close the file
    5. Open the file again through the menu "Open Recent"
    6. It should break.

    To reset the situation:

    1. Clear List"
    2. Follow steps above. KeePass now stores the correct password.
  • Paul

    Paul - 2013-09-25

    Please check KeePass.config.xml for the SFTP credentials and see if they are correct - the credentials are not encrypted.

    cheers, Paul

  • Miguel Duarte

    Miguel Duarte - 2013-10-18

    The credentials are on the folder: C:\Users\"user"\AppData\Roaming, and actually, the password is from what I see encrypted (at least, disguised).

    Anyway, I've made additional tests and what happens is that the application only writes on the KeePass.config.xml on exit. So, if I try to open a "recent" connection, KeePass will read the password stored on the KeePass.config.xml and not the new password stored on memory.

    This could be corrected on two ways:

    • After each login with successful user and/or password update the KeePass.config.xml;
    • Read the user/password from memory (which is updated), and not from the KeePass.config.xml.

    Miguel Duarte

    Last edit: Miguel Duarte 2013-10-18
  • Dominik Reichl

    Dominik Reichl - 2013-10-26
    • summary: Password Failure with SFTP and option "Remember user name and password" --> Write config file occasionally
    • Priority: 7 --> 5
  • Dominik Reichl

    Dominik Reichl - 2013-10-26

    Ticket moved from /p/keepass/bugs/1166/


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks