Internal Server Error when going into Overview

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 12.0.2): 14
Operating system and version (eg, Ubuntu 17.04): Ubuntu Server 16.04
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.1): 7.0?

The issue you are facing:

When I click on Overview under Settings, I receive an internal error message:

TypeError: 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/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php on line 65

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Log in
  2. Go to Settings
  3. Click Overview

The output of your Nextcloud log in Admin > Logging:

Error	index	TypeError: 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/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php on line 65
/var/www/html/3rdparty/guzzlehttp/guzzle/src/Middleware.php - line 65:

GuzzleHttp\Exception\RequestException::create(GuzzleHttp\Psr7\Request {}, "*** sensiti ... *")

/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 203:

GuzzleHttp\Middleware::GuzzleHttp\{closure}("*** sensiti ... *")

/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 156:

GuzzleHttp\Promise\Promise::callHandler(1, "*** sensiti ... *", [ GuzzleHttp ... l])

/var/www/html/3rdparty/guzzlehttp/promises/src/TaskQueue.php - line 47:

GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure}("*** sensiti ... *")

/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 246:

GuzzleHttp\Promise\TaskQueue->run(true)

/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 223:

GuzzleHttp\Promise\Promise->invokeWaitFn()

/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 267:

GuzzleHttp\Promise\Promise->waitIfPending()

/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 225:

GuzzleHttp\Promise\Promise->invokeWaitList()

/var/www/html/3rdparty/guzzlehttp/promises/src/Promise.php - line 62:

GuzzleHttp\Promise\Promise->waitIfPending()

/var/www/html/3rdparty/guzzlehttp/guzzle/src/Client.php - line 131:

GuzzleHttp\Promise\Promise->wait()

/var/www/html/lib/private/Http/Client/Client.php - line 161:

GuzzleHttp\Client->request("get", "https://upd ... 4", { verify: "/ ... e})

/var/www/html/lib/private/Updater/ChangesCheck.php - line 127:

OC\Http\Client\Client->get("https://upd ... 4", { headers: []})

/var/www/html/lib/private/Updater/ChangesCheck.php - line 73:

OC\Updater\ChangesCheck->queryChangesServer("https://upd ... 4", OC\Updater\C ... l})

/var/www/html/apps/updatenotification/lib/UpdateChecker.php - line 65:

OC\Updater\ChangesCheck->check("https://upd ... 4", "14.0.4")

/var/www/html/apps/updatenotification/lib/Settings/Admin.php - line 87:

OCA\UpdateNotification\UpdateChecker->getUpdateState()

/var/www/html/settings/Controller/CommonSettingsTrait.php - line 115:

OCA\UpdateNotification\Settings\Admin->getForm()

/var/www/html/settings/Controller/AdminSettingsController.php - line 74:

OC\Settings\Controller\AdminSettingsController->formatSettings({ 10: [ OC\S ... ]})

/var/www/html/settings/Controller/CommonSettingsTrait.php - line 126:

OC\Settings\Controller\AdminSettingsController->getSettings("overview")

/var/www/html/settings/Controller/AdminSettingsController.php - line 65:

OC\Settings\Controller\AdminSettingsController->getIndexResponse("admin", "overview")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 166:

OC\Settings\Controller\AdminSettingsController->index("overview")

/var/www/html/lib/private/AppFramework/Http/Dispatcher.php - line 99:

OC\AppFramework\Http\Dispatcher->executeController(OC\Settings\ ... {}, "index")

/var/www/html/lib/private/AppFramework/App.php - line 118:

OC\AppFramework\Http\Dispatcher->dispatch(OC\Settings\ ... {}, "index")

/var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:

OC\AppFramework\App::main("OC\\Setting ... r", "index", OC\AppFramew ... {}, { section: " ... "})


OC\AppFramework\Routing\RouteActionHandler->__invoke({ section: " ... "})

/var/www/html/lib/private/Route/Router.php - line 297:

call_user_func(OC\AppFramew ... {}, { section: " ... "})

/var/www/html/lib/base.php - line 987:

OC\Route\Router->match("/settings/admin/overview")

/var/www/html/index.php - line 42:

OC::handleRequest()

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 'xxxxxxxxxxxxxxxxxxx',
  'passwordsalt' => 'xxxxxxx+xxxxxxxxxxxxxxxxxx',
  'secret' => 'O9uw4+8/xxxxxxxxxxxxxxx',
  'trusted_domains' => 
  array (
    0 => '192.168.0.25',
    1 => 'cloud.xxxxxxxxxx.com',
  ),
  'datadirectory' => '/nextcloud/data/data',
  'overwrite.cli.url' => 'http://x.x.x.x',
  'dbtype' => 'mysql',
  'version' => '14.0.3.0',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxxxxxxx',
  'dbpassword' => 'xxxxxxxxxxxxxx',
  'simpleSignUpLink.shown' => false,
  'installed' => true,
  'filelocking.enabled' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_from_address' => 'xxxxxxxxxx',
  'mail_domain' => 'gmail.com',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '587',
  'mail_smtpname' => 'xxxxxxxxx@gmail.com',
  'mail_smtppassword' => 'xxxxxxxxxxxxx',
  'mail_smtpsecure' => 'tls',
  'theme' => '',
  'loglevel' => 2,
);

The output of your Apache/nginx/system log in /var/log/____:

[Mon Dec 10 00:08:54.308154 2018] [mpm_prefork:notice] [pid 1604] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Mon Dec 10 00:08:54.308219 2018] [core:notice] [pid 1604] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 10 10:23:39.882301 2018] [core:notice] [pid 1604] AH00051: child pid 15146 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Dec 10 10:23:39.882436 2018] [mpm_prefork:notice] [pid 1604] AH00169: caught SIGTERM, shutting down
[Mon Dec 10 10:25:54.140325 2018] [mpm_prefork:notice] [pid 1873] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Mon Dec 10 10:25:54.708317 2018] [core:notice] [pid 1873] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 10 11:22:05.382433 2018] [php7:error] [pid 2124] [client 192.168.0.11:43382] PHP Fatal error:  Allowed memory size of 536870912 bytes exhausted (tried to allocate 3740488544 bytes) in /var/www/html/apps/files_external_gdrive/vendor/guzzlehttp/streams/src/Stream.php on line 135
[Mon Dec 10 16:18:28.170675 2018] [core:notice] [pid 1873] AH00051: child pid 11356 exit signal Segmentation fault (11), possible coredump in /etc/apache2
[Mon Dec 10 16:18:28.170831 2018] [mpm_prefork:notice] [pid 1873] AH00169: caught SIGTERM, shutting down
[Mon Dec 10 16:19:37.400159 2018] [mpm_prefork:notice] [pid 15088] AH00163: Apache/2.4.29 (Ubuntu) OpenSSL/1.1.0g configured -- resuming normal operations
[Mon Dec 10 16:19:37.400371 2018] [core:notice] [pid 15088] AH00094: Command line: '/usr/sbin/apache2'```

I remembered the last thing I did was setup Google Drive as an external source. I disabled the app and I do not get internal errors anymore. Shame because it seemed Google Drive was working…

1 Like