keepass2android icon indicating copy to clipboard operation
keepass2android copied to clipboard

Can't access/synchronize database shared from someone via Google Drive

Open carun opened this issue 7 years ago • 11 comments

I shared my database with my wife and she is unable to open/synchronize it via the Keepass2Android. However, it is viewable on her Google Drive app. When opening a database, the option shows only "My Drive" and not other folders. Can that limitation be the root cause and if so can it be removed?

carun avatar Jan 02 '18 18:01 carun

I cant synchronize too.

At the first import my database contains all entries present in the database.

But :

  • if a create an entry with keepass2android the "synchronize database.." in the menu does not send the update in the database remotely.
  • if a create an entry with my desktop PC keepass2 and the database is updated in google drive. When use the "synchronize database.." the update is never retrieved.

In my mind the synchronize function seems to have a problem with Google Drive.

gbloquel avatar Jan 21 '18 17:01 gbloquel

It appears to be an API issue. Only the My Drive portion of Google Drive is available to 3rd party apps via the API.

mcarver2000 avatar Feb 12 '18 10:02 mcarver2000

Is "synchronize database" supposed to do both Upload and Download to Google Drive? In other words, how does it know which database is newer. There seems to be zero documentation on what this feature actually does.

zhdenny avatar Apr 07 '18 16:04 zhdenny

if both databases changed, it does a merge as Keepass 2 does: https://keepass.info/help/v2/sync.html

PhilippC avatar Apr 09 '18 09:04 PhilippC

My issue is related as it affects Google Drive and (I think) shared files. I share a keepass file with my wife and she CAN open the latest using KeePass2Android. However she cannot save changes. She can add a new password entry and it looks like it is saving. However when she closes and reopens the database via Google Drive file path, the new entry is missing. In addition if after adding a new entry she clicks Sync Database, a message appears that the source file was changed. Again it seems local changes are not saved to the Google Drive path.

Could it be related to the fact that the file is shared in Google Drive? Or perhaps an issue with permissions. Note: I use the System File Picker button to open the file and not the Google Drive button. Or the Google Drive API as suggested above? Or an issue with the version of the Android OS on each phone?

UPDATE: I tested it again this morning. Yesterday it was working fine on my phone but today I cannot save changes to my keepass file stored on Google Drive. No error is reported or is listed in the log file. It seems to save then when reload the new entry is missing.

Meliovation avatar May 14 '18 10:05 Meliovation

New phone for my wife and I have the same problem. I can get to it using the system file picker and see shared files on Google drive there, but I expect she will not be able to sync content. Maybe Google changed the gdrive API and we can't do this anymore.

josefwells avatar Jun 08 '18 03:06 josefwells

I have the same issue with OneDrive

PeterWhitford avatar Oct 04 '18 01:10 PeterWhitford

LGACode posted a workaround for this issue regarding Shared Drives, and it works for shared files as well: https://github.com/PhilippC/keepass2android/issues/461#issuecomment-504768125

retroj avatar Dec 02 '19 22:12 retroj

Workaround using the Google Drive app:

  1. Choose "Make available offline" from the context menu.
  2. From the context menu choose "Open with" and pick Keepass2Android.
  3. After entering credentials the file will be available via Keepass2Android.

iliyesku avatar Apr 13 '23 09:04 iliyesku

None of this worked for me consistently. I finally gave up and used dropbox which has no such issues.

josefwells avatar Aug 27 '23 14:08 josefwells

Workaround using the Google Drive app:

  1. Choose "Make available offline" from the context menu.
  2. From the context menu choose "Open with" and pick Keepass2Android.
  3. After entering credentials the file will be available via Keepass2Android.

This workaround worked for me, that's amazing !! Thank you

Arthurin avatar Apr 25 '24 19:04 Arthurin