Server: Exception: The requested uri() cannot be processed by the script './occ'

Created on 18 Oct 2018  ·  17Comments  ·  Source: nextcloud/server

Steps to reproduce

  1. Run sudo -u www-data ./occ
    2.
    3.

Expected behaviour

I should get the help text.

Actual behaviour

I get this exception:

The current PHP memory limit is below the recommended value of 512MB.
An unhandled exception has been thrown:
Exception: The requested uri() cannot be processed by the script './occ') in /srv/nextcloud/www/lib/private/AppFramework/Http/Request.php:742
Stack trace:
#0 /srv/nextcloud/www/lib/private/AppFramework/Http/Request.php(768): OC\AppFramework\Http\Request->getRawPathInfo()
#1 /srv/nextcloud/www/lib/private/legacy/app.php(592): OC\AppFramework\Http\Request->getPathInfo()
#2 /srv/nextcloud/www/lib/private/Server.php(1380): OC_App::getCurrentApp()
#3 /srv/nextcloud/www/apps/carnet/appinfo/app.php(39): OC\Server->getAppFolder()
#4 /srv/nextcloud/www/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OCA\Carnet\AppInfo\Application->OCA\Carnet\AppInfo\{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
#5 /srv/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('AppFolder')
#6 /srv/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php(446): OC\AppFramework\Utility\SimpleContainer->query('AppFolder')
#7 /srv/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php(424): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('AppFolder')
#8 /srv/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php(68): OC\AppFramework\DependencyInjection\DIContainer->query('AppFolder')
#9 /srv/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#10 /srv/nextcloud/www/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\Carnet\\Comm...')
#11 /srv/nextcloud/www/lib/private/AppFramework/DependencyInjection/DIContainer.php(453): OC\AppFramework\Utility\SimpleContainer->query('OCA\\Carnet\\Comm...')
#12 /srv/nextcloud/www/lib/private/ServerContainer.php(116): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\Carnet\\Comm...')
#13 /srv/nextcloud/www/lib/private/Console/Application.php(219): OC\ServerContainer->query('OCA\\Carnet\\Comm...')
#14 /srv/nextcloud/www/lib/private/Console/Application.php(134): OC\Console\Application->loadCommandsFromInfoXml(Array)
#15 /srv/nextcloud/www/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /srv/nextcloud/www/occ(11): require_once('/srv/nextcloud/...')
#17 {main}

Server configuration

Operating system: Ubuntu 18.04

Web server: Nginx + PHP-FPM

Database: SQLite

PHP version: 7.2.11-2+ubuntu18.04.1+deb.sury.org+1

Nextcloud version: 14.0.3

Updated from an older Nextcloud/ownCloud or fresh install: Yes. I've been updating since ownCLoud was a thing :P

Where did you install Nextcloud from: The website, by unpacking the provided tar.gz

Signing status:


Signing status

No errors have been found.

List of activated apps:


App list

Enabled:
  - accessibility: 1.0.1
  - activity: 2.7.0
  - admin_notifications: 1.0.2
  - apporder: 0.5.0
  - bookmarks: 0.13.1
  - calendar: 1.6.3
  - carnet: 0.8.6
  - checksum: 0.4.1
  - cloud_federation_api: 0.0.1
  - comments: 1.4.0
  - contacts: 2.1.6
  - dav: 1.6.0
  - drawio: 0.9.1
  - dropit: 0.1.1
  - external: 3.1.0
  - federatedfilesharing: 1.4.0
  - federation: 1.4.0
  - files: 1.9.0
  - files_external: 1.5.0
  - files_external_gdrive: 0.2.8
  - files_linkeditor: 1.0.7
  - files_pdfviewer: 1.3.2
  - files_sharing: 1.6.2
  - files_texteditor: 2.6.0
  - files_trashbin: 1.4.1
  - files_videoplayer: 1.3.0
  - firstrunwizard: 2.3.0
  - gallery: 18.1.0
  - group_everyone: 0.1.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.2.0
  - music: 0.9.2
  - nextcloud_announcements: 1.3.0
  - notifications: 2.2.1
  - oauth2: 1.2.1
  - ojsxc: 3.4.2
  - onlyoffice: 2.0.4
  - password_policy: 1.4.0
  - polls: 0.8.3
  - previewgenerator: 1.1.0
  - provisioning_api: 1.4.0
  - serverinfo: 1.4.0
  - sharebymail: 1.4.0
  - spreed: 4.0.0
  - support: 1.0.0
  - survey_client: 1.2.0
  - systemtags: 1.4.0
  - theming: 1.5.0
  - twofactor_backupcodes: 1.3.1
  - twofactor_totp: 1.5.0
  - twofactor_u2f: 1.6.1
  - updatenotification: 1.4.1
  - user_external: 0.4
  - workflowengine: 1.4.0
