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

Upgrading from 13.0.6.1 to 14.0.3 fails with Call to undefined method GuzzleHttp\Client::request() #11813

Closed
RealOrangeOne opened this issue Oct 13, 2018 · 2 comments

Comments

@RealOrangeOne
Copy link

Steps to reproduce

Install an update. I've installed many updates before, but this one is different apparently.

Expected behaviour

When installing an update, it should succeed.

Actual behaviour

An error is produced: Call to undefined method GuzzleHttp\Client::request(). See full stack trace below.

Server configuration

Operating system: FreeBSD (A jail under FreeNAS)

Web server: Apache2

Database: MySQL

PHP version: 7.2.8

Nextcloud version: 13.0.6.1 / 14.0.3?

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

Where did you install Nextcloud from: This article

List of activated apps:

App list
Enabled:                                                                                                                            
  - activity: 2.7.0                                                                                                                 
  - admin_audit: 1.4.0                                                                                                              
  - bruteforcesettings: 1.1.0                                                                                                       
  - calendar: 1.6.1                                                                                                                 
  - checksum: 0.4.1                                                                                                                 
  - cloud_federation_api: true                                                                                                      
  - comments: 1.4.0                                                                                                                 
  - contacts: 2.1.5                                                                                                                 
  - dav: 1.6.0                                                                                                                      
  - deck: 0.4.1                                                                                                                     
  - drawio: 0.9.1                                                                                                                   
  - federatedfilesharing: 1.4.0                                                                                                     
  - federation: 1.4.0                                                                                                               
  - files: 1.9.0                                                                                                                    
  - files_external: 1.5.0                                                                                                           
  - files_external_gdrive: 0.2.8                                                                                                    
  - files_markdown: 2.0.4                                                                                                           
  - files_pdfviewer: 1.3.2                                                                                                          
  - files_rightclick: 0.8.4                                                                                                         
  - files_sharing: 1.6.2                                                                                                            
  - files_texteditor: 2.6.0                                                                                                         
  - files_trashbin: 1.4.1                                                                                                           
  - files_versions: 1.7.1                                                                                                           
  - files_videoplayer: 1.3.0                                                                                                        
  - firstrunwizard: 2.3.0                                                                                                           
  - gallery: 18.1.0                                                                                                                 
  - logreader: 2.0.0                                                                                                                
  - lookup_server_connector: 1.2.0                                                                                                  
  - metadata: 0.7.0                                                                                                                 
  - nextcloud_announcements: 1.3.0                                                                                                  
  - notes: 2.4.2                                                                                                                    
  - notifications: 2.2.1                                                                                                            
  - oauth2: 1.2.1                                                                                                                   
  - password_policy: 1.4.0                                                                                                          
  - provisioning_api: 1.4.0                                                                                                         
  - serverinfo: 1.4.0                                                                                                               
  - sharebymail: 1.4.0                                                                                                              
  - survey_client: 1.2.0                                                                                                            
  - systemtags: 1.4.0                                                                                                               
  - theming: 1.5.0                                                                                                                  
  - theming_customcss: 1.1.0                                                                                                        
  - twofactor_backupcodes: 1.3.1                                                                                                    
  - updatenotification: 1.4.1                                                                                                       
  - workflowengine: 1.4.0
Disabled:                                                                                                                           
  - accessibility                                                                                                                   
  - encryption                                                                                                                      
  - files_reader                                                                                                                    
  - support                                                                                                                         
  - twofactor_totp                                                                                                                  
  - user_external                                                                                                                   
  - user_ldap 

Nextcloud configuration:

