Skip to content
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

Nextcloud 14 Upgrade exception #11199

Closed
joekerna opened this issue Sep 13, 2018 · 7 comments
Closed

Nextcloud 14 Upgrade exception #11199

joekerna opened this issue Sep 13, 2018 · 7 comments

Comments

@joekerna
Copy link

Steps to reproduce

  1. Upgrade from 13.0.6 to 14.0.0

Expected behaviour

Upgrade successfull

Actual behaviour

Exception below

Server configuration

Operating system: Ubuntu 18.04

Web server: Nginx

Database: Mysql

PHP version: 7.2

Nextcloud version: 13.0.6

Updated from an older Nextcloud/ownCloud or fresh install: Upgrade

Where did you install Nextcloud from: Website download

During upgrade using occ the following exception is thrown:

Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
Set log level to debug
Turned on maintenance mode
Updating database schema
Updated database
Checking for update of app activity in appstore
An unhandled exception has been thrown:
Error: Call to undefined method GuzzleHttp\Client::request() in /var/www/nextcloud/lib/private/Http/Client/Client.php:161
Stack trace:
#0 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(106): OC\Http\Client\Client->get('https://apps.ne...', Array)
#1 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(80): OC\App\AppStore\Fetcher\Fetcher->fetch('', '')
#2 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(170): OC\App\AppStore\Fetcher\AppFetcher->fetch('', '')
#3 /var/www/nextcloud/lib/private/Installer.php(385): OC\App\AppStore\Fetcher\Fetcher->get()
#4 /var/www/nextcloud/lib/private/Updater.php(445): OC\Installer->isUpdateAvailable('activity')
#5 /var/www/nextcloud/lib/private/Updater.php(256): OC\Updater->upgradeAppStoreApps(Array)
#6 /var/www/nextcloud/lib/private/Updater.php(126): OC\Updater->doUpgrade('14.0.0.19', '13.0.6.1')
#7 /var/www/nextcloud/core/Command/Upgrade.php(262): OC\Updater->upgrade()
#8 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(251): OC\Core\Command\Upgrade->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/nextcloud/3rdparty/symfony/console/Application.php(946): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\Upgrade), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /var/www/nextcloud/3rdparty/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /var/www/nextcloud/lib/private/Console/Application.php(213): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /var/www/nextcloud/console.php(96): OC\Console\Application->run()
#14 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
#15 {main}

@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #6718 (Nextcloud 12 Upgrade and Collation Issues), #5056 (nextcloud 12 upgrade error), #10954 (OCC upgrade throws unhandled exception), #10631 (Nextcloud 14 Beta 3 update failed), and #7438 (NC 13 Beta 1 occ repair error).

@joekerna
Copy link
Author

This seems to be a duplicate of #10954
Thanks @nextcloud-bot

@timm2k
Copy link
Contributor

timm2k commented Sep 13, 2018

Try to disable apps bookmarks or files_external_gdrive. They ship an incompatible version of Guzzle.

@weeman1337
Copy link
Member

@MorrisJobke (if you know someone better, feel free to mention him here) this issue may come up for others, too. The latest bookmarks app solves this. Do you see the possibility to change the update process so it doesn't use the app files? The first step is to check the version and download it, right? Therefore you don't need the app files. This could solve errors like this one here..

@MorrisJobke
Copy link
Member

@MorrisJobke (if you know someone better, feel free to mention him here) this issue may come up for others, too. The latest bookmarks app solves this. Do you see the possibility to change the update process so it doesn't use the app files? The first step is to check the version and download it, right? Therefore you don't need the app files. This could solve errors like this one here..

I guess there is very little we can do to fix this from the outside :/

cc @nickvergessen

@joekerna
Copy link
Author

I reinstalled and recovered my data from backup, so I'm fine.
But this was the first time the update process failed on me 👍

@MorrisJobke
Copy link
Member

I reinstalled and recovered my data from backup, so I'm fine.
But this was the first time the update process failed on me 👍

Sorry to hear that. I would close this here for now as it was caused by a 3rdparty app. :( We try to protect against this as good as possible nevertheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants