Updating NC12: update theming app fails

Reopening a topic from here
Giving NC a try, but I got the same issue while migrating/updating.

I migrated from OC 9.1 to NC 11.0.3.2 and then updating to NC12 using occ.

System:
debian 8.8, x86_64
PHP 5.6.30
NGINX 1.10.3
mariadb 10.0.30

{"reqId":"JoG4zF47JsDfNLinxANy","level":0,"time":"2017-05-31T17:23:01+02:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"starting upgrade from 11.0.3.2 to 12.0.0.29","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:01+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Repair::step: Repair step: Repair MySQL collation","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:01+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Repair::info: Repair info: All tables already have the correct collation -> nothing to do","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:01+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Repair::step: Repair step: Repair SQLite autoincrement","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:01+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Repair::step: Repair step: Copy data from accounts table when migrating from ownCloud","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:01+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Updater::dbUpgradeBefore: Updating database schema","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:02+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Updater::dbUpgrade: Updated database","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Updater::appUpgradeStarted: Updating <theming> ...","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Repair::step: Repair step: Move theming files to AppData storage","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":3,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"no app in context","method":"--","url":"--","message":"$absolutePath must be relative to \"files\", value is \"%s\"","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":3,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"core","method":"--","url":"--","message":"Exception: {\"Excepti
on\":\"InvalidArgumentException\",\"Message\":\"$absolutePath must be relative to \\\"files\\\"\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(1951): OC\\\\Files\\\\View->getPathRelativeToFiles('\\\/appdata_oc9nyo...')\\n#1 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(1126): OC\\\\Files\\\\View->changeLock('\\\/appdata_oc9nyo...', 2)\\n#2 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php(269): OC\\\\Files\\\\View->basicOperation('mkdir', '\\\/appdata_oc9nyo...', Array)\\n#3 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/Folder.php(160): OC\\\\Files\\\\View->mkdir('\\\/appdata_oc9nyo...')\\n#4 [internal function]: OC\\\\Files\\\\Node\\\\Folder->newFolder('appdata_oc9nyok...')\\n#5 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(63): call_user_func_array(Array, Array)\\n#6 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/Node\\\/LazyRoot.php(385): OC\\\\Files\\\\Node\\\\LazyRoot->__call('newFolder', Array)\\n#7 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/AppData\\\/AppData.php(82): OC\\\\Files\\\\Node\\\\LazyRoot->newFolder('appdata_oc9nyok...')\\n#8 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/AppData\\\/AppData.php(112): OC\\\\Files\\\\AppData\\\\AppData->getAppDataFolder()\\n#9 \\\/home\\\/www-data\\\/nextcloud\\\/apps\\\/theming\\\/lib\\\/Migration\\\/ThemingImages.php(56): OC\\\\Files\\\\AppData\\\\AppData->newFolder('images')\\n#10 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Repair.php(85): OCA\\\\Theming\\\\Migration\\\\ThemingImages->run(Object(OC\\\\Repair))\\n#11 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(1114): OC\\\\Repair->run()\\n#12 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/legacy\\\/app.php(1049): OC_App::executeRepairSteps('theming', Array)\\n#13 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Updater.php(381): OC_App::updateApp('theming')\\n#14 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Updater.php(264): OC\\\\Updater->doAppUpgrade()\\n#15 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Updater.php(130): OC\\\\Updater->doUpgrade('12.0.0.29', '11.0.3.2')\\n#16 \\\/home\\\/www-data\\\/nextcloud\\\/core\\\/Command\\\/Upgrade.php(263): OC\\\\Updater->upgrade()\\n#17 \\\/home\\\/www-data\\\/nextcloud\\\/3rdparty\\\/symfony\\\/console\\\/Command\\\/Command.php(256): OC\\\\Core\\\\Command\\\\Upgrade->execute(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#18 \\\/home\\\/www-data\\\/nextcloud\\\/3rdparty\\\/symfony\\\/console\\\/Application.php(818): Symfony\\\\Component\\\\Console\\\\Command\\\\Command->run(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#19 \\\/home\\\/www-data\\\/nextcloud\\\/3rdparty\\\/symfony\\\/console\\\/Application.php(186): Symfony\\\\Component\\\\Console\\\\Application->doRunCommand(Object(OC\\\\Core\\\\Command\\\\Upgrade), Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#20 \\\/home\\\/www-data\\\/nextcloud\\\/3rdparty\\\/symfony\\\/console\\\/Application.php(117): Symfony\\\\Component\\\\Console\\\\Application->doRun(Object(Symfony\\\\Component\\\\Console\\\\Input\\\\ArgvInput), Object(Symfony\\\\Component\\\\Console\\\\Output\\\\ConsoleOutput))\\n#21 \\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Console\\\/Application.php(170): Symfony\\\\Component\\\\Console\\\\Application->run(NULL, NULL)\\n#22 \\\/home\\\/www-data\\\/nextcloud\\\/console.php(92): OC\\\\Console\\\\Application->run()\\n#23 \\\/home\\\/www-data\\\/nextcloud\\\/occ(11): require_once('\\\/home\\\/www-data\\\/...')\\n#24 {main}\",\"File\":\"\\\/home\\\/www-data\\\/nextcloud\\\/lib\\\/private\\\/Files\\\/View.php\",\"Line\":2084}","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":3,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Updater::failure: InvalidArgumentException: $absolutePath must be relative to \"files\"","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":3,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"11.0.3.2"}
{"reqId":"JoG4zF47JsDfNLinxANy","level":1,"time":"2017-05-31T17:23:03+02:00","remoteAddr":"","user":"--","app":"updater","method":"--","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Error(3)","userAgent":"--","version":"11.0.3.2"}

And since$absolutePath must be relative to \"files\", value is \"%s\" does not help very much ;-), it seems that $absolutePath is set to “remoteAddr”

Thanks for your help !

Use the issue tracker https://github.com/nextcloud/server/ then you also dont need to prefix your threads with reopening

Edit: apologies, thought this was a duplicate. Continue…

Bug filed #5219.
thanks

A post was split to a new topic: Failed to migrate using migration tool

@PtiBu please don’t hijack this issue with a different issue. @JasonBayton can you close the issue again?

Sorry, but no hijack here ! The issue remains the same: a migration issue !
No help so far (not even after filling the bug), so I try everything I can to test NC using my current OC install.

Migrating from OC 9.1 to NC 11.0.3.2 and then updating to NC12: FAIL
Migrating from OC10.0.02 to NC12 using migration tool: FAIL
What can I do? Stick to OC :cry: ?

Bump the GH issue again.

Finally succeeded in migrating from OC to NC 11, Using migration tool from OC9 to NC 10, then NC11.
Interestingly, I got data file issues after migration. Was forced to run occ files:scan to recover files, with many errors.
But now it finally works .