I can mount local external storage but can't read/write content

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • Nextcloud Hub 10 (31.0.9)
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 22.04.5 LTS
  • Web server and version (e.g, Apache 2.4.25):
    • replace me
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • replace me
  • PHP version (e.g, 8.3):
    • replace me
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • when adding second external storage
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • AIO
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

I think I am doing something gigantically wrong I can’t really see, please help :slight_smile:

At first I added a local external storage from a mounted disk, where I store the AIO borg backup and camera videos acquired via FTP, so far so good, no issues.

Then I wanted to add another disk with music, setup with the Nextcloud Music app.

Both external storage are marked :white_check_mark:

first local external storage works well

but the second one with music(a), can’t read or write the content (I am a member of Media Admin), below the error while creating a new folder and a file (see logs below, note that for folder creation there is no logged error)

In docker compose I mount the whole /media/ folder

      - NEXTCLOUD_MOUNT=/media/

I added full RWX recursive permissions to www-data to /media/musica but still no luck

current folder structure and permissions

/media/backup
drwxrwxrwx 1 root root 42 Sep 1 01:36 backup/

ls -l backup/
total 0
drwxrws— 1 www-data nextcloud-mount 40 Sep 10 21:01 ftpfiles
drwxr-xr-x 1 root root 8 Aug 20 12:49 nextcloud-aio

/media/musica
drwsrwsrwx 3 www-data www-data 4096 Oct 20 09:13 musica/

ls -l musica
total 4
drwxrwsrwx 22 www-data www-data 4096 Oct 20 09:13 playlist

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

{"reqId":"CfRGjtc4gg2v5YZZGLz2","level":3,"time":"2025-10-20T08:24:00+00:00","remoteAddr":"192.168.1.254","user":"user","app":"no app in context","method":"POST","url":"/ocs/v2.php/apps/files/api/v1/templates/create","message":"Could not create path \"/user/files/Musica/Nuovo documento.odt\"","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:144.0) Gecko/20100101 Firefox/144.0","version":"31.0.9.1","exception":{"Exception":"OCP\\Files\\NotPermittedException","Message":"Could not create path \"/user/files/Musica/Nuovo documento.odt\"","Code":0,"Trace":[{"file":"/var/www/html/lib/private/Files/Template/TemplateManager.php","line":174,"function":"newFile","class":"OC\\Files\\Node\\Folder","type":"->","args":["Nuovo documento.odt",null]},{"file":"/var/www/html/apps/files/lib/Controller/TemplateController.php","line":94,"function":"createFromTemplate","class":"OC\\Files\\Template\\TemplateManager","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":200,"function":"create","class":"OCA\\Files\\Controller\\TemplateController","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/lib/private/AppFramework/Http/Dispatcher.php","line":114,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\TemplateController"},"create"]},{"file":"/var/www/html/lib/private/AppFramework/App.php","line":161,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\TemplateController"},"create"]},{"file":"/var/www/html/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files\\Controller\\TemplateController","create",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"ocs.files.template.create"}]},{"file":"/var/www/html/ocs/v1.php","line":49,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/files/api/v1/templates/create"]},{"file":"/var/www/html/ocs/v2.php","line":7,"args":["/var/www/html/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/Node/Folder.php","Line":174,"message":"Could not create path \"/user/files/Musica/Nuovo documento.odt\"","exception":[],"CustomMessage":"Could not create path \"/user/files/Musica/Nuovo documento.odt\""},"id":"68f5f3fc0367c"}

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):


Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

I think I understood my mistake (problem solved now and it was my fault)

my best guess is that I was convinced to have removed the mastercontainer (as per documentation here) but I forgot to do it

so the fix was:

  1. docker compose down
  2. docker compose up -d
  3. remove the external storage configuration
  4. redo the external storage configuration

everything working as expected

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