-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Manual upgrade with occ command from 13.0.6 to 14.0.3 throws unhandled exception #12516
Comments
Tried updating from 13.0.6 to 13.0.7 using the same method and that was successful. I will try to update to version 14.0.3 from 13.0.7 to see if that will work. |
Let' close this for now. We can reopen it if this happens again. |
Could you please reopen this issue? Only this weekend I had another chance to try upgrading my server and the error persists when upgrading from 13.0.x to 14.0.x. Every log and setting is the same. For what it's worth, upgrading from 13.0.7 to 13.0.8 went smoothly! The problem only happens with versions >= 14.0.0. To complement the information above, my upgrade routine is based on Nextcloud documentation and is the following:
|
I get exactly the same stacktrace while upgrading from Nextcloud 13.0.8 to either 14.0.0 or 14.0.4 with the official docker image of Nextcloud, enhanced by some modifications to run cron as recommended in the Nextcloud documentation. I also tried disabling all apps before calling "occ upgrade" using "sudo -u www-data ./occ app:disable", but this command triggered the same error and stacktrace. Update: By deactivating the theming app in the old instance before shutting it down and starting the upgrade, the database conversion worked without problems for me. I simply re-activated the theming app afterwards, and everything was fine. |
You copied over the old apps. You only should copy over non-shipped apps and not all apps. That is the reason for this breakage. The theming app is shipped inside the release under apps/theming and needs to be as of the version in the release tar ball. This is also the reason why we recommend to user the built-in updater - it takes care of all of those tiny steps. See https://docs.nextcloud.com/server/stable/admin_manual/maintenance/update.html for more details. |
Steps to reproduce
sudo -u www-data php /var/www/nextcloud/occ upgrade
Expected behaviour
Upgrade should run and complete (this has been my upgrade method for the past year without any issue!).
Actual behaviour
occ command throws an unhandled exception
An unhandled exception has been thrown:
TypeError: Argument 4 passed to OCA\Theming\ThemingDefaults::__construct() must implement interface OCP\Files\IAppData, instance of OC\Memcache\Factory given, called in /var/www/nextcloud/lib/private/Server.php on line 952 and defined in /var/www/nextcloud/apps/theming/lib/ThemingDefaults.php:93
Stack trace:
#0 /var/www/nextcloud/lib/private/Server.php(952): OCA\Theming\ThemingDefaults->__construct(Object(OC\AllConfig), Object(OC\L10N\L10N), Object(OC\URLGenerator), Object(OC\Memcache\Factory), Object(OCA\Theming\Util), Object(OCA\Theming\ImageManager), Object(OC\App\AppManager))
#1 /var/www/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#2 /var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('ThemingDefaults')
#3 /var/www/nextcloud/lib/private/ServerContainer.php(132): OC\AppFramework\Utility\SimpleContainer->query('ThemingDefaults')
#4 /var/www/nextcloud/lib/private/Server.php(1857): OC\ServerContainer->query('ThemingDefaults')
#5 /var/www/nextcloud/lib/private/Console/Application.php(71): OC\Server->getThemingDefaults()
#6 /var/www/nextcloud/console.php(93): OC\Console\Application->__construct(Object(OC\AllConfig), Object(Symfony\Component\EventDispatcher\EventDispatcher), Object(OC\AppFramework\Http\Request), Object(OC\Log), Object(OC\MemoryInfo))
#7 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#8 {main}
Server configuration
Operating system: Debian 9.6
Web server: 2.4.25
Database: MariaDB 10.1.26-MariaDB-0+deb9u1
PHP version: 7.0.30-0+deb9u1
Nextcloud version: 14.0.3
Updated from an older Nextcloud/ownCloud or fresh install: Update process from 13.0.6 to 14.0.3
Where did you install Nextcloud from: Nextcloud website
Signing status: Can't login right now.
List of activated apps: occ command also won't run when trying to get
app:list
App list
Nextcloud configuration:
config.php
Are you using external storage, if yes which one: No
Are you using encryption: No
Are you using an external user-backend, if yes which one: No
Client configuration
Browser: Doesn't apply.
Operating system: Doesn't apply.
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: