Android 11 Error: Could not upgrade

Android 11
Joplin from 2.3.4 to 2.6.3
Sync target is filesystem

Date,Level,Message
12-04T15:52:54,30,"RevisionService: ""RevisionService::maintenance: Done in 298ms""
12-04T15:52:54,30,"RevisionService: ""RevisionService::collectRevisions: Created revisions for 0 notes""
12-04T15:52:54,30,"RevisionService: ""RevisionService::maintenance: Service is enabled""
12-04T15:52:54,30,"RevisionService: ""RevisionService::maintenance: Starting...""
12-04T15:52:21,30,"RevisionService: ""RevisionService::maintenance: Done in 146ms""
12-04T15:52:21,30,"RevisionService: ""RevisionService::collectRevisions: Created revisions for 0 notes""
12-04T15:52:21,30,"RevisionService: ""RevisionService::maintenance: Starting...""
12-04T15:52:21,30,"RevisionService: ""RevisionService::maintenance: Service is enabled""
12-04T15:51:48,30,"RevisionService: ""RevisionService::maintenance: Done in 149ms""
12-04T15:51:48,30,"RevisionService: ""RevisionService::collectRevisions: Created revisions for 0 notes""
12-04T15:51:48,30,"RevisionService: ""RevisionService::maintenance: Starting...""
12-04T15:51:48,30,"RevisionService: ""RevisionService::maintenance: Service is enabled""
12-04T15:51:34,30,"""DecryptionWorker: cannot start because no master key is currently loaded.""
12-04T15:51:33,20,"Synchronizer: ""There was some errors:""
12-04T15:51:33,20,"Synchronizer: ""Error: Could not upgrade from version 0 to version 1: Error: File '/storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt' does not exist and could not be created, or it is a directory. Path: /storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt
Code: ENOENT
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
12-04T15:51:33,30,"Synchronizer: ""Total folders: 37""
12-04T15:51:33,30,"Synchronizer: ""Total notes: 121""
12-04T15:51:33,30,"Synchronizer: ""Total resources: 36""
12-04T15:51:33,30,"Synchronizer: ""Operations completed: ""
12-04T15:51:33,30,"Synchronizer: ""Sync: finished: Synchronisation finished [1638661892517]""
12-04T15:51:33,10,"Synchronizer: ""Error: Could not upgrade from version 0 to version 1: Error: File '/storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt' does not exist and could not be created, or it is a directory. Path: /storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt
Code: ENOENT
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
12-04T15:51:33,30,"""MigrationHandler: Releasing exclusive lock""
12-04T15:51:33,30,"""MigrationHandler: Migrating from version 0 to version 1""
12-04T15:51:33,30,"""MigrationHandler: Acquired exclusive lock:", "{"id":null,"type":2,"clientType":2,"clientId":"fc2abd38386645daa71da1d6f37e0a9e","updatedTime":1638661892000}""
12-04T15:51:32,30,"""MigrationHandler: Acquiring exclusive lock""
12-04T15:51:32,30,"""MigrationHandler: Sync target version is 0 or 1 - creating "locks" and "temp" directory:", "{"version":0}""
12-04T15:51:32,30,"Synchronizer: ""Sync target remote info:", "{"version_":0,"masterKeys_":[],"e2ee_":{"value":false,"updatedTime":0},"activeMasterKeyId_":{"value":"","updatedTime":0},"ppk_":{"value":null,"updatedTime":0}}""
12-04T15:51:32,30,"Synchronizer: ""Sync target is new - setting it up...""
12-04T15:51:32,30,"""ResourceService::indexNoteResources: Completed""
12-04T15:51:32,30,"Synchronizer: ""Indexing resources...""
12-04T15:51:32,30,"""ResourceService::indexNoteResources: Start""
12-04T15:51:32,30,"Synchronizer: ""Sync: starting: Starting synchronisation to target 2... supportsAccurateTimestamp = false; supportsMultiPut = false [1638661892517]""
12-04T15:51:32,30,"""Starting scheduled sync""
12-04T15:51:32,30,"""Preparing scheduled sync""
12-04T15:51:20,30,"""DecryptionWorker: cannot start because no master key is currently loaded.""
12-04T15:51:19,20,"Synchronizer: ""There was some errors:""
12-04T15:51:19,20,"Synchronizer: ""Error: Could not upgrade from version 0 to version 1: Error: File '/storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt' does not exist and could not be created, or it is a directory. Path: /storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt
Code: ENOENT
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
12-04T15:51:19,30,"Synchronizer: ""Total resources: 36""
12-04T15:51:19,30,"Synchronizer: ""Total notes: 121""
12-04T15:51:19,30,"Synchronizer: ""Total folders: 37""
12-04T15:51:18,30,"Synchronizer: ""Operations completed: ""
12-04T15:51:18,30,"Synchronizer: ""Sync: finished: Synchronisation finished [1638661877253]""
12-04T15:51:18,10,"Synchronizer: ""Error: Could not upgrade from version 0 to version 1: Error: File '/storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt' does not exist and could not be created, or it is a directory. Path: /storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt
Code: ENOENT
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
12-04T15:51:18,30,"""MigrationHandler: Releasing exclusive lock""
12-04T15:51:18,30,"""MigrationHandler: Migrating from version 0 to version 1""
12-04T15:51:18,30,"""MigrationHandler: Acquired exclusive lock:", "{"id":null,"type":2,"clientType":2,"clientId":"fc2abd38386645daa71da1d6f37e0a9e","updatedTime":1638661878000}""
12-04T15:51:18,30,"""MigrationHandler: Acquiring exclusive lock""
12-04T15:51:18,30,"""MigrationHandler: Sync target version is 0 or 1 - creating "locks" and "temp" directory:", "{"version":0}""
12-04T15:51:18,30,"Synchronizer: ""Sync target is new - setting it up...""
12-04T15:51:18,30,"Synchronizer: ""Sync target remote info:", "{"version_":0,"masterKeys_":[],"e2ee_":{"value":false,"updatedTime":0},"activeMasterKeyId_":{"value":"","updatedTime":0},"ppk_":{"value":null,"updatedTime":0}}""
12-04T15:51:17,30,"RevisionService: ""RevisionService::maintenance: Done in 158ms""
12-04T15:51:17,30,"""ResourceService::deleteOrphanResources:", "[]""
12-04T15:51:17,30,"RevisionService: ""RevisionService::collectRevisions: Created revisions for 0 notes""
12-04T15:51:17,30,"""ResourceService::indexNoteResources: Completed""
12-04T15:51:17,30,"""ResourceService::indexNoteResources: Already indexing - waiting for it to finish""
12-04T15:51:17,30,"""ResourceService::indexNoteResources: Start""
12-04T15:51:17,30,"Synchronizer: ""Indexing resources...""
12-04T15:51:17,30,"Synchronizer: ""Sync: starting: Starting synchronisation to target 2... supportsAccurateTimestamp = false; supportsMultiPut = false [1638661877253]""
12-04T15:51:17,30,"RevisionService: ""RevisionService::maintenance: Service is enabled""
12-04T15:51:17,30,"RevisionService: ""RevisionService::maintenance: Starting...""
12-04T15:51:17,30,"""ResourceService::indexNoteResources: Start""
12-04T15:51:17,30,"""Starting scheduled sync""
12-04T15:51:17,30,"""Preparing scheduled sync""
12-04T15:51:10,30,"""DecryptionWorker: cannot start because no master key is currently loaded.""
12-04T15:51:09,20,"Synchronizer: ""There was some errors:""
12-04T15:51:09,20,"Synchronizer: ""Error: Could not upgrade from version 0 to version 1: Error: File '/storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt' does not exist and could not be created, or it is a directory. Path: /storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt
Code: ENOENT
value@index.android.bundle:1029:275
index.android.bundle:1029:4056
p@index.android.bundle:82:588
index.android.bundle:82:1893
p@index.android.bundle:82:588
o@index.android.bundle:82:1069
index.android.bundle:82:1241
u@index.android.bundle:76:157
index.android.bundle:76:866
index.android.bundle:84:1672
k@index.android.bundle:84:500
w@index.android.bundle:84:898
callReactNativeMicrotasks@index.android.bundle:84:3054
value@index.android.bundle:37:2868
index.android.bundle:37:960
value@index.android.bundle:37:2504
value@index.android.bundle:37:919
value@[native code]
value@[native code]""
12-04T15:51:09,30,"Synchronizer: ""Total folders: 37""
12-04T15:51:09,30,"Synchronizer: ""Total notes: 121""
12-04T15:51:09,30,"Synchronizer: ""Total resources: 36""
12-04T15:51:09,30,"Synchronizer: ""Operations completed: ""
12-04T15:51:09,30,"Synchronizer: ""Sync: finished: Synchronisation finished [1638661868635]""
12-04T15:51:09,10,"Synchronizer: ""Error: Could not upgrade from version 0 to version 1: Error: File '/storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt' does not exist and could not be created, or it is a directory. Path: /storage/emulated/0/Documents/Joplin_Notes/.sync/version.txt
Code: ENOENT

There is a known issue that is yet to be resolved involving 2.6.3 and Android filesystem syncing, see github for more info:

Currently the only fix is to downgrade to a previously working version.

1 Like

Thanks for the information. Did not know that it was a bug. Thought I broke it, lol.

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