Error create, delete or modify a note

Nextcloud version: 23.0.0.10
Operating system and version : Debian 10
Apache or nginx version: Apache
PHP version : 7.3

The issue you are facing:
We have issues with the note app. We cannot create, delete or modify a note

When a user switch to the Note tab following error appear

Error from Nextcloud server: Reading notes from filesystem has failed. (InvalidArgumentException)

When a user create a note following error appear

Creating new note has failed. HTTP 500 (OCP\Files\NotPermittedException)

When a user delete a note following error appear

Error during preparing note for deletion.

When a user edit a note following error appear

Error from Nextcloud server: InvalidArgumentException

Can anyone tell me how to fix the issue?
Many Thanks!!

Anyone an idea? We still have this issue.
Many thanks!

Please post full logs. Thanks.

{“reqId”:“mi1A5JkvIUX43K3kpg5A”,“level”:3,“time”:“February 22, 2022 10:41:53”,“remoteAddr”:“x.x.x.x”,“user”:“user1”,“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/notes/notes/44990",“message”:"$absolutePath must be relative to “files”, value is “%s”",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0”,“version”:“23.0.2.1”}
{“reqId”:“mi1A5JkvIUX43K3kpg5A”,“level”:3,“time”:“February 22, 2022 10:41:53”,“remoteAddr”:“x.x.x.x”,“user”:“user1”,“app”:“notes”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/notes/notes/44990",“message”:“Could not generate Content Etag for note 44990”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0”,“version”:“23.0.2.1”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:"$absolutePath must be relative to “files”",“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:1970,“function”:“getPathRelativeToFiles”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:2083,“function”:“lockPath”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:1151,“function”:“lockFile”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:601,“function”:“basicOperation”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/Node/File.php",“line”:56,“function”:“file_get_contents”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Note.php",“line”:43,“function”:“getContent”,“class”:“OC\Files\Node\File”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:168,“function”:“getContent”,“class”:“OCA\Notes\Service\Note”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Util.php",“line”:28,“function”:“OCA\Notes\Service\{closure}”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:169,“function”:“retryIfLocked”,“class”:“OCA\Notes\Service\Util”,“type”:"::"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:150,“function”:“generateContentEtag”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:103,“function”:“updateIfNeeded”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/NotesService.php",“line”:55,“function”:“update”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/NotesController.php",“line”:136,“function”:“get”,“class”:“OCA\Notes\Service\NotesService”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Util.php",“line”:28,“function”:“OCA\Notes\Controller\{closure}”,“class”:“OCA\Notes\Controller\NotesController”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php",“line”:145,“function”:“retryIfLocked”,“class”:“OCA\Notes\Service\Util”,“type”:"::"},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/NotesController.php",“line”:150,“function”:“handleErrorResponse”,“class”:“OCA\Notes\Controller\Helper”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“get”,“class”:“OCA\Notes\Controller\NotesController”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:157,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“file”:"/var/www/nextcloud/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/nextcloud/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/nextcloud/lib/private/Files/View.php",“Line”:2157,“CustomMessage”:“Could not generate Content Etag for note 44990”}}
{“reqId”:“mi1A5JkvIUX43K3kpg5A”,“level”:3,“time”:“February 22, 2022 10:41:53”,“remoteAddr”:“x.x.x.x”,“user”:“user1”,“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/notes/notes/44990",“message”:"$absolutePath must be relative to “files”, value is “%s”",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0”,“version”:“23.0.2.1”}
{“reqId”:“mi1A5JkvIUX43K3kpg5A”,“level”:3,“time”:“February 22, 2022 10:41:53”,“remoteAddr”:“x.x.x.x”,“user”:“user1”,“app”:“notes”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/notes/notes/44990",“message”:“Could not generate Content Etag for note 44990”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0”,“version”:“23.0.2.1”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:"$absolutePath must be relative to “files”",“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:1970,“function”:“getPathRelativeToFiles”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:2083,“function”:“lockPath”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:1151,“function”:“lockFile”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:601,“function”:“basicOperation”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/Node/File.php",“line”:56,“function”:“file_get_contents”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Note.php",“line”:43,“function”:“getContent”,“class”:“OC\Files\Node\File”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:168,“function”:“getContent”,“class”:“OCA\Notes\Service\Note”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Util.php",“line”:28,“function”:“OCA\Notes\Service\{closure}”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->",“args”:["
sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:169,“function”:“retryIfLocked”,“class”:“OCA\Notes\Service\Util”,“type”:"::"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:150,“function”:“generateContentEtag”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/MetaService.php",“line”:103,“function”:“updateIfNeeded”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php",“line”:65,“function”:“update”,“class”:“OCA\Notes\Service\MetaService”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/NotesController.php",“line”:146,“function”:“getNoteData”,“class”:“OCA\Notes\Controller\Helper”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Util.php",“line”:28,“function”:“OCA\Notes\Controller\{closure}”,“class”:“OCA\Notes\Controller\NotesController”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php",“line”:145,“function”:“retryIfLocked”,“class”:“OCA\Notes\Service\Util”,“type”:"::"},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/NotesController.php",“line”:150,“function”:“handleErrorResponse”,“class”:“OCA\Notes\Controller\Helper”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“get”,“class”:“OCA\Notes\Controller\NotesController”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:157,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“file”:"/var/www/nextcloud/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/nextcloud/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/nextcloud/lib/private/Files/View.php",“Line”:2157,“CustomMessage”:“Could not generate Content Etag for note 44990”}}
{“reqId”:“mi1A5JkvIUX43K3kpg5A”,“level”:3,“time”:“February 22, 2022 10:41:53”,“remoteAddr”:“x.x.x.x”,“user”:“user1”,“app”:“no app in context”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/notes/notes/44990",“message”:"$absolutePath must be relative to “files”, value is “%s”",“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0”,“version”:“23.0.2.1”}
{“reqId”:“mi1A5JkvIUX43K3kpg5A”,“level”:3,“time”:“February 22, 2022 10:41:53”,“remoteAddr”:“x.x.x.x”,“user”:“user1”,“app”:“notes”,“method”:“GET”,“url”:"/nextcloud/index.php/apps/notes/notes/44990",“message”:“Could not read content for file: /user1/files/Notes/test.txt”,“userAgent”:“Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0”,“version”:“23.0.2.1”,“exception”:{“Exception”:“InvalidArgumentException”,“Message”:"$absolutePath must be relative to “files”",“Code”:0,“Trace”:[{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:1970,“function”:“getPathRelativeToFiles”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:2083,“function”:“lockPath”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:1151,“function”:“lockFile”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/View.php",“line”:601,“function”:“basicOperation”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Files/Node/File.php",“line”:56,“function”:“file_get_contents”,“class”:“OC\Files\View”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Note.php",“line”:43,“function”:“getContent”,“class”:“OC\Files\Node\File”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Note.php",“line”:114,“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/NotesController.php",“line”:146,“function”:“getNoteData”,“class”:“OCA\Notes\Controller\Helper”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/notes/lib/Service/Util.php",“line”:28,“function”:“OCA\Notes\Controller\{closure}”,“class”:“OCA\Notes\Controller\NotesController”,“type”:"->",“args”:["
sensitive parameters replaced ***"]},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/Helper.php",“line”:145,“function”:“retryIfLocked”,“class”:“OCA\Notes\Service\Util”,“type”:"::"},{“file”:"/var/www/nextcloud/apps/notes/lib/Controller/NotesController.php",“line”:150,“function”:“handleErrorResponse”,“class”:“OCA\Notes\Controller\Helper”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:217,“function”:“get”,“class”:“OCA\Notes\Controller\NotesController”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:126,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:157,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:302,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“file”:"/var/www/nextcloud/lib/base.php",“line”:1006,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/nextcloud/index.php",“line”:36,“function”:“handleRequest”,“class”:“OC”,“type”:"::"}],“File”:"/var/www/nextcloud/lib/private/Files/View.php",“Line”:2157,“CustomMessage”:“Could not read content for file: /user1/files/Notes/test.txt”}}

Any help or idea?
We cannot use the note app.
Many thanks!