# Bugreport Android App Syncronization Local Storage

**URL:** <https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451>\
**Category:** Support\
**Created:** [19 September 2022 23:12 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451 "2022-09-19T23:12:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [19 September 2022 23:12 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/1 "2022-09-19T23:12:21Z")

</div>

Hi all!  
I installed Joplin Desktop and imported lots of notes and encrypted them with a strong password. I used local storage to save the files and saved them to my Google Drive.  
On my phone I synced the folders (used an app to download the Joplin Folder from my Google Drive).  
But the problem is, that the app seems not to be able to open the files that were synced:

Last error: Error: Could not upgrade from version 0 to 1: Error: File '/storage/emulated/0/Documents/Joplin/.sync/version.txt' does not exist and could not be created, or is a directory. Path: '/storage/emulated/0/Documents/Joplin/.sync/version.txt'

Now from file manager I can see that file. And when I rename it, the Error message actually changes:  
Last error: Error: Could not upgrade from version 0 to 1: Error: File '/storage/emulated/0/Documents/Joplin/info.json' does not exist and could not be created, or is a directory. Path: '/storage/emulated/0/Documents/Joplin/info.json'

If I delete this file too, the next error message points me to this forum and points to .sync/readme.txt

If I delete readme.txt too, then the syncronization "is successful" but no notebooks are loaded.  
Any ideas what could be the issue and how to handle it?

---

<div class="post-metadata">

**Author:** ![Daeraxa](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/daeraxa/32/6172_2.png) [@Daeraxa](https://discourse.joplinapp.org/u/Daeraxa)\
**Post date:** [20 September 2022 00:06 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/2 "2022-09-20T00:06:26Z")

</div>

I assume you are using the filesync sync target, what version of the app are you using? The current release still has an issue with file system sync which has been fixed in the pre-release: [Android pre-release 2.9 is now available (Updated 1 September)](https://discourse.joplinapp.org/t/android-pre-release-2-9-is-now-available-updated-1-september/26859)

---

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [20 September 2022 00:35 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/3 "2022-09-20T00:35:35Z")

</div>

Thanks for the quick response, that should do the trick!  
However, in the meantime I switched to using Dropbox as I had some free credit left there anyways..

---

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [24 September 2022 17:54 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/4 "2022-09-24T17:54:31Z")

</div>

I tried version 2.9.2 and unfortunately I have to report it doesn't work either.  
I wanted to attach the error log as text, but i can't select it as text and the error logs are stored to a protected location which i can't access on my unrooted device. So here are some screenshots with logs and proof i was using v 2.9.2.  
Update: i can only upload 1 item

 ![Screenshot_20220924-185004_Joplin](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/2/2ead7eec733181aa878f95cccd291759e848e511.jpeg)

---

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [24 September 2022 17:55 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/5 "2022-09-24T17:55:25Z")

</div>

Here my second screen

 ![Screenshot_20220924-185022_Joplin](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/a/a125ba6dd71d41f5640d4d1e5498ec16112ee478.jpeg)

---

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [24 September 2022 17:56 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/6 "2022-09-24T17:56:19Z")

</div>

And finally the third

 ![Screenshot_20220924-185044_Joplin](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/a/a4f963d44028a5d1d5a9257d6bc6d360da121d2b.jpeg)

---

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [24 September 2022 18:14 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/7 "2022-09-24T18:14:23Z")

</div>

I managed to get the debug text.  
I noticed however that despite app info tells me its version 2.9.2, the log refers to 2.8.1  
[joplin debug report.txt](https://discourse.joplinapp.org/uploads/short-url/eXYdweO0QruBqSq0MMSQ6YNPTgX.txt) (80.9 KB)

---

<div class="post-metadata">

**Author:** ![wh201906](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/wh201906/32/14835_2.png) [@wh201906](https://discourse.joplinapp.org/u/wh201906)\
**Post date:** [25 September 2022 07:47 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/8 "2022-09-25T07:47:40Z")

</div>

Does Joplin has the permission to read/write on the storage?

---

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [25 September 2022 11:40 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/9 "2022-09-25T11:40:21Z")

</div>

Yes it does

 ![Screenshot_20220925-123911_Permission controller](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/2X/9/93cf4b83b5cce5c8733bb5f3d96a50ac28fb4bc4.jpeg)

---

<div class="post-metadata">

**Author:** ![wh201906](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/wh201906/32/14835_2.png) [@wh201906](https://discourse.joplinapp.org/u/wh201906)\
**Post date:** [26 September 2022 02:05 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/10 "2022-09-26T02:05:10Z")

</div>

This bug has been fixed, but the release is not published.

> <https://github.com/laurent22/joplin/pull/6789>
>
> Fixes #6779
> 
> It seems I had missed the retry part of \`copy\` function inside \`f…s-driver-rn.ts\`, which were causing it to not return the proper error.
> 
> I also made sure its possible to copy files between scoped storage style and normal path style, but the functionality is limited to where the app has permission, which I assume it will work fine with joplin's use case. I tested adding a picture and syncing to make sure it works.
> 
> what concerns me more, is that the files still remain in the synced folder, even after the notes are deleted and synced. is this intended?

---

<div class="post-metadata">

**Author:** ![wh201906](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/wh201906/32/14835_2.png) [@wh201906](https://discourse.joplinapp.org/u/wh201906)\
**Post date:** [27 September 2022 07:55 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/11 "2022-09-27T07:55:20Z")

</div>

> [@JoelGotsch](#):
>
> I noticed however that despite app info tells me its version 2.9.2, the log refers to 2.8.1

the lines with `v2.8.1` were created when you are using the v2.8.1 app. You can see `Starting application net.cozic.joplin-mobile v2.9.2 (prod)` in the new lines.

---

<div class="post-metadata">

**Author:** ![JoelGotsch](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/joelgotsch/32/14988_2.png) [@JoelGotsch](https://discourse.joplinapp.org/u/JoelGotsch)\
**Post date:** [2 October 2022 11:17 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/12 "2022-10-02T11:17:49Z")

</div>

Thank you, your suggestion led me to the solution even im the current dev version (2.9.2)  
Although it was not as straightforward as one might think.  
I copied the files to the media folder, and when changing the sync folder i got into the directory selection menu. Choosing a directory there changed the the format of the directory address.  
After noticing that I changed back to the original directory as this is the one where the files are synced.  
The adress now is  
content://com.android.externalstorage.documents/tree/primary:Documents /Joplin

It still needed multiple tries of manually syncing afterwards, but this seems to be related to another issue. I will open a new bug for that when i have a spare 20 minutes.  
Thank you so much for your efforts, wh201906!  
Best,  
Joel

---

<div class="post-metadata">

**Author:** ![wh201906](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/wh201906/32/14835_2.png) [@wh201906](https://discourse.joplinapp.org/u/wh201906)\
**Post date:** [2 October 2022 14:33 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/13 "2022-10-02T14:33:57Z")

</div>

You're welcome

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/1/c/1c948e33314e232a0927789508474d8624f4270b.png) [@system](https://discourse.joplinapp.org/u/system)\
**Post date:** [1 November 2022 14:34 UTC](https://discourse.joplinapp.org/t/bugreport-android-app-syncronization-local-storage/27451/14 "2022-11-01T14:34:41Z")

</div>

Closed on 1 November 2022 14:34 UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
