Nextcloud migration Debian 10

hi,

I have migrated my nextcloud installation from debian 8 to debian 10 with ispconfig migration kit.

in the first 3 minutes everything was fine - then I got an internal server error - I have fixed it with setting sudo chown -R www-data:www-data /var/www/nextcloud/

now I get a “No input file specified.” Error

I’ve tried using this script: https://docs.nextcloud.com/server/9.0/admin_manual/installation/installation_wizard.html

but this doesn’t help - has anybody an idea?

when I try to use sudo -u www-data php occ - I get the following error (inside installed folder):

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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:52:56+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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:52:57+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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:53:00+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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:53:00+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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:53:00+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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:53:00+00:00”,“remoteAddr”:"",“user”:"–",“app”:“no app in context”,“method”:"",“url”:"–",“message”:{“Exception”:“OCP\Files\NotPermittedException”,“Message”:“Could not create folder”,“Code”:0,“Trace”:[{“function”:“newFolder”,“class”:“OC\Files\Node\Folder”,“type”:"->",“args”:[“news/config”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/Files/Node/LazyRoot.php",“line”:64,“function”:“call_user_func_array”,“args”:[[{“class”:“OC\Files\Node\Root”},“newFolder”],[“news/config”]]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/Files/Node/LazyRoot.php",“line”:390,“function”:"__call",“class”:“OC\Files\Node\LazyRoot”,“type”:"->",“args”:[“newFolder”,[“news/config”]]},{“file”:"/var/www/clients/client2/web3/cloud/apps/news/lib/AppInfo/Application.php",“line”:113,“function”:“newFolder”,“class”:“OC\Files\Node\LazyRoot”,“type”:"->",“args”:[“news/config”]},{“file”:"/var/www/clients/client2/web3/cloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OCA\News\AppInfo\{closure}”,“class”:“OCA\News\AppInfo\Application”,“type”:"->",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:117,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“ConfigView”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:404,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“ConfigView”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“ConfigView”]},{“file”:"/var/www/clients/client2/web3/cloud/apps/news/lib/AppInfo/Application.php",“line”:129,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“ConfigView”]},{“file”:"/var/www/clients/client2/web3/cloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OCA\News\AppInfo\{closure}”,“class”:“OCA\News\AppInfo\Application”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:117,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OCA\News\Config\Config”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:404,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Config\Config”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Config\Config”]},{“file”:"/var/www/clients/client2/web3/cloud/apps/news/lib/AppInfo/Application.php",“line”:165,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Config\Config”]},{“file”:"/var/www/clients/client2/web3/cloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OCA\News\AppInfo\{closure}”,“class”:“OCA\News\AppInfo\Application”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:117,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OCA\News\Config\FetcherConfig”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:404,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Config\FetcherConfig”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Config\FetcherConfig”]},{“file”:"/var/www/clients/client2/web3/cloud/apps/news/lib/AppInfo/Application.php",“line”:172,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Config\FetcherConfig”]},{“file”:"/var/www/clients/client2/web3/cloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OCA\News\AppInfo\{closure}”,“class”:“OCA\News\AppInfo\Application”,“type”:"->",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:117,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“FeedIo\FeedIo”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:404,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“FeedIo\FeedIo”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“FeedIo\FeedIo”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:68,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“FeedIo\FeedIo”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:98,“function”:“buildClass”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[{“name”:“OCA\News\Fetcher\FeedFetcher”,“class”:“ReflectionClass”}]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:119,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\FeedFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:411,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\FeedFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\FeedFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:68,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\FeedFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:98,“function”:“buildClass”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[{“name”:“OCA\News\Fetcher\YoutubeFetcher”,“class”:“ReflectionClass”}]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:119,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\YoutubeFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:411,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\YoutubeFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\YoutubeFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/apps/news/lib/AppInfo/Application.php",“line”:192,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\YoutubeFetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/3rdparty/pimple/pimple/src/Pimple/Container.php",“line”:118,“function”:“OCA\News\AppInfo\{closure}”,“class”:“OCA\News\AppInfo\Application”,“type”:"->",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:117,“function”:“offsetGet”,“class”:“Pimple\Container”,“type”:"->",“args”:[“OCA\News\Fetcher\Fetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:404,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\Fetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\Fetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:68,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Fetcher\Fetcher”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:98,“function”:“buildClass”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[{“name”:“OCA\News\Service\FeedService”,“class”:“ReflectionClass”}]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:119,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Service\FeedService”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:411,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Service\FeedService”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Service\FeedService”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:68,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Service\FeedService”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:98,“function”:“buildClass”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[{“name”:“OCA\News\Command\Updater\AllFeeds”,“class”:“ReflectionClass”}]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/Utility/SimpleContainer.php",“line”:119,“function”:“resolve”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Command\Updater\AllFeeds”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:411,“function”:“query”,“class”:“OC\AppFramework\Utility\SimpleContainer”,“type”:"->",“args”:[“OCA\News\Command\Updater\AllFeeds”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/AppFramework/DependencyInjection/DIContainer.php",“line”:382,“function”:“queryNoFallback”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Command\Updater\AllFeeds”]},{“file”:"/var/www/clients/client2/web3/cloud/apps/news/appinfo/register_command.php",“line”:23,“function”:“query”,“class”:“OC\AppFramework\DependencyInjection\DIContainer”,“type”:"->",“args”:[“OCA\News\Command\Updater\AllFeeds”]},{“file”:"/var/www/clients/client2/web3/cloud/lib/private/Console/Application.php",“line”:141,“args”:["/var/www/clients/client2/web3/cloud/apps/news/appinfo/register_command.php"],“function”:“require”},{“file”:"/var/www/clients/client2/web3/cloud/console.php",“line”:96,“function”:“loadCommands”,“class”:“OC\Console\Application”,“type”:"->",“args”:[{“class”:“Symfony\Component\Console\Input\ArgvInput”},{“class”:“Symfony\Component\Console\Output\ConsoleOutput”}]},{“file”:"/var/www/clients/client2/web3/cloud/occ",“line”:11,“args”:["/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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:53:00+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”:“vJqvItrNxaam6ac7MRDF”,“level”:3,“time”:“2020-01-03T17:53:00+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”}

Which version of Nextcloud are you using? Did you upgrade Nextcloud as well?