Internal error on login after upgrade from Owncloud 9 to Nextcloud 11

Hi everybody,

Last night I try tot upgrade my Owncloud installation to Nextcloud using the built in upgrader.
Everthing seemed to go fine, but now In cannot log into the webinterface anymore. Syncing with Android cliënt is fine.

This is the error in the log:

{“reqId”:“JRYLBFUNm6UwHvuGyvZk”,“remoteAddr”:“145.132.43.11
”,“app”:“index”,“message”:“Exception: {“Exception”:“Inva
idArgumentException”,“Message”:”$absolutePath must be r
lative to \“files\”",“Code”:0,“Trace”:"#0 \/var
\/www\/owncloud\/lib\/private\/Files\/View.php(1
41): OC\\Files\\View->getPathRelativeToFiles(’\/appda
a_oc4xm9…’)\n#1 \/var\/www\/owncloud\/lib\/pri
ate\/Files\/View.php(1118): OC\\Files\\View->change
ock(’\/appdata_oc4xm9…’, 2)\n#2 \/var\/www\/ownc
oud\/lib\/private\/Files\/View.php(266): OC\\File
\\View->basicOperation(‘mkdir’, ‘\/appdata_oc4xm9…’,
rray)\n#3 \/var\/www\/owncloud\/lib\/private\/
iles\/Node\/Folder.php(149): OC\\Files\\View->mkdir
’\/appdata_oc4xm9…’)\n#4 [internal function]: OC\\Fi
es\\Node\\Folder->newFolder(‘appdata_oc4xm9x…’)\n#5
\/var\/www\/owncloud\/lib\/private\/Files\/Nod
\/LazyRoot.php(65): call_user_func_array(Array, Array)\n
6 \/var\/www\/owncloud\/lib\/private\/Files\/
ode\/LazyRoot.php(387): OC\\Files\\Node\\LazyRoot->
_call(‘newFolder’, Array)\n#7 \/var\/www\/owncloud\
/lib\/private\/Files\/AppData\/AppData.php(82): OC
\Files\\Node\\LazyRoot->newFolder(‘appdata_oc4xm9x…’
\n#8 \/var\/www\/owncloud\/lib\/private\/Files
\/AppData\/AppData.php(105): OC\\Files\\AppData\\A
pData->getAppDataFolder()\n#9 \/var\/www\/owncloud\
/lib\/private\/AvatarManager.php(98): OC\\Files\\Ap
Data\\AppData->getFolder(‘rob’)\n#10 \/var\/www\/o
ncloud\/lib\/private\/TemplateLayout.php(115): OC\\
vatarManager->getAvatar(‘rob’)\n#11 \/var\/www\/ownc
oud\/lib\/private\/legacy\/template.php(232): OC\
TemplateLayout->__construct(‘user’, ‘files’)\n#12 \/var
/www\/owncloud\/lib\/public\/AppFramework\/Http
/TemplateResponse.php(157): OC_Template->fetchPage()\n#13
\/var\/www\/owncloud\/lib\/private\/AppFramewor
\/Http\/Dispatcher.php(113): OCP\\AppFramework\\Htt
\\TemplateResponse->render()\n#14 \/var\/www\/ownc
oud\/lib\/private\/AppFramework\/App.php(114): OC\
\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\
Files\\Controller\\ViewController), ‘index’)\n#15 \/
ar\/www\/owncloud\/lib\/private\/AppFramework\/
outing\/RouteActionHandler.php(47): OC\\AppFramework\
App::main(‘ViewController’, ‘index’, Object(OC\\AppFramew
rk\\DependencyInjection\\DIContainer), Array)\n#16 [in
ernal function]: OC\\AppFramework\\Routing\\RouteActi
nHandler->__invoke(Array)\n#17 \/var\/www\/owncloud
/lib\/private\/Route\/Router.php(299): call_user_fun
(Object(OC\\AppFramework\\Routing\\RouteActionHandler
, Array)\n#18 \/var\/www\/owncloud\/lib\/base.ph
(1010): OC\\Route\\Router->match(’\/apps\/files\/
)\n#19 \/var\/www\/owncloud\/index.php(40): OC::ha
dleRequest()\n#20 {main}",“File”:"\/var\/www\/ow
cloud\/lib\/private\/Files\/View.php",“Line”:206
}",“level”:3,“time”:“2017-05-24T23:07:27+00:00”,“method”:“G
T”,“url”:"/index.php/apps/files/",“user”:“rob”,"version
:“11.0.3.2”}

Permissions and ownership of the files are ok. Ik also trieda fresh install of Nextcloud 12 and restored my data, config and database, but without luck.
I also disabled a much of the apps as I could using the occ command.

This is my config:

<?php $CONFIG = array ( 'instanceid' => 'oc4xm9xwxl30', 'passwordsalt' => '', 'secret' => '', 'trusted_domains' => array ( 0 => '10.0.1.6', 1 => '' ), 'datadirectory' => '/var/www/owncloud/data', 'overwrite.cli.url' => 'http://10.0.1.6/owncloud', 'dbtype' => 'mysql', 'version' => '11.0.3.2', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc_', 'dbuser' => 'oc_admin', 'dbpassword' => '', 'logtimezone' => 'UTC', 'installed' => true, 'mail_smtpmode' => 'smtp', 'mail_from_address' => '', 'mail_domain' => '', 'mail_smtphost' => '', 'mail_smtpport' => '25', 'updater.server.url' => 'https://updates.nextcloud.com/up ater_server/', 'updater.secret' => '', 'maintenance' => false, 'theme' => '', 'loglevel' => 3, ); The error log mentions something about mkdir, but that is as far as I could. I hope somebody can help me out. Thanks in advance Rob

Hi again,

I solved the problem. I renamed the root folder from ‘owncloud’ to ‘nextcloud’, and now it works again.
I think I did the upgrade when the folder was called ‘nextcloud’, and renamed it to ‘owncloud’ again afterwards, because my Apache was configured for that path.

Rob