Hallo,
ich habe mittels Migration Toolkit meine Nextcloud-Installation auf den neuen Server übersiedet, allerdings bekomme ich diese noch nicht zum Laufen.
Die 1. Fehlermeldung war ein Internal Server Error, diese habe mittels
"behoben".
Jetzt bekomme ich folgende Fehlermeldung:
Die Fehlermeldung erscheinen jeweils beim Aufrufen der Internetseite.
Wenn ich probiere mittels
Ich werde nicht ganz schlau daraus und hoffe mir kann jemand helfen.
LG
Max
PS: Es ist eine Nextcloud 16 Installation und PHP7.2 ist derzeit im Hintergrund und ich vermute es ist ein Rechtethema.
ich habe mittels Migration Toolkit meine Nextcloud-Installation auf den neuen Server übersiedet, allerdings bekomme ich diese noch nicht zum Laufen.
Die 1. Fehlermeldung war ein Internal Server Error, diese habe mittels
sudo chown -R www-data:www-data /var/www/clients/client2/web3/cloud
"behoben".
Jetzt bekomme ich folgende Fehlermeldung:
Die Fehlermeldung erscheinen jeweils beim Aufrufen der Internetseite.
Wenn ich probiere mittels
sudo -u www-data php occ maintenance:mode --on
[im Nextcloudinstallationspfad ausgeführt] den Wartungsmodus zu aktivieren bekomme ich im Terminal folgende Fehlermeldung:PHP Warning: fileperms(): stat failed for /var/www/clients/client2/web3/web/data/nextcloud.log in /var/www/clients/client2/web3/cloud/lib/private/Log/File.php on line 140
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:17+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/var\/www\/clients\/client2\/web3\/web\/data\/files_encryption\/OC_DEFAULT_MODULE\/pubShare_adc079c9.publicKey): failed to open stream: No such file or directory at \/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"--","version":"16.0.5.1"}
PHP Warning: fileperms(): stat failed for /var/www/clients/client2/web3/web/data/nextcloud.log in /var/www/clients/client2/web3/cloud/lib/private/Log/File.php on line 140
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:17+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/var\/www\/clients\/client2\/web3\/web\/data\/files_encryption\/OC_DEFAULT_MODULE\/pubShare_adc079c9.privateKey): failed to open stream: No such file or directory at \/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"--","version":"16.0.5.1"}
PHP Warning: fileperms(): stat failed for /var/www/clients/client2/web3/web/data/nextcloud.log in /var/www/clients/client2/web3/cloud/lib/private/Log/File.php on line 140
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:18+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/var\/www\/clients\/client2\/web3\/web\/data\/files_encryption\/OC_DEFAULT_MODULE\/master_adc079c9.publicKey): failed to open stream: No such file or directory at \/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"--","version":"16.0.5.1"}
PHP Warning: fileperms(): stat failed for /var/www/clients/client2/web3/web/data/nextcloud.log in /var/www/clients/client2/web3/cloud/lib/private/Log/File.php on line 140
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fopen(\/var\/www\/clients\/client2\/web3\/web\/data\/files_encryption\/OC_DEFAULT_MODULE\/master_adc079c9.privateKey): failed to open stream: No such file or directory at \/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Files\/Storage\/Local.php#301","userAgent":"--","version":"16.0.5.1"}
PHP Warning: fileperms(): stat failed for /var/www/clients/client2/web3/web/data/nextcloud.log in /var/www/clients/client2/web3/cloud/lib/private/Log/File.php on line 140
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fileperms(): stat failed for \/var\/www\/clients\/client2\/web3\/web\/data\/nextcloud.log at \/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Log\/File.php#140","userAgent":"--","version":"16.0.5.1"}
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:19+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","message"
.....
["\/var\/www\/clients\/client2\/web3\/cloud\/console.php"],"function":"require_once"}],"File":"\/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Files\/Node\/Folder.php","Line":162,"CustomMessage":"--"},"userAgent":"--","version":"16.0.5.1"}
Your data directory is invalid
Ensure there is a file called ".ocdata" in the root of the data directory.
Cannot create "data" directory
This 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/clients/client2/web3/cloud/lib/private/Console/Application.php:166
Stack trace:
#0 /var/www/clients/client2/web3/cloud/console.php(96): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/clients/client2/web3/cloud/occ(11): require_once('/var/www/client...')
#2 {main}PHP Warning: fileperms(): stat failed for /var/www/clients/client2/web3/web/data/nextcloud.log in /var/www/clients/client2/web3/cloud/lib/private/Log/File.php on line 140
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"fileperms(): stat failed for \/var\/www\/clients\/client2\/web3\/web\/data\/nextcloud.log at \/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Log\/File.php#140","userAgent":"--","version":"16.0.5.1"}
{"reqId":"SSysJtpWmt3fgK0nNZqG","level":3,"time":"2020-01-03T23:21:19+00:00","remoteAddr":"","user":"--","app":"PHP","method":"","url":"--","message":"chmod(): No such file or directory at \/var\/www\/clients\/client2\/web3\/cloud\/lib\/private\/Log\/File.php#141","userAgent":"--","version":"16.0.5.1"}
Ich werde nicht ganz schlau daraus und hoffe mir kann jemand helfen.
LG
Max
PS: Es ist eine Nextcloud 16 Installation und PHP7.2 ist derzeit im Hintergrund und ich vermute es ist ein Rechtethema.