Error while trying to update/upgrade

Hi everybody.

I’ve been using the latest T&M Hansson IT AB Nextcloud VM .ova, but I just faced an issue while trying to upgrade, where I’m stuck.

Background info

An important note is that my nextcloud data is on /mnt/nextcloud, mounted on a windows server shared folder.

I was testing the external storage plugin, with Google Drive and mounting local /mnt/storage/ folder, where it ran normally for a few months. Then out of nowhere the storage was full. I understand that external storage only mounts, but somehow the storage was full. As I am on a heavy schedule at work, I could not manage to research what happened. I deleted mounting points and everithing went back to normal.

Now while I was trying to update my nextcloud installation, I got with several errors. First of all when I click on settings > overview to check for updates, I got an internal server error, which details are found on /mnt/nextcloud/nextcloud.log:

{"reqId":"kHQoNhtq1KVWVvC9wQ0H","level":3,"time":"2019-04-14T23:20:40+00:00","remoteAddr":"10.10.100.100","user":"agusttt","app":"index","method":"GET","url":"\/settings\/admin\/overview","message":{"Exception":"TypeError","Message":"Argument 1 passed to GuzzleHttp\\Exception\\RequestException::create() must be an instance of GuzzleHttp\\Message\\RequestInterface, instance of GuzzleHttp\\Psr7\\Request given, called in \/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Middleware.php on line 66","Code":0,"Trace":[{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Middleware.php","line":66,"function":"create","class":"GuzzleHttp\\Exception\\RequestException","type":"::","args":[{"__class__":"GuzzleHttp\\Psr7\\Request"},"*** sensitive parameter replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":203,"function":"GuzzleHttp\\{closure}","class":"GuzzleHttp\\Middleware","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":156,"function":"callHandler","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":[1,"*** sensitive parameter replaced ***",[{"__class__":"GuzzleHttp\\Promise\\Promise"},{"__class__":"Closure"},null]]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/TaskQueue.php","line":47,"function":"GuzzleHttp\\Promise\\{closure}","class":"GuzzleHttp\\Promise\\Promise","type":"::","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":246,"function":"run","class":"GuzzleHttp\\Promise\\TaskQueue","type":"->","args":[true]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":223,"function":"invokeWaitFn","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":267,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":225,"function":"invokeWaitList","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/promises\/src\/Promise.php","line":62,"function":"waitIfPending","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/3rdparty\/guzzlehttp\/guzzle\/src\/Client.php","line":131,"function":"wait","class":"GuzzleHttp\\Promise\\Promise","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Http\/Client\/Client.php","line":161,"function":"request","class":"GuzzleHttp\\Client","type":"->","args":["get","https:\/\/updates.nextcloud.com\/changelog_server\/?version=15.0.7",{"verify":"\/mnt\/nextcloud\/files_external\/rootcerts.crt","headers":[],"synchronous":true}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Updater\/ChangesCheck.php","line":127,"function":"get","class":"OC\\Http\\Client\\Client","type":"->","args":["https:\/\/updates.nextcloud.com\/changelog_server\/?version=15.0.7",{"headers":[]}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Updater\/ChangesCheck.php","line":73,"function":"queryChangesServer","class":"OC\\Updater\\ChangesCheck","type":"->","args":["https:\/\/updates.nextcloud.com\/changelog_server\/?version=15.0.7",{"id":null,"__class__":"OC\\Updater\\ChangesResult"}]},{"file":"\/var\/www\/nextcloud\/apps\/updatenotification\/lib\/UpdateChecker.php","line":66,"function":"check","class":"OC\\Updater\\ChangesCheck","type":"->","args":["https:\/\/updates.nextcloud.com\/changelog_server\/?version=15.0.7","15.0.7"]},{"file":"\/var\/www\/nextcloud\/apps\/updatenotification\/lib\/Settings\/Admin.php","line":87,"function":"getUpdateState","class":"OCA\\UpdateNotification\\UpdateChecker","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/settings\/Controller\/CommonSettingsTrait.php","line":115,"function":"getForm","class":"OCA\\UpdateNotification\\Settings\\Admin","type":"->","args":[]},{"file":"\/var\/www\/nextcloud\/settings\/Controller\/AdminSettingsController.php","line":74,"function":"formatSettings","class":"OC\\Settings\\Controller\\AdminSettingsController","type":"->","args":[{"10":[{"__class__":"OC\\Settings\\Admin\\Overview"}],"11":[{"__class__":"OCA\\UpdateNotification\\Settings\\Admin"}]}]},{"file":"\/var\/www\/nextcloud\/settings\/Controller\/CommonSettingsTrait.php","line":126,"function":"getSettings","class":"OC\\Settings\\Controller\\AdminSettingsController","type":"->","args":["overview"]},{"file":"\/var\/www\/nextcloud\/settings\/Controller\/AdminSettingsController.php","line":65,"function":"getIndexResponse","class":"OC\\Settings\\Controller\\AdminSettingsController","type":"->","args":["admin","overview"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OC\\Settings\\Controller\\AdminSettingsController","type":"->","args":["overview"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Settings\\Controller\\AdminSettingsController"},"index"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OC\\Settings\\Controller\\AdminSettingsController"},"index"]},{"file":"\/var\/www\/nextcloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OC\\Settings\\Controller\\AdminSettingsController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"section":"overview","_route":"settings.AdminSettings.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"section":"overview","_route":"settings.AdminSettings.index"}]},{"file":"\/var\/www\/nextcloud\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"section":"overview","_route":"settings.AdminSettings.index"}]},{"file":"\/var\/www\/nextcloud\/lib\/base.php","line":987,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/settings\/admin\/overview"]},{"file":"\/var\/www\/nextcloud\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/nextcloud\/apps\/files_external_gdrive\/vendor\/guzzlehttp\/guzzle\/src\/Exception\/RequestException.php","Line":64,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/73.0.3683.103 Safari\/537.36","version":"15.0.5.3"}

When I tried to update and upgrade via console, I got some errors too, which I assume are related:

sudo -u www-data php /var/www/nextcloud/occ update:check
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/Updater/VersionCheck.php(121): OC\Http\Client\Client->get('https://updates...')
#1 /var/www/nextcloud/lib/private/Updater/VersionCheck.php(86): OC\Updater\VersionCheck->getUrlContent('https://updates...')
#2 /var/www/nextcloud/apps/updatenotification/lib/UpdateChecker.php(49): OC\Updater\VersionCheck->check()
#3 /var/www/nextcloud/apps/updatenotification/lib/Command/Check.php(68): OCA\UpdateNotification\UpdateChecker->getUpdateState()
#4 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OCA\UpdateNotification\Command\Check->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /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))
#6 /var/www/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OCA\UpdateNotification\Command\Check), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /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))
#8 /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))
#9 /var/www/nextcloud/console.php(96): OC\Console\Application->run()
#10 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')
sudo -u www-data php /var/www/nextcloud/occ app:update --all
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('"2019-04-13 11:...', '[{"id":"default...')
#2 /var/www/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php(170): OC\App\AppStore\Fetcher\AppFetcher->fetch('"2019-04-13 11:...', '[{"id":"default...')
#3 /var/www/nextcloud/lib/private/Installer.php(385): OC\App\AppStore\Fetcher\Fetcher->get()
#4 /var/www/nextcloud/core/Command/App/Update.php(99): OC\Installer->isUpdateAvailable('files_external_...')
#5 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\App\Update->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /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))
#7 /var/www/nextcloud/3rdparty/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(OC\Core\Command\App\Update), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /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))
#9 /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))
#10 /var/www/nextcloud/console.php(96): OC\Console\Application->run()
#11 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

This is my Nextcloud installation data.

sudo -u www-data php /var/www/nextcloud/occ status
  - installed: true
  - version: 15.0.5.3
  - versionstring: 15.0.5
  - edition:

If you know how I can get out of this state would be awesome. I understand it should be repairing that GuzzleHttp error, but I’m pretty lost. Please do tell me if you need more info.

Regards.

I meet it also, try to restart update. In my case problem was in NC Update Server - it was unreachable for some time.

I tried for several days updating and upgrading but no luck. It’s the second time my nextcloud installation gets messed up just because the updates.

I don’t want to make an entire installation again, any help will be appreciated.