Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronization fails when opening keepass sometimes #45

Closed
josefwells opened this issue Oct 13, 2017 · 6 comments
Closed

Synchronization fails when opening keepass sometimes #45

josefwells opened this issue Oct 13, 2017 · 6 comments
Labels
Milestone

Comments

@josefwells
Copy link

When my phone holds keepass in memory, it opens to the 'Unlock database' page, I then get a message that it failed to synchronize the kdbx file (from cloud).

"Could not open from remote: .... looks like XXX not set up...." something like that.

If I back out and go to the main Keepass2Android page, and select the database from the 'recent' list, it works every time.
"Remote File and Cache are synchronized."

Can this be fixed? Maybe force to the Keepass2Android page instead of Unlock database?

@PhilippC
Copy link
Owner

Can you please try to collect logging regarding this? You can try to create an empty file /mnt/sdcard/keepass2android.cloud.log (e.g. with ES File Explorer) and see if this gets filled. If it is, that's nice. If not, please collect a logcat. The most relevant tag ist KP2AJ, but you might include KP2A as well. thanks.

@josefwells
Copy link
Author

josefwells commented Nov 1, 2017

Sorry for the delay. I didn't get anything in the /mnt/sdcard/keepass2android.cloud.log file, it just stayed empty. I collected a logcat, and redacted my username, is there anything else I should be concerned with there? There seems to be a hash of some sort after filenames/dirnames via gdrive.. just making sure that isn't some serious Auth key..
gdrive://.U8-<EMAIL>/.U8-<PATH>-<HASH>-<HASH>/<FILE>-<HASH>-<HASH>

@josefwells
Copy link
Author

Ok, I just REDACTED out the hashes that made me nervous...
kp2a_logcat.txt

@PhilippC PhilippC added this to the 1.04 milestone Nov 13, 2017
@PhilippC PhilippC modified the milestones: 1.05, 1.05b May 28, 2018
@PhilippC
Copy link
Owner

PhilippC commented Jul 2, 2018

@josefwells I just tried to fix this, but I am not totally sure what's happening. The point is that Google Drive needs some initialization process, but that is not triggered. It should be triggered from the "FileSelectActivity" (where you choose the file from the recents list), but according to your log, that activity never was started. Can you tell me how you manage to go to PasswordActivity without going to FileSelect first?

@josefwells
Copy link
Author

I don't know. If I pick the gdrive database, then unlock, everything works. Then if I just hit back, (I have "Lock when leaving app" set), I exit the program, but reopening it takes me straight to the Unlock screen, not database selection. I'm on Android 8.0 now, same behavior with 7.1 previously.
It is much harder to do now, not sure why. It did this when I just tried it, but trying no >10 times, I never got it to happen again.

Only by opening the database, hitting the home button, waiting for the database lock timeout to hit, then opening the app again do I get to the Unlock screen, but even then, I get that Remote and Local are synchronized.

I am also less convinced now that there is ever a problem with what happens anyway, I might get the error, but then after unlocking the database, I get the message that they are synchronized.. not sure if this was always the case, but I have seen it a few times now.

I have work-offline enabled as well, maybe there is an interaction in that code and my network has small windows of seeming inaccessibility?

@PhilippC
Copy link
Owner

closing this for now as it seems not reproducible at the moment. Please re-open if you find how to reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants