Menu

Problem with installed version

Jonas
2012-12-11
2012-12-30
  • Jonas

    Jonas - 2012-12-11

    Hi folks,

    first I have to thank you for the awesome idea of the plugin.
    So I straight get to the point.

    I now tried to install the plugin to my installation of KeePass. I run the most recent version 2.20.1, KeePassLibC 1.24(0x0148) and XSL Stylesheets for KDBX XML 2.20.1.
    In combination of the plugins version 1.1.x I have no issue to start the application.

    But with the installed version of KeePass I just always run into the error:
    "Precondition failed.: !string.IsNullOrEmpty(this.ClientIdentifier)"

    Thats the XML file

    <Custom>
        <Item>
            <Key>EnableAutoSync</Key>
            <Value>true</Value>
        </Item>
        <Item>
            <Key>GoogleSyncClientID</Key>
            <Value>1234567890123.apps.googleusercontent.com</Value>
        </Item>
        <Item>
            <Key>GoogleSyncClientSecret</Key>
            <Value>AbCdEfGhiJkLmN_oPqRs1234</Value>
        </Item>
        <Item>
            <Key>GoogleSyncKeePassUID</Key>
            <Value>28FF219E7CA12349A18AD755A4200C9E</Value>
        </Item>
    </Custom>
    

    With the plugin version 1.5.x it's even worse. There I get a error message by starting the application.
    "Initialization Failed: Required configuration entries were not found. Please exit KeePass and update configuration file.
    Required Configuration entries: GoogleSyncClientID, GoogleSyncClientSecret, GoogleSyncKeePassUID
    Optional Configuration entries: EnableAutoSync, GoogleSyncShowAuthenticationForm"

    This XML file is clean as well

    <Custom>
        <Item>
            <Key>EnableAutoSync</Key>
            <Value>true</Value>
        </Item>
        <Item>
            <Key>GoogleSyncClientID</Key>
            <Value>1234567890123.apps.googleusercontent.com</Value>
        </Item>
        <Item>
            <Key>GoogleSyncClientSecret</Key>
            <Value>AbCdEfGhiJkLmN_oPqRs1234</Value>
        </Item>
        <Item>
            <Key>GoogleSyncKeePassUID</Key>
            <Value>28FF219E7CA12349A18AD755A4200C9E</Value>
        </Item>
        <Item>
            <Key>GoogleSyncShowAuthenticationForm</Key>
            <Value>false</Value>
        </Item>
    </Custom>
    

    With the portable version of KeePass 2.20.1 this issues are not showing up and snychronisation with Google Drive works just fine. I tried with Windows 7 32 Bit and 64 Bit on two different PC. So I'm pretty sure I did all configuration right.

    Regards
    jonas

    PS: sorry I dont get it to format the XML code clean :(
    PPS: yeah I did it

     

    Last edit: Jonas 2012-12-11
  • Danyal

    Danyal - 2012-12-11

    Actually, with 1.5, it is better as you get a more descriptive error message.

    As expected, KeePass cannot find your configuration entries. You will need to figure out where the configuration file is for installed version of KeePass.
    Please see these posts
    post 1
    post 2

     
  • Jonas

    Jonas - 2012-12-12

    man you made my day. How could I be so blind?
    Thanks a lot Danyal!

    So for the other blind fishes in the pool, with the installed version of KeePass you have to edit the XML file under C:\Users\User Name\AppData\Roaming\KeePass\KeePass.config.xml

    But the first post have this link, which is very informative about the configuration file of KeePass and the different possibilities to provide KeePass with configuration.

     
  • georef

    georef - 2012-12-15

    Installed version doesn't allow sync of local password database file... seems to only look in the program folder and not my local folder for the .kdbx file.

    I assume, like other users have reported (see post1 link above), the only way to sync a local database file is to use the "portable" version of keepass, yes?

    Question: Why do I need KeePassGoogleSync plugin? Why not just use the GoogleDrive hard app installed on my computer (creates a local folder that is automatically synchronized with Google Drive) for the home location of my .kdbx file? Would that not allow me to access the same (sync'd) password database file no matter what machine or android device I'm using?

     
    • Ron Smits

      Ron Smits - 2012-12-30

      Is there a solution for the plugin to always want to sync from the "Program Files" folder instead of from the location where the database actually is?

       
  • Danyal

    Danyal - 2012-12-18

    As far as I know, people have been able to use the plugin with installed version as well.

    There are many benefits of using a portable version as opposed to an installed version I am not going to get into them. If someone would be kind enough to point out limitations or annoyances they have experienced with installed version, I can definitely consider them for next version.

    For your second question, that's an advantage of having choices. Again, it requires installing GoogleDrive desktop app on every computer you want to use KeePass. There are YouTube videos available on how to use Google Drive app to sync KeePass. If that's the route people want to take, they are most welcome. I am just providing another choice - and I like coding :).

    I use portable with the database file and the plugin(s) all in one folder that I can move around easily on a USB stick, no install hassle. With this plugin, I don't even need a USB stick anymore. Now I just use the plugin to download the latest or sync.

     

    Last edit: Danyal 2012-12-18

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.