Nextcloud version (eg, 20.0.5): Not sure…
Operating system and version (eg, Ubuntu 20.04): DietPi 7.7.3
Apache or nginx version (eg, Apache 2.4.25): Where do I find this?
PHP version (eg, 7.4): 7.4
The issue you are facing:
If I want to upload a data to my exteral hard drive (USB) there comes the error “Forbidden”.
No problem if I upload it on the SD Card…
Is this the first time you’ve seen this error? (Y/N):
N
Tried it on exFat and ext4
Steps to replicate it:
- Install Dietpi on RaspberryPi 2b and run it
- Add HDD, mount it to
/mnt/cloud
- Open nextcloud WebUi via RPi’s IP
- Add the
External Storage
app in nextcloud WebUi - Create folder on your RPi via
1.cd /mnt/cloud
2.mkdir user1
- Add local storage to a user in “external storage” admin settings to a user
- Try to upload a file
The output of my Nextcloud log in Admin > Logging:
{"reqId":"DBW1TsExqX9x5R9LkIAN","level":2,"time":"2021-11-03T17:51:37+00:00","remoteAddr":"77.3.176.13","user":"--","app":"core","method":"PROPFIND","url":"/nextcloud/remote.php/dav/files/admin/","message":"Login failed: 'admin' (Remote IP: '77.3.176.13')","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.0.2"}
{"reqId":"635MVcsmi8TjW8DjEV3S","level":2,"time":"2021-11-03T17:51:51+00:00","remoteAddr":"77.3.176.13","user":"--","app":"core","method":"PROPFIND","url":"/nextcloud/remote.php/dav/files/admin/","message":"Login failed: 'admin' (Remote IP: '77.3.176.13')","userAgent":"Mozilla/5.0 (Windows) mirall/3.3.6stable-Win64 (build 20211028) (Nextcloud, windows-10.0.19043 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"22.2.0.2"}
The output of my config.php file in /var/www/nextcloud/config
:
<?php
$CONFIG = array (
'passwordsalt' => '---',
'secret' => '---',
'trusted_domains' =>
array (
0 => 'localhost',
1 => '*',
),
'datadirectory' => '/mnt/dietpi_userdata/nextcloud_data',
'dbtype' => 'mysql',
'version' => '22.2.0.2',
'hashingThreads' => 4,
'memcache.local' => '\\OC\\Memcache\\APCu',
'filelocking.enabled' => true,
'memcache.locking' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => '/run/redis/redis-server.sock',
'port' => 0,
),
'overwrite.cli.url' => 'http://localhost/nextcloud',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '---',
'dbpassword' => '---',
'installed' => true,
'instanceid' => 'ocscp64xxtgg',
'maintenance' => false,
);
The output of your Apache/nginx/system log in /var/log/____
:
What do I have to post here?