Help with External Storage on a HDD

Nextcloud version (eg, 20.0.5): 27.0.0
Operating system and version (eg, Ubuntu 20.04): rasbian64bit
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): replace me

The issue you are facing:

I setup a Nextcloud server on top of OMV but the OMV shared folder wasn’t added to my Nextcloud server. So I deleted OMV and added my HDD as a simple drive. I have added it, but every action I try to perform says forbidden. I don’t know what to do. Please help me. I have been attempting some chown thing and followed a few other posts about similar issues.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Try to use external storage
  2. Add your HDD
  3. Get forbidden message

The output of your Nextcloud log in Admin > Logging:

/var/www/html/lib/private/Files/Template/TemplateManager.php - line 162:

OC\Files\Node\Folder->newFile("New text file.md")

/var/www/html/apps/files/lib/Controller/TemplateController.php - line 57:

OC\Files\Template\TemplateManager->createFromTemplate("*** sensiti ... *")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 230:

OCA\Files\Controller\TemplateController->create("*** sensiti ... *")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 137:

OC\AppFramework\Http\Dispatcher->executeController([ "OCA\\File ... "], "create")

/var/www/html/lib/private/AppFramework/App.php - line 183:

OC\AppFramework\Http\Dispatcher->dispatch([ "OCA\\File ... "], "create")

/var/www/html/lib/private/Route/Router.php - line 315:

OC\AppFramework\App::main("OCA\\Files\ ... r", "create", [ "OC\\AppFr ... "], [ "ocs.files.Template.create"])

/var/www/html/ocs/v1.php - line 64:

OC\Route\Router->match("/ocsapp/app ... e")

/var/www/html/ocs/v2.php - line 23:

require_once("/var/www/html/ocs/v1.php")```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

PASTE HERE


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

PASTE HERE


PASTE HERE

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

  1. How, precisely, did you add your HDD to your Pi?
  2. Are you referring to “External Storage” as NC defines it (i.e. you logged into the NC web interface and added a “Local” External Storage mount?
  3. Where is your datadirectory?