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 Beta 3 update failed #10631

Closed
C439 opened this issue Aug 9, 2018 · 16 comments
Closed

Nextcloud 14 Beta 3 update failed #10631

C439 opened this issue Aug 9, 2018 · 16 comments

Comments

@C439
Copy link

C439 commented Aug 9, 2018

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}\

@nextcloud-bot
Copy link
Member

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

@lefty78
Copy link

lefty78 commented Aug 14, 2018

The same here

@rullzer
Copy link
Member

rullzer commented Aug 14, 2018

What is the lists of apps you have enabled?

@lefty78
Copy link

lefty78 commented Aug 14, 2018

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

@lefty78
Copy link

lefty78 commented Aug 14, 2018

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

@rullzer
Copy link
Member

rullzer commented Aug 14, 2018

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

@C439
Copy link
Author

C439 commented Aug 14, 2018

@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.

@rullzer
Copy link
Member

rullzer commented Aug 14, 2018

@C439 did we promise t-shirts already?

@C439
Copy link
Author

C439 commented Aug 14, 2018

@rullzer
Copy link
Member

rullzer commented Aug 14, 2018

In that case let me summon @jospoortvliet ^^

@jospoortvliet
Copy link
Member

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

@C439
Copy link
Author

C439 commented Sep 4, 2018

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

@XA21X
Copy link

XA21X commented Sep 12, 2018

@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.

@bibull
Copy link

bibull commented Sep 14, 2018

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

Thank you it work for me too !

@nille02
Copy link

nille02 commented Dec 11, 2018

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.

@jirislav
Copy link

jirislav commented Jan 4, 2019

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

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