Hello collegues,
I have moved my Nextcloud installation (version 21.0.2.1) from the old server to the new one.
The steps :
- Nextcloud in maintenance mode on
- disable vHost on old server (a2dissite 004-nextcloud.conf)
- Copy vHost-definition to new server and activate them (a2ensite 004-nextcloud.conf)
- export postgressdb (pg_dump nextclouddb > nextcloud.pgsql) and copy them to new server
- on new server create database and import nextcloud.pgsql (psql nextclouddb < nextcloud.pgsql)
- rsync the nextcloud-directory to new server (rsync -avzt nextcloud root@NEW_SERVER:/var/www/html/), this tool a while
- changed DNS entry for nextcloud
- Nextcloud in maintenance mode off
After a couple of minutes the clients could connect and everything looks fine. The sync is also possible.
But: When I click on settings as admin, I get an Internal Server Error:
For the request id GVdQ0eDXq6sisYjTjojA I find this in logfile:
{"reqId":"GVdQ0eDXq6sisYjTjojA","level":0,"time":"June 11, 2021 11:18:10","remoteAddr":"93.220.240.144","user":"admin","app":"contacts","method":"GET","url":"/index.php/settings/user","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
{"reqId":"GVdQ0eDXq6sisYjTjojA","level":0,"time":"June 11, 2021 11:18:10","remoteAddr":"93.220.240.144","user":"admin","app":"files_sharing","method":"GET","url":"/index.php/settings/user","message":"/appinfo/app.php is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the application class instead.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
{"reqId":"GVdQ0eDXq6sisYjTjojA","level":3,"time":"June 11, 2021 11:18:10","remoteAddr":"93.220.240.144","user":"admin","app":"index","method":"GET","url":"/index.php/settings/user","message":{"Exception":"Exception","Message":"syntax error, unexpected 'IURLGenerator' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\PersonalSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"personal-info","_route":"settings.PersonalSettings.index"}]},{"file":"/var/www/html/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/user"]},{"file":"/var/www/html/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":159,"Previous":{"Exception":"ParseError","Message":"syntax error, unexpected 'IURLGenerator' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/composer/composer/ClassLoader.php","line":346,"function":"Composer\\Autoload\\includeFile","args":["/var/www/html/nextcloud/apps/passwords/lib//Settings/AdminSection.php"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Passwords\\Settings\\AdminSection"]},{"function":"spl_autoload_call","args":["OCA\\Passwords\\Settings\\AdminSection"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":107,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\\Passwords\\Settings\\AdminSection"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":126,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Passwords\\Settings\\AdminSection"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":459,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Passwords\\Settings\\AdminSection"]},{"file":"/var/www/html/nextcloud/lib/private/ServerContainer.php","line":146,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Passwords\\Settings\\AdminSection"]},{"file":"/var/www/html/nextcloud/lib/private/Settings/Manager.php","line":112,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Passwords\\Settings\\AdminSection"]},{"file":"/var/www/html/nextcloud/lib/private/Settings/Manager.php","line":207,"function":"getSections","class":"OC\\Settings\\Manager","type":"->","args":["admin"]},{"file":"/var/www/html/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":123,"function":"getAdminSections","class":"OC\\Settings\\Manager","type":"->","args":[]},{"file":"/var/www/html/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":76,"function":"formatAdminSections","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info",false]},{"file":"/var/www/html/nextcloud/apps/settings/lib/Controller/CommonSettingsTrait.php","line":148,"function":"getNavigationParameters","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info"]},{"file":"/var/www/html/nextcloud/apps/settings/lib/Controller/PersonalSettingsController.php","line":68,"function":"getIndexResponse","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal","personal-info"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"index","class":"OCA\\Settings\\Controller\\PersonalSettingsController","type":"->","args":["personal-info"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Settings\\Controller\\PersonalSettingsController"},"index"]},{"file":"/var/www/html/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Settings\\Controller\\PersonalSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"personal-info","_route":"settings.PersonalSettings.index"}]},{"file":"/var/www/html/nextcloud/lib/base.php","line":993,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/settings/user"]},{"file":"/var/www/html/nextcloud/index.php","line":37,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/html/nextcloud/apps/passwords/lib/Settings/AdminSection.php","Line":25},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0","version":"21.0.2.1"}
Can you help me please?
Kind regards,
Heinrich