-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Android filesystem sync is broken after 2.6.3 update #5779
Comments
I can confirm this happens with all my Android devices (running Android 11 and Android 12) since the update. Downgrading to the previous version made it work again. Here’s the relevant log snippet:
|
This is probably due the Android SDK update, but not sure how (or if) that can be fixed. If someone has any idea I'd accept a pull request. |
Add another one to the list. On Android 11 with 2.6.3 update I am no longer able to sync to my SD card so syncthing can access it. How would I go about downgrading to the previous version or can anyone think of another work around? |
I am also experiencing the same issue when upgrading to version 2.6.3 on Android 11. Dropping back to version 2.4.3 (Google Version Code: 2097651) resolves the issue. @laurent22 I just want to say thank you for this amazing software. It's easy to forget how much effort goes into making something like Joplin. If there is anything I can do help narrow down the issue (logs, testing, etc.) , please let me know. @Timothy-Ecc19 you will need to uninstall Joplin and reinstall the previous version. The last official prebuild APK can be found on the root folder of Joplin's github repository, under the heading "Mobile applications", but unfortunately it is version 1.8.5. If you want to download and side-load the last working version (2.4.3) the easiest way to obtain the APK would be via a site such as apkpure.com. < warnings> insert usual risks w.r.t. side-loading apps here < /warnings> |
For info there's a bug in GitHub that makes it display the wrong version in the release page. Instead you need to go to the tags to see them: https://github.com/laurent22/joplin-android/tags |
To downgrade you can also use Aurora Store client and choose manual download with specified version code |
Maybe they've renamed or removed the permission in this SDK update. |
@laurent22 - This Stack Overflow post seems to have the necessary information, in case you haven't seen it yet. |
@laurent22 can you revert the SDK update until this is fixed? I’m also using Syncthing. |
same thing here android 11 (oxygenOS 11.1.1.1) no obvious changes happened on the android side |
Unfortunately no, because it's required by Google. We can't publish to the app store otherwise. |
Happening to me too. Removing and re-creating the locks directory has no effect. |
Anyone figure out what folder the "allow access to media only" gives? Maybe we could sync to there and syncthing would still be able to see it. |
Is only Android 11 and higher affected? Maybe it is related Storage updates in Android 11. Which API level does Joplin use on Android? |
I am on Android 11 and I also couldn't sync after updating to 2.6.2 version. But I got a different error which I reported here #5673? My storage location is inside Documents folder which is part of shared storage under Android 11 and maybe that's why the error is somewhat different? |
Seems to be an android 11 issue, as upgrading from 2.4.3 to 2.6.3 results in the same issue on a Moto G Power Android 11 device. Downgrading back to 2.4.3 fixes the issue regarding filesystem sync with arbitrary folders in android. |
I can confirm this issue is also on android 12 (using filesystem sync target with Syncthing on a pixel 5). Downgrading to 2.4.3 resolves the issue. Just need to fiddle to stop the play store from upgrading it till the issue is resolved. @laurent22 I'm curious if you have identified root cause and have a plan to resolve. Or a proposed workaround (e.g., should I be thinking about migrating to a different sync strategy, though I love the Joplin/Syncthing combo!) |
I mentioned some possible causes in my issue #5810. It boils down to Media access is insufficient, Joplin needs full system access to be able to work properly. I think it's a matter of changing the permission requested, and I do think it has something to do with the new android storage APIs, but I don't have much experience on android development. I think Joplin + Syncthing is very common (I use it too), and I feel like it would be ideal to make an effort to keep that. The easy solution to this is likely to figure out what we need to change to request the proper permission. |
Indeed. Even more so since the Joplin cloud-based sync solutions are too unstable to be usable (for me, according to my personal experience with Dropbox and then OneDrive syncing. YMMV) |
Device on android 11, and using Syncthing. Downloaded 2.4.3 from apkpure.com and side loaded. Sync working again. |
As mentioned by @Riolku in #5810, a similar issue (#4122) occurred a year ago. It has been solved in PR #4134. This pull request set the flag |
Instead of downloading from a third-party APK site, it would probably be more advisable to use the official repo specifically made for that purpose. 😊 Version 2.4.3 can be found here: https://github.com/laurent22/joplin-android/releases/tag/android-v2.4.3 |
I can also confirm this worked for me as a workaround to allow Joplin to access |
I also confirm working synchronization after applying the workaround on android 11. |
It should be on the wiki for now. |
It should be fixed ;-) |
The adb hack works for me as well. Hopefully the app gets updated soon to request "all files access." |
Hi, I did the adb hack, but now I get the next error message when I would like to sync:
Any idea? I sync my notes with another app into MegaSync, and it works perfectly. Oppo Reno 5 5G |
What Android version is this? |
12 :-) |
Can I not use the ADB normally now?
|
@AsimovGod Try this solution: #5779 (comment) |
In fact, version 2.5.5 can be used normally, but it is obviously lacking.It is mainly worried that it will be completely unavailable to update a few more versions. These methods are just expedient.Seeing the current situation, there is no complete solution plan. |
Using Android 11 + filesystem sync with syncthing. Still getting this error. Any plan for a solution? |
Do I also need to freeze my desctop app version until this issue is fixed? |
No, you can update the desktop app. The problem is only with android. |
I see this issue was recently closed. Does that mean we can all use the latest Android version now? |
Hi mate, it is commited to the dev branch, if you wont compile it your self and load it your self on your phone you would need to wait until it is merged and released (so expect it to take some time) :) |
In this vein, and not meaning to pressure anybody, I would anticipate that a majority of the userbase would welcome a horizon for this change to materialize in a non-beta, even a rough, tentative one, as it is kind of a show-stopper. Thanks Laurent and jd1378, as well all other contributors, for all your efforts: they're very much appreciated. |
Just gonna put in my two cents here, 99% sure this is a permission problem. Updating to the new permissions that came along with the new storage system, should "fix" the problem for now: https://developer.android.com/training/data-storage/manage-all-files |
Very much looking forward to this bugfix being released. I've been wondering for 6 months why Joplin was broken, thinking it had something to do with encryption of Syncthing. I'm glad there's a fix committed! |
It's still broken! See #6779 |
The solution seems to be to use Scoped Storage but the react-native-fs has not been updated to support it yet. There is an alternative library called react-native-file-access which supports it. I'm not sure of the work involved to move to this library though. |
Note that |
Locking as the last two comments (now deleted) were just rants. |
Update 20 Dec 2021: There's currently no solution to this problem. In the meantime you may downgrade to v2.5 by downloading the APK from the official repository:
https://github.com/laurent22/joplin-android/releases/download/android-v2.5.5/joplin-v2.5.5.apk
I use filesystem synchronization with path like
/storage/emulated/0/Sync/Data/Joplin
After 2.6.3 update i get this error:
Could it be related to app permissions? I can choose only 'Allow access to media only' option in permission manager.
The text was updated successfully, but these errors were encountered: