App v4.5.0 Crash at opening. Unable to use it
This issue respects the following points:
- [x] I have read the FAQ
- [x] I have searched for existing issues
- [x] The issue affects the Notes Android app, neither the Notes server app nor the Nextcloud Android app.
Describe the bug
I am using a Fairphone FP2 under LineageOs 18.1 (Android 11)
- Install Nextcloud Note version 4.4.2 from f-droid
- update to version 4.5.0
- open the app
- The app crash (close)
Expected behavior
The app should just open
Notes Android version
4.5.0
Notes server version
4.12.3
Nextcloud Android version
3.34.0 RC2
Nextcloud version
Nextcloud Hub 10 (31.0.9)
Device
Fairphone FP2
Android Version
11 (LineageOs 18.1)
App Store
- [ ] Google Play Store
- [x] F-Droid
- [ ] Huawei App Gallery
Stacktrace
I have seen no error message. the app just shut down
same here with Fairphone FP3 and Samsung S6 lite tablet, same app version. App sync fails. Crash upon clicking 'more' of sync error notification, no further information displayed, immediately automatic app shutdown.
Sorry, just added to the issue on top, didn't see (neither expected) the multiple other open issues describing the same problem and some solutions already...
Similar here on two different GOS Pixels vs. Nextcloud Hub 10 (31.0.5 w/ nginx) .
#1 App complains something like "cannot sync" but actually does sync both ways.
#2 New notes get created multiple times (4...6x)
Deleting mobile cache and storage, re-installing 4.5.0 did not change behaviour, but downgrading to 4.4.2 (FDroid) immediately solved any problems.
Unfortunately no mobile log saved before downgrading.
Server logs multiple of 2 kinds of errors, "NoteDoesNotExist" and "LockedException". Samples:
-
- NoteDoesNotExist
-
-
- [notes] Error: Could not read content for file: /felix/files/Notizen/Inet/Suchmaschinen.txt GET /index.php/apps/notes/api/v1/notes/129093? from 93.205.100.142 by felix at Oct 1, 2025, 7:03:50 PM
-
-
-
-
{"reqId":"Qki5J8oQKzlI6GOCVOz1","level":3,"time":"2025-10-01T19:03:50+02:00","remoteAddr":"93.205.100.142","user":"felix","app":"notes","method":"GET","url":"/index.php/apps/notes/api/v1/notes/129093?","message":"Could not read content for file: /felix/files/Notizen/Inet/Suchmaschinen.txt","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.34.0 RC2","version":"31.0.5.1","exception":{"Exception":"OCP\Lock\LockedException","Message":""/" is locked, existing lock on file: none","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2165,"function":"lockPath","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1190,"function":"lockFile","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":554,"function":"basicOperation","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":33,"function":"file_get_contents","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Note.php","line":46,"function":"getContent","class":"OC\Files\Node\File","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Note.php","line":120,"function":"getContent","class":"OCA\Notes\Service\Note","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":67,"function":"getData","class":"OCA\Notes\Service\Note","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":98,"function":"getNoteData","class":"OCA\Notes\Controller\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Util.php","line":31,"function":"OCA\Notes\Controller\{closure}","class":"OCA\Notes\Controller\NotesApiController","type":"->","args":["*** sensitive parameters replaced "]},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":146,"function":"retryIfLocked","class":"OCA\Notes\Service\Util","type":"::"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":95,"function":"handleErrorResponse","class":"OCA\Notes\Controller\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"get","class":"OCA\Notes\Controller\NotesApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1040,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/View.php","Line":2064,"Previous":{"Exception":"OCP\Lock\LockedException","Message":""files/dd415b031ce9c584db57011a8428d68b" is locked, existing lock on file: none","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"acquireLock","class":"OC\Files\Storage\Common","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2056,"function":"acquireLock","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2165,"function":"lockPath","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1190,"function":"lockFile","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":554,"function":"basicOperation","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":33,"function":"file_get_contents","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Note.php","line":46,"function":"getContent","class":"OC\Files\Node\File","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Note.php","line":120,"function":"getContent","class":"OCA\Notes\Service\Note","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":67,"function":"getData","class":"OCA\Notes\Service\Note","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":98,"function":"getNoteData","class":"OCA\Notes\Controller\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Util.php","line":31,"function":"OCA\Notes\Controller\{closure}","class":"OCA\Notes\Controller\NotesApiController","type":"->","args":[" sensitive parameters replaced "]},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":146,"function":"retryIfLocked","class":"OCA\Notes\Service\Util","type":"::"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":95,"function":"handleErrorResponse","class":"OCA\Notes\Controller\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"get","class":"OCA\Notes\Controller\NotesApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1040,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Files/Storage/Common.php","Line":642,"Previous":{"Exception":"OCP\Lock\LockedException","Message":""files/dd415b031ce9c584db57011a8428d68b"("local::/var/nextcloud_data/::") is locked, existing lock on file: none","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Files/Storage/Common.php","line":640,"function":"acquireLock","class":"OC\Lock\MemcacheLockingProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":298,"function":"acquireLock","class":"OC\Files\Storage\Common","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2056,"function":"acquireLock","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":2165,"function":"lockPath","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1190,"function":"lockFile","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":554,"function":"basicOperation","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Node/File.php","line":33,"function":"file_get_contents","class":"OC\Files\View","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Note.php","line":46,"function":"getContent","class":"OC\Files\Node\File","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Note.php","line":120,"function":"getContent","class":"OCA\Notes\Service\Note","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":67,"function":"getData","class":"OCA\Notes\Service\Note","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":98,"function":"getNoteData","class":"OCA\Notes\Controller\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Util.php","line":31,"function":"OCA\Notes\Controller\{closure}","class":"OCA\Notes\Controller\NotesApiController","type":"->","args":[" sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":146,"function":"retryIfLocked","class":"OCA\Notes\Service\Util","type":"::"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":95,"function":"handleErrorResponse","class":"OCA\Notes\Controller\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"get","class":"OCA\Notes\Controller\NotesApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1040,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/Lock/MemcacheLockingProvider.php","Line":69}},"message":"Could not read content for file: /felix/files/Notizen/Inet/Suchmaschinen.txt","exception":[],"CustomMessage":"Could not read content for file: /felix/files/Notizen/Inet/Suchmaschinen.txt"},"id":"68dd5f59c9cb2"}
-
-
-
- LockedException
-
-
- [notes] Error: Controller failed with OCA\Notes\Service\NoteDoesNotExistException DELETE /index.php/apps/notes/api/v1/notes/143747? from 80.187.75.150 by felix at Oct 1, 2025, 5:59:28 PM
-
-
-
-
{"reqId":"S6OfDet79O1mjxMvNOsl","level":3,"time":"2025-10-01T17:59:28+02:00","remoteAddr":"80.187.75.150","user":"felix","app":"notes","method":"DELETE","url":"/index.php/apps/notes/api/v1/notes/143747?","message":"Controller failed with OCA\Notes\Service\NoteDoesNotExistException","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.34.0 RC2","version":"31.0.5.1","exception":{"Exception":"OCA\Notes\Service\NoteDoesNotExistException","Message":"","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/notes/lib/Service/NotesService.php","line":149,"function":"getFileById","class":"OCA\Notes\Service\NotesService","type":"::"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":226,"function":"delete","class":"OCA\Notes\Service\NotesService","type":"->"},{"file":"/var/www/nextcloud/apps/notes/lib/Service/Util.php","line":31,"function":"OCA\Notes\Controller\{closure}","class":"OCA\Notes\Controller\NotesApiController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php","line":146,"function":"retryIfLocked","class":"OCA\Notes\Service\Util","type":"::"},{"file":"/var/www/nextcloud/apps/notes/lib/Controller/NotesApiController.php","line":225,"function":"handleErrorResponse","class":"OCA\Notes\Controller\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"destroy","class":"OCA\Notes\Controller\NotesApiController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":307,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1040,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/notes/lib/Service/NotesService.php","Line":216,"message":"Controller failed with OCA\Notes\Service\NoteDoesNotExistException","exception":[],"CustomMessage":"Controller failed with OCA\Notes\Service\NoteDoesNotExistException"},"id":"68dd5f63c6fe3"}
-
-
maybe a duplicate of #2848 or #2849 ?
Correct me if im wrong, but this is a startup crash vs a sync error and crash when viewing the error.
I'm seeing the latter two issues but I'm still able to open the app without crashing.
It crashes no matter what, uninstalling and installing the app, clearing the cache, clearing storage, uninstall and reboot phone then installing again, nothing.
It crashes at sync it crash at opening the logs it just crash, my Note is updated, and my instance is Nextcloud Hub 10 (31.0.8) and I have no clue what else to try.
Working solution, for the time being, as others pointed out: Deinstall, then install version 4.4.2 (via F-Droid).
And if I do not have F-Droid? But google play only?