Config report
{                                                                                                                                   
    "system": {                                                                                                                     
        "instanceid": "***REMOVED SENSITIVE VALUE***",                                                                              
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",                                                                            
        "secret": "***REMOVED SENSITIVE VALUE***",                                                                                  
        "trusted_domains": [                                                                                                        
            "foo.bar.biz",                                                                                            
            "192.168.1.203"                                                                                                         
        ],                                                                                                                          
        "datadirectory": "***REMOVED SENSITIVE VALUE***",                                                                           
        "overwrite.cli.url": "https:\/\/foo.bar.biz",                                                                 
        "dbtype": "mysql",                                                                                                          
        "version": "13.0.6.1",                                                                                                      
        "dbname": "***REMOVED SENSITIVE VALUE***",                                                                                  
        "dbhost": "***REMOVED SENSITIVE VALUE***",                                                                                  
        "dbport": "",                                                                                                               
        "dbtableprefix": "oc_",                                                                                                     
        "mysql.utf8mb4": true,                                                                                                      
        "dbuser": "***REMOVED SENSITIVE VALUE***",                                                                                  
        "dbpassword": "***REMOVED SENSITIVE VALUE***",                                                                              
        "installed": true,                                                                                                          
        "redis": {                                                                                                                  
            "host": "***REMOVED SENSITIVE VALUE***",                                                                                
            "port": 0                                                                                                               
        },                                                                                                                          
        "memcache.local": "\\OC\\Memcache\\Redis",                                                                                  
        "memcache.locking": "\\OC\\Memcache\\Redis",                                                                                
        "maintenance": true,                                                                                                        
        "theme": "",                                                                                                                
        "loglevel": 0,                                                                                                              
        "updater.secret": "***REMOVED SENSITIVE VALUE***"                                                                           
    }                                                                                                                               
}                                         

Are you using encryption: no

Logs

root@nextcloud:/usr/local/www/apache24/data/nextcloud # sudo -u www php ./occ upgrade                                               
The current PHP memory limit is below the recommended value of 512MB.                                                               
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                                                                                                              
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 /usr/local/www/apache24/data/nextcloud/lib/private/Http/Client/Client.php:161                                                                                                                           
Stack trace:                                                                                                                        
#0 /usr/local/www/apache24/data/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(106): OC\Http\Client\Client->get('https://apps.ne...', Array)                                                                                                                    
#1 /usr/local/www/apache24/data/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php(80): OC\App\AppStore\Fetcher\Fetcher->fetch('', '')                                                                                                                           
#2 /usr/local/www/apache24/data/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(170): OC\App\AppStore\Fetcher\AppFetcher->fetch('', '')                                                                                                                          
#3 /usr/local/www/apache24/data/nextcloud/lib/private/Installer.php(385): OC\App\AppStore\Fetcher Fetcher->get()                    
#4 /usr/local/www/apache24/data/nextcloud/lib/private/Updater.php(445): OC\Installer->isUpdateAvailable('activity')                 
#5 /usr/local/www/apache24/data/nextcloud/lib/private/Updater.php(256): OC\Updater->upgradeAppStoreApps(Array)                      
#6 /usr/local/www/apache24/data/nextcloud/lib/private/Updater.php(126): OC\Updater->doUpgrade('14.0.3.0', '13.0.6.1')               
#7 /usr/local/www/apache24/data/nextcloud/core/Command/Upgrade.php(262): OC\Updater->upgrade()                                      
#8 /usr/local/www/apache24/data/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 /usr/local/www/apache24/data/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 /usr/local/www/apache24/data/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 /usr/local/www/apache24/data/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 /usr/local/www/apache24/data/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 /usr/local/www/apache24/data/nextcloud/console.php(96): OC\Console\Application->run()                                           
#14 /usr/local/www/apache24/data/nextcloud/occ(11): require_once('/usr/local/www/...')  
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #8912 (Upgrade from 12.0.6 to 13.0.1 failed), #11166 (upgrading from 13.0.6 to 14 failed on GuzzleClient\Client), #3242 (Upgrade from 10.0.3 to 11.0.1 fails with database error), #11784 (14.0.3), and #11797 (Upgrade from 13.0.7 to 14.0.2 failed).

@RealOrangeOne
Copy link
Author

Turns out this was a duplicate of #11797, woops!

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

2 participants