Menu

Syncing second pc

Marla
2016-12-10
2016-12-15
  • Marla

    Marla - 2016-12-10

    Hi,

    I followed the instructions to sync my KeePass database with Google Drive. It is working fine on computer #1. There is a local copy of the database in My Documents and a synced copy in the root folder of my Google drive.

    I am having trouble syncing a second computer so that it uses the same database file. I installed KeePass on computer #2, added this plugin to the plugins folder, placed a copy of the database in My Documents on computer #2, opened the database from My Documents on computer #2, configured the plugin, and somehow it created a second independent copy of the database in my Google Drive. Computer #1 syncs with the first copy I created, and computer #2 syncs with the second copy. Both computers show the same KeePass UUID in the plugin configuration settings, and the local database is named the same on both computers.

    What did I do wrong? How do I get the same database file to sync from Google Drive onto computer #2? I'm happy to revoke permissions, uninstall the program, and start over, but I am not sure what to do differently.

    Assume I have a properly syncing database called keepass.kdbx that exists locally on computer #1 and on Google Drive. Then assume I install KeePass on computer #2, place the plugin file in the plugins folder, and launch KeePass. What are the next steps? I have to open a database containing an entry for my Google Account in order to configure the plugin, right? Should this be a new database called something other than keepass.kdbx? Opening a local copy of the same database that I have on computer #1 obviously did not work out, as I ended up with two independent databases instead of one that syncs to two computers.

    Thanks in advance for your help.

     

    Last edit: Marla 2016-12-10
    • Uranium235

      Uranium235 - 2016-12-12

      The way you described should work. As far as I can tell you did nothing wrong.
      What do those 2 copies in Google Drive look like? Do they also have the same name (title)?
      The only reason I can think of is, that for some reason the 2nd computer does not see the same Google Drive contents as the 1st. I don't know how that would be possible though.

      Did you have to authorize (the popup asking for permission) the Plugin on the 2nd computer as well? That should not be necessary if you opened a manually made copy of your database from the 1st computer (which was already authorized).

      Are you absoluteley sure the filenames are exactly the same? Not even different lower and upper case spelling?
      Does you filename have any fancy characters or does a simple "keepass.kdbx" make no difference?
      Are both computers running the same version of windows, keepass and the plugin? (even though that should not make a difference)
      Are you using the default OAuth credentials?

      It should work like this:
      Install KeePass and the Plugin on both computers
      Open your database on the 1st computer
      Configure the plugin and save the database (and sync for the 1st time)
      A popup should appear asking for Google Drive permission for the Plugin (only on the very first sync ever for that database)
      The sync should be successful and the status bar in the main KeePass window tells you so
      Now copy the database to the 2nd computer
      Open the database on the 2nd computer
      Configure the plugin on the 2nd computer (select same Google Account)
      and save the database (sync 1st time from 2nd computer)
      There should be no popup asking for permission
      * The sync should be successful and the status bar acknowledges that

      You could try to compare the file-id the Plugin gives you (in the status bar of the main window) it updated / uploaded on both computers and within Google Drive itself. It should always be the same file id.

      You can start over by disabling Auto Sync and then deleting the GoogleSync.... strings from the advanced tab in your password entry for your google account. You do not need to revoke authorization with Google, but can also do so if you like to be thorough.

       

      Last edit: Uranium235 2016-12-12
  • Marla

    Marla - 2016-12-15

    Hi, I want to thank you for the thorough explanation. The problem turned out to be that the two files were not named exactly the same. One was called Keepass.kdbx and one was called KeePass.kdbx. I had no idea that filenames were case sensitive in Google Drive. The file id was the same in the plugin on both computers, so I was focused on that and didn't notice the uppercase-lowercase discrepancy.

    I have clipped your step by step instructions to refer to in the future and to share with others (as I am something of a KeePass evangelist and am always getting people to use it - and now, your plugin too).

    Thanks again for your time; I really appreciate the support.

     

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.