Disabled:
  - admin_audit
  - encryption
  - files_versions
  - user_ldap

Nextcloud configuration:


Config report

```{
"system": {
"instanceid": "REMOVED SENSITIVE VALUE",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"maintenance": false,
"trusted_domains": [
"nextcloud.starbeamrainbowlabs.com",
"owncloud.starbeamrainbowlabs.com",
"admin.starbeamrainbowlabs.com"
],
"datadirectory": "REMOVED SENSITIVE VALUE",
"overwrite.cli.url": "https:\/\/admin.starbeamrainbowlabs.com\/owncloud",
"dbtype": "sqlite3",
"version": "14.0.3.0",
"installed": true,
"forcessl": false,
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_smtpmode": "sendmail",
"mail_domain": "REMOVED SENSITIVE VALUE",
"forceSSLforSubdomains": false,
"theme": "",
"ldapIgnoreNamingRules": false,
"loglevel": 0,
"trashbin_retention_obligation": "auto",
"memcache.local": "\OC\Memcache\APCu",
"updater.release.channel": "stable"
}
}

</details>

**Are you using external storage, if yes which one:** yes - SFTP

**Are you using encryption:** yes/no

**Are you using an external user-backend, if yes which one:** nope

### Client configuration
**Browser:** Mozilla Firefox 62.0.3

**Operating system:** Ubuntu 18.04

### Logs
#### Web server error log
<details>
<summary>Web server error log</summary>

n/a

</details>

#### Nextcloud log (data/nextcloud.log)
<details>
<summary>Nextcloud log (last 10 lines)</summary>

{"reqId":"Wm1RZ0OE7uobdT1agTKs","level":1,"time":"2018-10-18T20:49:28+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"no app in context","method":"GET","url":"\/index.php\/settings\/user\/externalstorages","message":{"Exception":"OCP\AppFramework\QueryException","Message":"Could not resolve OCA\Drawio\Settings\AdminSettings! Class OCA\Drawio\Settings\AdminSettings does not exist","Code":0,"Trace":[{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":119,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/ServerContainer.php","line":132,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":216,"function":"query","class":"OC\ServerContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":342,"function":"getSettings","class":"OC\Settings\Manager","type":"->","args":["admin","bookmarks"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":65,"function":"getAdminSettings","class":"OC\Settings\Manager","type":"->","args":["bookmarks"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":101,"function":"formatSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":[{"0":[{"__class__":"OC\Settings\Section"}],"1":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\ServerInfo\Settings\AdminSection"},{"__class__":"OCA\Support\Settings\Section"}],"5":[{"__class__":"OC\Settings\Section"}],"10":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\Files_External\Settings\Section"}],"30":[{"__class__":"OCA\Theming\Settings\Section"}],"50":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\OJSXC\Settings\Section"},{"__class__":"OCA\Onlyoffice\AdminSection"}],"55":[{"__class__":"OCA\Activity\Settings\AdminSection"},{"__class__":"OCA\External\Settings\Section"},{"__class__":"OCA\WorkflowEngine\Settings\Section"}],"70":[{"__class__":"OCA\Spreed\Settings\Admin\Section"}],"80":[{"__class__":"OCA\Bookmarks\Settings\AdminSection"},{"__class__":"OCA\Survey_Client\Settings\AdminSection"}],"90":[{"__class__":"OCA\LogReader\Settings\Section"}],"98":[{"__class__":"OC\Settings\Section"}]},"externalstorages","admin","personal"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":51,"function":"formatAdminSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":125,"function":"getNavigationParameters","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/PersonalSettingsController.php","line":57,"function":"getIndexResponse","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Settings\Controller\PersonalSettingsController","index",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/base.php","line":987,"function":"match","class":"OC\Route\Router","type":"->","args":["\/settings\/user\/externalstorages"]},{"file":"\/srv\/nextcloud\/www\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","Line":104,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"Wm1RZ0OE7uobdT1agTKs","level":1,"time":"2018-10-18T20:49:28+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"no app in context","method":"GET","url":"\/index.php\/settings\/user\/externalstorages","message":{"Exception":"OCP\AppFramework\QueryException","Message":"Could not resolve OCA\Drawio\Settings\AdminSettings! Class OCA\Drawio\Settings\AdminSettings does not exist","Code":0,"Trace":[{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":119,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/ServerContainer.php","line":132,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":216,"function":"query","class":"OC\ServerContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":342,"function":"getSettings","class":"OC\Settings\Manager","type":"->","args":["admin","survey_client"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":65,"function":"getAdminSettings","class":"OC\Settings\Manager","type":"->","args":["survey_client"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":101,"function":"formatSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":[{"0":[{"__class__":"OC\Settings\Section"}],"1":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\ServerInfo\Settings\AdminSection"},{"__class__":"OCA\Support\Settings\Section"}],"5":[{"__class__":"OC\Settings\Section"}],"10":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\Files_External\Settings\Section"}],"30":[{"__class__":"OCA\Theming\Settings\Section"}],"50":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\OJSXC\Settings\Section"},{"__class__":"OCA\Onlyoffice\AdminSection"}],"55":[{"__class__":"OCA\Activity\Settings\AdminSection"},{"__class__":"OCA\External\Settings\Section"},{"__class__":"OCA\WorkflowEngine\Settings\Section"}],"70":[{"__class__":"OCA\Spreed\Settings\Admin\Section"}],"80":[{"__class__":"OCA\Bookmarks\Settings\AdminSection"},{"__class__":"OCA\Survey_Client\Settings\AdminSection"}],"90":[{"__class__":"OCA\LogReader\Settings\Section"}],"98":[{"__class__":"OC\Settings\Section"}]},"externalstorages","admin","personal"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":51,"function":"formatAdminSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":125,"function":"getNavigationParameters","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/PersonalSettingsController.php","line":57,"function":"getIndexResponse","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Settings\Controller\PersonalSettingsController","index",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/base.php","line":987,"function":"match","class":"OC\Route\Router","type":"->","args":["\/settings\/user\/externalstorages"]},{"file":"\/srv\/nextcloud\/www\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","Line":104,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"Wm1RZ0OE7uobdT1agTKs","level":1,"time":"2018-10-18T20:49:28+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"no app in context","method":"GET","url":"\/index.php\/settings\/user\/externalstorages","message":{"Exception":"OCP\AppFramework\QueryException","Message":"Could not resolve OCA\Drawio\Settings\AdminSettings! Class OCA\Drawio\Settings\AdminSettings does not exist","Code":0,"Trace":[{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":119,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/ServerContainer.php","line":132,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":216,"function":"query","class":"OC\ServerContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":342,"function":"getSettings","class":"OC\Settings\Manager","type":"->","args":["admin","logging"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":65,"function":"getAdminSettings","class":"OC\Settings\Manager","type":"->","args":["logging"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":101,"function":"formatSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":[{"0":[{"__class__":"OC\Settings\Section"}],"1":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\ServerInfo\Settings\AdminSection"},{"__class__":"OCA\Support\Settings\Section"}],"5":[{"__class__":"OC\Settings\Section"}],"10":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\Files_External\Settings\Section"}],"30":[{"__class__":"OCA\Theming\Settings\Section"}],"50":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\OJSXC\Settings\Section"},{"__class__":"OCA\Onlyoffice\AdminSection"}],"55":[{"__class__":"OCA\Activity\Settings\AdminSection"},{"__class__":"OCA\External\Settings\Section"},{"__class__":"OCA\WorkflowEngine\Settings\Section"}],"70":[{"__class__":"OCA\Spreed\Settings\Admin\Section"}],"80":[{"__class__":"OCA\Bookmarks\Settings\AdminSection"},{"__class__":"OCA\Survey_Client\Settings\AdminSection"}],"90":[{"__class__":"OCA\LogReader\Settings\Section"}],"98":[{"__class__":"OC\Settings\Section"}]},"externalstorages","admin","personal"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":51,"function":"formatAdminSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":125,"function":"getNavigationParameters","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/PersonalSettingsController.php","line":57,"function":"getIndexResponse","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Settings\Controller\PersonalSettingsController","index",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/base.php","line":987,"function":"match","class":"OC\Route\Router","type":"->","args":["\/settings\/user\/externalstorages"]},{"file":"\/srv\/nextcloud\/www\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","Line":104,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"Wm1RZ0OE7uobdT1agTKs","level":1,"time":"2018-10-18T20:49:28+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"no app in context","method":"GET","url":"\/index.php\/settings\/user\/externalstorages","message":{"Exception":"OCP\AppFramework\QueryException","Message":"Could not resolve OCA\Drawio\Settings\AdminSettings! Class OCA\Drawio\Settings\AdminSettings does not exist","Code":0,"Trace":[{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":119,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/ServerContainer.php","line":132,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":216,"function":"query","class":"OC\ServerContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":342,"function":"getSettings","class":"OC\Settings\Manager","type":"->","args":["admin","additional"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":65,"function":"getAdminSettings","class":"OC\Settings\Manager","type":"->","args":["additional"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":101,"function":"formatSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":[{"0":[{"__class__":"OC\Settings\Section"}],"1":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\ServerInfo\Settings\AdminSection"},{"__class__":"OCA\Support\Settings\Section"}],"5":[{"__class__":"OC\Settings\Section"}],"10":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\Files_External\Settings\Section"}],"30":[{"__class__":"OCA\Theming\Settings\Section"}],"50":[{"__class__":"OC\Settings\Section"},{"__class__":"OCA\OJSXC\Settings\Section"},{"__class__":"OCA\Onlyoffice\AdminSection"}],"55":[{"__class__":"OCA\Activity\Settings\AdminSection"},{"__class__":"OCA\External\Settings\Section"},{"__class__":"OCA\WorkflowEngine\Settings\Section"}],"70":[{"__class__":"OCA\Spreed\Settings\Admin\Section"}],"80":[{"__class__":"OCA\Bookmarks\Settings\AdminSection"},{"__class__":"OCA\Survey_Client\Settings\AdminSection"}],"90":[{"__class__":"OCA\LogReader\Settings\Section"}],"98":[{"__class__":"OC\Settings\Section"}]},"externalstorages","admin","personal"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":51,"function":"formatAdminSections","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":125,"function":"getNavigationParameters","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/PersonalSettingsController.php","line":57,"function":"getIndexResponse","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Settings\Controller\PersonalSettingsController","index",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/base.php","line":987,"function":"match","class":"OC\Route\Router","type":"->","args":["\/settings\/user\/externalstorages"]},{"file":"\/srv\/nextcloud\/www\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","Line":104,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"Wm1RZ0OE7uobdT1agTKs","level":1,"time":"2018-10-18T20:49:28+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"no app in context","method":"GET","url":"\/index.php\/settings\/user\/externalstorages","message":{"Exception":"OCP\AppFramework\QueryException","Message":"Could not resolve OCA\Drawio\Settings\AdminSettings! Class OCA\Drawio\Settings\AdminSettings does not exist","Code":0,"Trace":[{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","line":119,"function":"resolve","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/ServerContainer.php","line":132,"function":"query","class":"OC\AppFramework\Utility\SimpleContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":216,"function":"query","class":"OC\ServerContainer","type":"->","args":["OCA\Drawio\Settings\AdminSettings"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Settings\/Manager.php","line":404,"function":"getSettings","class":"OC\Settings\Manager","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/PersonalSettingsController.php","line":66,"function":"getPersonalSettings","class":"OC\Settings\Manager","type":"->","args":["externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/CommonSettingsTrait.php","line":126,"function":"getSettings","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["externalstorages"]},{"file":"\/srv\/nextcloud\/www\/settings\/Controller\/PersonalSettingsController.php","line":57,"function":"getIndexResponse","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["personal","externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"index","class":"OC\Settings\Controller\PersonalSettingsController","type":"->","args":["externalstorages"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OC\Settings\Controller\PersonalSettingsController"},"index"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OC\Settings\Controller\PersonalSettingsController","index",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"section":"externalstorages","_route":"settings.PersonalSettings.index"}]},{"file":"\/srv\/nextcloud\/www\/lib\/base.php","line":987,"function":"match","class":"OC\Route\Router","type":"->","args":["\/settings\/user\/externalstorages"]},{"file":"\/srv\/nextcloud\/www\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Utility\/SimpleContainer.php","Line":104,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"Wm1RZ0OE7uobdT1agTKs","level":0,"time":"2018-10-18T20:49:28+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"no app in context","method":"GET","url":"\/index.php\/settings\/user\/externalstorages","message":"No cache entry found for \/appdata_oc7nu0qgtr6j\/avatar\/admin\/avatar.jpg (storage: local::\/srv\/nextcloud\/data\/, internalPath: appdata_oc7nu0qgtr6j\/avatar\/admin\/avatar.jpg)","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"NNop3eZGpeHnWNMSYfdW","level":0,"time":"2018-10-18T20:49:30+00:00","remoteAddr":"5.198.44.45","user":"--","app":"cron","method":"GET","url":"\/cron.php","message":"Run OC\Preview\BackgroundCleanupJob job with ID 143","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"NNop3eZGpeHnWNMSYfdW","level":0,"time":"2018-10-18T20:49:30+00:00","remoteAddr":"5.198.44.45","user":"--","app":"cron","method":"GET","url":"\/cron.php","message":"Finished OC\Preview\BackgroundCleanupJob job with ID 143 in 0 seconds","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"3Nuq1ynO6iEL5mo78zgz","level":3,"time":"2018-10-18T20:49:31+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"PHP","method":"GET","url":"\/index.php\/apps\/files_external\/userstorages\/1?testOnly=true","message":"Cannot connect to marxhairhull.co.uk:22. Error 111. Connection refused at \/srv\/nextcloud\/www\/apps\/files_external_gdrive\/vendor\/phpseclib\/phpseclib\/phpseclib\/Net\/SSH2.php#1122","userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}
{"reqId":"3Nuq1ynO6iEL5mo78zgz","level":3,"time":"2018-10-18T20:49:31+00:00","remoteAddr":"5.198.44.45","user":"admin","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/userstorages\/1?testOnly=true","message":{"Exception":"Exception","Message":"Login failed","Code":0,"Trace":[{"file":"\/srv\/nextcloud\/www\/apps\/files_external\/lib\/Lib\/Storage\/SFTP.php","line":162,"function":"getConnection","class":"OCA\Files_External\Lib\Storage\SFTP","type":"->","args":[]},{"file":"\/srv\/nextcloud\/www\/apps\/files_external\/lib\/config.php","line":240,"function":"test","class":"OCA\Files_External\Lib\Storage\SFTP","type":"->","args":[false,"true"]},{"file":"\/srv\/nextcloud\/www\/apps\/files_external\/lib\/Controller\/StoragesController.php","line":256,"function":"getBackendStatus","class":"OC_Mount_Config","type":"::","args":["\OCA\Files_External\Lib\Storage\SFTP",{"host":"marxhairhull.co.uk","user":"u73146175","password":"m00ncarr0ts0up","root":"\/"},false,"true"]},{"file":"\/srv\/nextcloud\/www\/apps\/files_external\/lib\/Controller\/StoragesController.php","line":305,"function":"updateStorageStatus","class":"OCA\Files_External\Controller\StoragesController","type":"->","args":[{"__class__":"OCA\Files_External\Lib\StorageConfig"},"true"]},{"file":"\/srv\/nextcloud\/www\/apps\/files_external\/lib\/Controller\/UserStoragesController.php","line":107,"function":"show","class":"OCA\Files_External\Controller\StoragesController","type":"->","args":["1","true"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":166,"function":"show","class":"OCA\Files_External\Controller\UserStoragesController","type":"->","args":["1","true"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":99,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OCA\Files_External\Controller\UserStoragesController"},"show"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->","args":[{"__class__":"OCA\Files_External\Controller\UserStoragesController"},"show"]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\AppFramework\App","type":"::","args":["OCA\Files_External\Controller\UserStoragesController","show",{"__class__":"OC\AppFramework\DependencyInjection\DIContainer"},{"id":"1","_route":"files_external.user_storages.show"}]},{"function":"__invoke","class":"OC\AppFramework\Routing\RouteActionHandler","type":"->","args":[{"id":"1","_route":"files_external.user_storages.show"}]},{"file":"\/srv\/nextcloud\/www\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\AppFramework\Routing\RouteActionHandler"},{"id":"1","_route":"files_external.user_storages.show"}]},{"file":"\/srv\/nextcloud\/www\/lib\/base.php","line":987,"function":"match","class":"OC\Route\Router","type":"->","args":["\/apps\/files_external\/userstorages\/1"]},{"file":"\/srv\/nextcloud\/www\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/srv\/nextcloud\/www\/apps\/files_external\/lib\/Lib\/Storage\/SFTP.php","Line":147,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko\/20100101 Firefox\/62.0","version":"14.0.3.0"}

</details>

#### Browser log
<details>
<summary>Browser log</summary>

n/a
```

