NC 30 cannot create notes on notes-app with new user

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 30.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • Debian 12
  • Web server and version (e.g, Apache 2.4.25):
    • Apache2
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • Nginx
  • PHP version (e.g, 8.3):
    • 8.2
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • After NC 30 was upgraded.
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

Pre-existing users have the notes folder, but new ones (not guest!) do not have.

Steps to replicate it (hint: details matter!):

  1. Create a new user
  2. Go to notes
  3. Create new note

Log entries

Nextcloud

NotPermittedException Could not create path "/<username>/files/Notes/New note.md"
Controller failed with OCP\Files\NotPermittedException 
Full stacktrace
[notes] Error: Controller failed with OCP\Files\NotPermittedException
	POST /index.php/apps/notes/notes
	from 192.168.0.33 by newuser at Jan 14, 2025, 9:26:09 AM

1. /var/www/nextcloud/apps/notes/lib/Service/NotesService.php - Line 128

OC\Files\Node\Folder->newFile()

2. /var/www/nextcloud/apps/notes/lib/Controller/NotesController.php - Line 161

OCA\Notes\Service\NotesService->create(
  "*** sensitive parameters replaced ***"
)

3. /var/www/nextcloud/apps/notes/lib/Service/Util.php - Line 26

OCA\Notes\Controller\NotesController->OCA\Notes\Controller\{closure}(
  "*** sensitive parameters replaced ***"
)

4. /var/www/nextcloud/apps/notes/lib/Controller/Helper.php - Line 140

OCA\Notes\Service\Util::retryIfLocked()

5. /var/www/nextcloud/apps/notes/lib/Controller/NotesController.php - Line 160

OCA\Notes\Controller\Helper->handleErrorResponse()

6. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - Line 208

OCA\Notes\Controller\NotesController->create(
  "*** sensitive parameters replaced ***"
)

7. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - Line 114

OC\AppFramework\Http\Dispatcher->executeController()

8. /var/www/nextcloud/lib/private/AppFramework/App.php - Line 161

OC\AppFramework\Http\Dispatcher->dispatch()

9. /var/www/nextcloud/lib/private/Route/Router.php - Line 302

OC\AppFramework\App::main()

10. /var/www/nextcloud/lib/base.php - Line 1003

OC\Route\Router->match()

11. /var/www/nextcloud/index.php - Line 24

OC::handleRequest()

Web Browser

Nothing relevant.

Web server / Reverse Proxy

Nothing relevant.

Configuration

Not relevant.

Apps

  • Notes app version: 4.11.0

Can you post the full log entry? We’re just guessing without the stack trace.

Thanks for pointing this out @jtr . I added the stacktrace collapsed in the description so the post is not gigantic.

1 Like

Anything special on your webserver setup?
Have you checked permissions for the user’s data folder?

Nothing special @rakekniven i have it for years. Data folder is recursively accessible to www-data, including this user. But the Notes folder does not exist for it.

Weird.

I tried to reproduce this and I cannot.

The Notes folder gets created several steps before where that exception is occurring. It should already exist at that point (or should generate its own error if creating it fails).

I see one bug report about the same thing (unless that’s you?).

Did this start specifically when bumping from an earlier v30 release to v30.0.4 or was this the first time you’d used Notes in a v30 environment?

Any interesting log entries just before this transaction if you bump you loglevel down a bit (i.e. 2->1) and reproduce?

What happens if you manually create a Notes folder in their account (via the Web UI not from the OS)?

@jtr I tried to put logging into INFO, but also did not appear any other log entry when I retried.

I noticed this was the only users without the files folder so I created it with www-data owner/group and tried again, same result. Only when I created the folder files/Notes for www-data it worked.

Also I found out this user was created before the upgrade to NC 30, so probably was created on 29. Also it has default quota of unlimited space.

How are / is this user testing if they don’t have a home directory yet?

Are you by chance using Impersonate?

No I am not using Impersonate, I was asking the user to test for me. The user uses mostly Cospend.

What happens when this user tries to do other Files related actions via the Web UI? i.e. make a directory in the root their home directory, upload a file, etc.

When the user tried to enter the web-UI and upload a file it all worked fine, and I noticed the folders (files_encryption, files_trashbin and files_versions) were then created also.

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