Dein Datenverzeichnis ist ungültig / Maintainance Mode?!

Hi Alle,

n00b-Frage aber ich hoffe eine® hier kann mir helfen.
Habe im NextCloudPi Panel etwas naiv bei BTRFS snapshot herumgeklickt. Anschließend gab es die Fehlermeldung “Dein Datenverzeichnis ist ungültig. Stelle sicher, dass eine Datei “.ocdata” im Wurzelverzeichnis des data-Verzeichnisses existiert.”
Die untenstehenden Zeilen bekomme ich, sobald ich ältere Versionen einspielen möchte oder sogar in oder aus dem Maintainance-Mode gehe (sowohl im Web-Admin als auch in der shell).

[ nc-maintenance ]
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
{“reqId”:“xBLR6CptdFL1XZoW0GYg”,“level”:3,“time”:“2019-07-08T19:12:01+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"",“url”:"–",“message”:“fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log at /var/www/nextcloud/lib/private/Log/File.php#140”,“userAgent”:"–",“version”:“16.0.2.1”}
{“reqId”:“xBLR6CptdFL1XZoW0GYg”,“level”:2,“time”:“2019-07-08T19:12:01+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:“Temporary directory /media/USBdrive/ncdata/tmp is not present or writable”,“userAgent”:"–",“version”:“16.0.2.1”}
PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
{“reqId”:“xBLR6CptdFL1XZoW0GYg”,“level”:3,“time”:“2019-07-08T19:12:01+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"",“url”:"–",“message”:“fopen(/media/USBdrive/ncdata/data_dir_writability_test_5d239581ca6e9.tmp): failed to open stream: Permission denied at /var/www/nextcloud/lib/private/legacy/util.php#796”,“userAgent”:"–",“version”:“16.0.2.1”}
Your data directory is invalid
Ensure there is a file called “.ocdata” in the root of the data directory.

Your data directory is not writable
Permissions can usually be fixed by giving the webserver write access to the root directory. See https://docs.nextcloud.com/server/16/go.php?to=admin-dir_permissions.

An unhandled exception has been thrown:
Exception: Environment not properly prepared. in /var/www/nextcloud/lib/private/Console/Application.php:166
Stack trace:
#0 /var/www/nextcloud/console.php(96): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/nextcloud/occ(11): require_once(’/var/www/nextcl…’)
#2 {main}PHP Warning: fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log in /var/www/nextcloud/lib/private/Log/File.php on line 140
{“reqId”:“xBLR6CptdFL1XZoW0GYg”,“level”:3,“time”:“2019-07-08T19:12:01+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"",“url”:"–",“message”:“fileperms(): stat failed for /media/USBdrive/ncdata/nextcloud.log at /var/www/nextcloud/lib/private/Log/File.php#140”,“userAgent”:"–",“version”:“16.0.2.1”}
{“reqId”:“xBLR6CptdFL1XZoW0GYg”,“level”:3,“time”:“2019-07-08T19:12:01+00:00”,“remoteAddr”:"",“user”:"–",“app”:“PHP”,“method”:"",“url”:"–",“message”:“chmod(): No such file or directory at /var/www/nextcloud/lib/private/Log/File.php#141”,“userAgent”:"–",“version”:“16.0.2.1”}

Gibt es eine Rettung?! :cry:

Danke schoneinmal im Voraus für Eure Mühe!

Dont do that, unless you know what you are doing! Or dont mind breaking your instance, and just want to learn.
NCP users are from all over the world, but use English mainly. So you are likely to get more response when posting in English.

Also check ncp-web or ncp-config >> TOOLS to turn on or off maintenance mode.