bug

All 17 comments

GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/10954 (OCC upgrade throws unhandled exception), https://github.com/nextcloud/server/issues/8437 (Exception while scanning AND occ files:scan doesn't fix it), https://github.com/nextcloud/server/issues/1592 (Improve feedback of occ script), https://github.com/nextcloud/server/issues/8657 (Exception during scan: Invalid request for / (ForbiddenException)), and https://github.com/nextcloud/server/issues/4288 (Tons of "Exception when running cache gc: This request is not allowed to access the filesystem").

Nope, @nextcloud-bot, none of those issues are related.

The current PHP memory limit is below the recommended value of 512MB.

Have you tried to raise memory_limit of PHP to 512M?

@timm2k Not yet. It was working before - without any changes to my PHP config. Is there any reason why 1/2GiB is now the 'recommended' amount of RAM? If all my PHP-FPM processes used that much, I'd be out of RAM in no time.

Also, the label is incorrect. I'm not on version 14 beta, I'm on the official release.

I am having the same problem on 14.0.3 official.

As well, I do not have the warning about PHP memory limit, so that warning (in OP) is unrelated.

It problem began after the most recent upgrade from 14.0.1 to 14.0.3, although just after installation I
was able to run "occ upgrade" and it ran properly.

─── sudo -u http ./occ
An unhandled exception has been thrown:
Exception: The requested uri() cannot be processed by the script './occ') in /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Request.php:742               
Stack trace:
#0 /usr/share/webapps/nextcloud/lib/private/AppFramework/Http/Request.php(768): OC\AppFramework\Http\Request->getRawPathInfo()                                        
#1 /usr/share/webapps/nextcloud/lib/private/legacy/app.php(592): OC\AppFramework\Http\Request->getPathInfo()                                                          
#2 /usr/share/webapps/nextcloud/lib/private/Server.php(1380): OC_App::getCurrentApp()                                                                                 
#3 /usr/share/webapps/nextcloud/apps/carnet/appinfo/app.php(39): OC\Server->getAppFolder()                                                                            
#4 /usr/share/webapps/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OCA\Carnet\AppInfo\Application->OCA\Carnet\AppInfo\{closure}(Object(OC\AppFramework\DependencyInjection\DIContainer))
#5 /usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(117): Pimple\Container->offsetGet('AppFolder')                                   
#6 /usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php(446): OC\AppFramework\Utility\SimpleContainer->query('AppFolder')        
#7 /usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php(424): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('AppFolder')
#8 /usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(68): OC\AppFramework\DependencyInjection\DIContainer->query('AppFolder')         
#9 /usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(98): OC\AppFramework\Utility\SimpleContainer->buildClass(Object(ReflectionClass))
#10 /usr/share/webapps/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(119): OC\AppFramework\Utility\SimpleContainer->resolve('OCA\\Carnet\\Comm...')  
#11 /usr/share/webapps/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php(453): OC\AppFramework\Utility\SimpleContainer->query('OCA\\Carnet\\Comm...')
#12 /usr/share/webapps/nextcloud/lib/private/ServerContainer.php(116): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback('OCA\\Carnet\\Comm...')       
#13 /usr/share/webapps/nextcloud/lib/private/Console/Application.php(219): OC\ServerContainer->query('OCA\\Carnet\\Comm...')                                          
#14 /usr/share/webapps/nextcloud/lib/private/Console/Application.php(134): OC\Console\Application->loadCommandsFromInfoXml(Array)                                     
#15 /usr/share/webapps/nextcloud/console.php(95): OC\Console\Application->loadCommands(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /usr/share/webapps/nextcloud/occ(11): require_once('/usr/share/weba...')
#17 {main}#   

Try to disable carnet app before upgrade.

Try to disable carnet app before upgrade.

Thank you. I should have seen that.

@danielkesselberg: Thanks for the message! Unfortunately, I've already upgraded. Does this workaround still do the job?

Also, what is this carnet app? I don't remember installing it.

When ./occ fails with the same error I would try it.

Erm how can I disable it if ./occ doesn't work? Delete the folder, @danielkesselberg?

When you cannot use occ or web gui i would try to delete it yes (make a backup!)

Thanks, @danielkesselberg - that fixed the issue. What was the carnet app, anyway?

https://apps.nextcloud.com/apps/carnet this one maybe? Its not installed by default.

Ah, I remember now. That's a nasty bug to leave lying around in an app..... I'll reopen the issue against that repo, if I can find it.

Opened PhieF/CarnetNextcloud#14

@danielkesselberg that was it, brilliant find, I was hitting my head against the walls here.

Was this page helpful?
0 / 5 - 0 ratings