Server: Nextcloud 14 Beta 3 update failed

Created on 9 Aug 2018  路  16Comments  路  Source: nextcloud/server

Steps to reproduce

  1. Change Nextcloud from stable to beta
  2. Upgrade Nextcloud to 14 Beta 3
  3. Finish upgrade

Expected behaviour

Upgrade would finish without issues

Actual behaviour

Upgrade failed

Server configuration

Operating system: Ubuntu 18.04 LTS

Web server: nginx 1.14.0

Database: 10.1.34-MariaDB-0ubuntu0.18.04.1

PHP version: 7.2.8

Nextcloud version: (see Nextcloud admin page) 13.0.5 (before update)

Updated from an older Nextcloud/ownCloud or fresh install: Should be 14 Beta 3

Where did you install Nextcloud from: The updater in the settings

Error message:
\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.15', '13.0.5.2')

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(196): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

13 /var/www/nextcloud/console.php(90): OC\Console\Application->run()

14 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

#15 {main}\

bug install and update

Most helpful comment

Can you try to remove files_external gdrive. It might have a conflicting dependency

All 16 comments

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/10502 (Nextcloud 14 Beta 3), https://github.com/nextcloud/server/issues/10624 (Nextcloud 14 Beta 3 The "Referrer-Policy" HTTP header is not set to "no-referrer"), https://github.com/nextcloud/server/issues/10630 (Error in Nextcloud 14 Beta 3 Missing "Enable recovery key" field in the admin settings), https://github.com/nextcloud/server/issues/7438 (NC 13 Beta 1 occ repair error), and https://github.com/nextcloud/server/issues/2813 (File is lock in Nextcloud 11 with Redis filelocking turned on).

The same here

What is the lists of apps you have enabled?

Its our playing ground so there a alot of apps installed ...

accessibility
activity
admin_audit
admin_notifications
announcementcenter
bruteforcesettings
calendar
caniupdate
checksum
cloud_federation_api
comments
contacts
dashboard
dav
encryption
external
federatedfilesharing
federation
files
files_accesscontrol
files_antivirus
files_automatedtagging
files_downloadactivity
files_external
files_external_gdrive
files_pdfviewer
files_retention
files_sharing
files_texteditor
files_trackdownloads
files_trashbin
files_versions
files_videoplayer
firstrunwizard
gallery
groupfolders
logreader
lookup_server_connector
metadata
mindmaps
nextcloud_announcements
notes
notifications
oauth2
ojsxc
password_policy
polls
previewgenerator
provisioning_api
ransomware_protection
serverinfo
sharebymail
socialsharing_diaspora
socialsharing_email
socialsharing_facebook
socialsharing_googleplus
socialsharing_twitter
spreed
support
survey_client
systemtags
theming
twofactor_backupcodes
twofactor_totp
updatenotification
user_external
user_ldap
workflowengine

It comes after the lines:
Checking for update of app activity in appstore
An unhandled exception has been thrown:......

Can you try to remove files_external gdrive. It might have a conflicting dependency

@rullzer oh that was it, after disabling files_external_gdrive the update worked fine without any issues. Will I still get a shirt though, because the update technically failed for me from version 13 -> 14 Beta 3.

@C439 did we promise t-shirts already?

In that case let me summon @jospoortvliet ^^

@C439 shoot me an email pls and we'll get you one ;-)

@jospoortvliet Hi, can you please check your email? I've sent you my address over a week ago. :)

@rullzer Disabling files_external_gdrive via occ worked for me. But I feel like incompatible apps shouldn't entirely break the upgrade process? :/ Thanks anyways.

Can you try to remove files_external gdrive. It might have a conflicting dependency

Thank you it work for me too !

This Problem still exist. I did the Upgrade from 13.0.8.2 to 14.0.4.2 in the production branch. It fails horrible with the same issue.
The Error Message is not helpful but thanks @rullzer for point at the faulty Addon.

Disabling files_external_gdrive have also helped me.

If you're running Nextcloud in a docker like me, then this is the command you're looking for:

docker exec -u www-data nextcloud ./occ app:disable files_external_gdrive
Was this page helpful?
0 / 5 - 0 ratings