laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
46.36k stars 5.04k forks source link

Android App regularly looses encryption settings and I need to re-enter the password & activate the encryption... #3804

Closed dede321 closed 3 years ago

dede321 commented 4 years ago

I did not change anything, started the app, and it asks me again for my decryption password, despite having it set already.

Android 10 Joplin 1.1.2 (Updated it a few hours ago and after the update encryption/synching was working) with local file sync + Ultimate sync.

Screenshot_20200922-195612_Joplin

The Android app seems to be very buggy in combination with file synching. I would love to, but can't test the webdav on Android, as it does not accept self-signed certificates.

laurent22 commented 4 years ago

I can't replicate this issue but I've noticed that another user had this issue after sharing some text or image with Joplin (from another app). Do you often share data with Joplin from other apps?

deftdawg commented 4 years ago

My settings were lost on a one-time after update crash.

I never do "share" from apps in android, I do use WebDAV for sync, however I'm not using any SSL (I VPN in to a NAS on a private LAN ip)

dede321 commented 4 years ago

I can't replicate this issue but I've noticed that another user had this issue after sharing some text or image with Joplin (from another app). Do you often share data with Joplin from other apps?

I never used an app to share text or images in Android, but I have the habit to kill apps by opening the Android's "current apps running overview" and sliding (terminating them) apps away, so this could potentially be an issue.

Or it has something to do with the local file sync? For now, I have set Ultimate Sync as a one way sync (nextcloud server to local file) and I only use Joplin as viewer. If the bug re-appears (loosing any settings), I will drop a quick message here.

dede321 commented 4 years ago

deftdawg: I do no use webdav. I use local file synching in combination with Ultimate Sync (https://play.google.com/store/apps/details?id=com.icecoldapps.synchronizeultimate&hl=en_US)

siebenbrodt commented 4 years ago

Same here. Never shared anything, lost Nexcloud sync settings today apparently due to auto-update. Unfortunately did not look at the version number. Installed 1.2.1.apk, synced - and then sync settings and encryption password cleared again. Uninstalled, installed 1.0.340.apk - synced everything - then app added Welcome! (Mobile) notebook and the settings were reset again, asking to Login with Dropbox. Android 9 (LineageOS 16.0 for microG)

deftdawg commented 4 years ago

This morning my settings reset again ☹️

Still 1.1.2, the app was closed when I started. Is it possible a file handle is being left open to the configuration and that the file becomes corrupted when the app is killed by Android?

deftdawg commented 4 years ago

I noticed in logs section of the android app some complaints about "Could not update database to v34"... Not sure if it's related Screenshot_20200926-084321

kikoqiu commented 4 years ago

Changing the size of joplin window in a split-screen (multi window) situation will lead to the bug, too.

q6r commented 4 years ago

I experienced the same. After sometime it removes webdav settings and requests E2EE key again seems like all configuration is reset but notes still appear from the cache. I've re-added the sync settings and it synced all notes again in plaintext format causing me to ssh to the webdav and do some manual work to make sure no plaintext left on the server.

This started to happen since last update 1.1.2. I will try to replicate it and create some useful logs.

Note : I did a share to Joplin once.

fgrove commented 4 years ago

I've just had Joplin lose the encryption settings for the second time in a few days. On Android, version 1.1.2, syncing to Nextcloud.

JackGruber commented 4 years ago

Hi, look at: Issue: https://github.com/laurent22/joplin/issues/3800

and the forums discussion: https://discourse.joplinapp.org/t/webdav-config-encryption-config-randomly-lost-on-android/11364

In the version 1.2.5 the problem should be fixed: https://github.com/laurent22/joplin-android/releases/

demeralde commented 4 years ago

I have the same problem. I have the latest version installed on F-Droid, and this just happened today.

dede321 commented 4 years ago

Since this fix, I have not had this issue, anymore. S10 or Tab 10.1.

demeralde commented 4 years ago

This just happened again. Honestly really disappointed with the quality of the mobile app, it's been very buggy. The desktop app works great, though.

Edit: oops, that was my fault. Just remembered I installed the app with an .apk file and it doesn't auto-update. Will install the new version and try again.

stale[bot] commented 3 years ago

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may comment on the issue and I will leave it open. Thank you for your contributions.

stale[bot] commented 3 years ago

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.