"Internal server error" after updating apps - Locked out web interface

Support intro

Nextcloud version 15.0.5.3 :
Operating system and version 18.04.2 LTS (Bionic Beaver) :
Apache or nginx version apache :
PHP version 7.2 :

The issue you are facing: After a web update of some applications I am now locked out of from the web interface. I get “internal server errror” message.

Is this the first time you’ve seen this error? Y

Steps to replicate it:

  1. Login as administrator;
  2. updated some applications that were obsolete via web interface;
  3. received “internal server error after navigating out of the page”

The output of your Nextcloud log in Admin > Logging:

{"reqId":"manrms2JIx9ZmV3GZLEO","level":3,"time":"2019-03-11T01:10:15+00:00","remoteAddr":"******","user":"alessio","app":"index","method":"GET","url":"\/index.php\/apps\/files\/","message":{"Exception":"OCP\\Files\\NotFoundException","Message":"\/alessio\/files\/Documents\/QuickNote","Code":0,"Trace":[{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Files\/Node\/Folder.php","line":134,"function":"get","class":"OC\\Files\\Node\\Root","type":"->","args":["\/alessio\/files\/Documents\/QuickNote"]},{"file":"\/var\/www\/******.it\/public_html\/apps\/carnet\/lib\/Hooks\/FSHooks.php","line":26,"function":"get","class":"OC\\Files\\Node\\Folder","type":"->","args":["Documents\/QuickNote"]},{"file":"\/var\/www\/******.it\/public_html\/apps\/carnet\/appinfo\/app.php","line":55,"function":"__construct","class":"OCA\\Carnet\\Hooks\\FSHooks","type":"->","args":[{"__class__":"OC\\Files\\Node\\Folder"},"alessio",{"__class__":"OC\\AllConfig"},"carnet",{"__class__":"OC\\DB\\Connection"}]},{"function":"OCA\\Carnet\\AppInfo\\{closure}","class":"OCA\\Carnet\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Hooks\/EmitterTrait.php","line":99,"function":"call_user_func_array","args":[{"__class__":"Closure"},["*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Hooks\/PublicEmitter.php","line":36,"function":"emit","class":"OC\\Hooks\\BasicEmitter","type":"->","args":["\\OC\\Files","postWrite",["*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Files\/Node\/Root.php","line":136,"function":"emit","class":"OC\\Hooks\\PublicEmitter","type":"->","args":["\\OC\\Files","postWrite",["*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Files\/Node\/Node.php","line":108,"function":"emit","class":"OC\\Files\\Node\\Root","type":"->","args":["\\OC\\Files","postWrite",["*** sensitive parameter replaced ***"]]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Files\/Node\/File.php","line":70,"function":"sendHooks","class":"OC\\Files\\Node\\Node","type":"->","args":[["postWrite"]]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Files\/SimpleFS\/SimpleFile.php","line":104,"function":"putContent","class":"OC\\Files\\Node\\File","type":"->","args":[":root {\n--icon-confirm-fade-000: url(data:image\/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdib3g9IjAgMCAxNiAxNiIgd2lkdGg9IjE2IiB2ZXJzaW9uPSIxLjEiIGhlaWdodD0iMTYiPjxwYXRoIG9wYWNpdHk9Ii41IiBkPSJtOC41IDAuNWMtMC44OTc0IDAtMS4zNDA0IDEuMDkwOS0wLjY5NzMgMS43MTY4bDQuNzgzNyA0Ljc4MzJoLTExLjU3M2MtMS4zNTIzLTAuMDE5MTI1LTEuMzUyMyAyLjAxOTEgMCAyaDExLjU3MmwtNC43ODMyIDQuNzgzMmMtMC45ODE2MyAwLjk0MjUxIDAuNDcxNTUgMi4zOTU3IDEuNDE0MSAxLjQxNDFsNi40OTExLTYuNDljMC4zODctMC4zODc4IDAuMzkxLTEuMDIyOCAwLTEuNDE0bC02LjQ5MDYtNi40OTAzYy0wLjE4ODMtMC4xOTM1LTAuNDQ2OC0wLjMwMjY4LTAuNzE2OC0wLjMwMjd6IiBmaWxsPSIjMDAwIi8+PC9zdmc+Cg==);--icon-add-000: url(data:image\/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMTYiIHdpZHRoPSIxNiIgdmVyc2lvbj0iMS4xIiB2aWV3Ym94PSIwIDAgMTYgMTYiPjxwYXRoIGQ9Ik05LjAyIDEzLjk4aC0ydi01aC01di0yaDV2LTVoMnY1bDUtLjAyOFY4Ljk4aC01eiIgZmlsbD0iIzAwMCIvPjwvc3ZnPgo=);--icon-add-fff:  ******STRIPPED CODE ****{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/AppFramework\/Http\/Dispatcher.php","line":119,"function":"render","class":"OCP\\AppFramework\\Http\\TemplateResponse","type":"->","args":[]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/AppFramework\/App.php","line":118,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Files\\Controller\\ViewController"},"index"]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["ViewController","index",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"_route":"files.view.index"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"_route":"files.view.index"}]},{"file":"\/var\/www\/******.it\/public_html\/lib\/private\/Route\/Router.php","line":297,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"_route":"files.view.index"}]},{"file":"\/var\/www\/******.it\/public_html\/lib\/base.php","line":987,"function":"match","class":"OC\\Route\\Router","type":"->","args":["\/apps\/files\/"]},{"file":"\/var\/www\/******.it\/public_html\/index.php","line":42,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"\/var\/www\/******.it\/public_html\/lib\/private\/Files\/Node\/Root.php","Line":202,"CustomMessage":"--"},"userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/71.0.3578.98 Safari\/537.36","version":"15.0.5.3"}

The output of your config.php file in /path/to/nextcloud:

$CONFIG = array (
  'instanceid' => '***',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => '***',
  ),
  'datadirectory' => '/NCDataIM',
  'dbtype' => 'mysql',
  'version' => '15.0.5.3',
  'overwrite.cli.url' => 'https://***.it',
  'dbname' => '***',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '***',
  'dbpassword' => '***',
  'installed' => true,
  'memcache.local' => '\\OC\\Memcache\\Redis',
  'filelocking.enabled' => 'true',
  'memcache.distributed' => '\\OC\\Memcache\\Redis',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0,
    'dbindex' => 0,
  ),
  'mail_from_address' => '***',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => '***',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '***',
  'mail_smtpport' => '587',
  'mail_smtpname' => '***',
  'mail_smtppassword' => '***',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'updater.release.channel' => 'stable',
);

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

*** - - [11/Mar/2019:02:44:28 +0100] "GET /index.php/apps/files/ HTTP/1.1" 500 15752 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"

List of installed apps:

Enabled:
  - accessibility: 1.1.0
  - activity: 2.8.2
  - announcementcenter: 3.4.1
  - calendar: 1.6.4
  - camerarawpreviews: 0.6.3
  - carnet: 0.13.5
  - cloud_federation_api: 0.1.0
  - comments: 1.5.0
  - dav: 1.8.1
  - drawio: 0.9.2
  - federatedfilesharing: 1.5.0
  - federation: 1.5.0
  - files: 1.10.0
  - files_pdfviewer: 1.4.0
  - files_retention: 1.4.1
  - files_rightclick: 0.11.0
  - files_sharing: 1.7.0
  - files_texteditor: 2.7.0
  - files_trashbin: 1.5.0
  - files_versions: 1.8.0
  - files_videoplayer: 1.4.0
  - firstrunwizard: 2.4.0
  - fulltextsearch: 1.2.5
  - gallery: 18.2.0
  - groupfolders: 2.0.3
  - impersonate: 1.2.0
  - logreader: 2.0.0
  - lookup_server_connector: 1.3.0
  - mail: 0.11.0
  - nextcloud_announcements: 1.4.0
  - notifications: 2.3.0
  - oauth2: 1.3.0
  - password_policy: 1.5.0
  - polls: 0.10.1
  - provisioning_api: 1.5.0
  - quicknotes: 0.1.6
  - richdocuments: 3.2.3
  - serverinfo: 1.5.0
  - sharebymail: 1.5.0
  - spreed: 5.0.2
  - support: 1.0.0
  - survey_client: 1.3.0
  - systemtags: 1.5.0
  - theming: 1.6.0
  - twofactor_backupcodes: 1.4.1
  - updatenotification: 1.5.0
  - w2g2: 2.2.4
  - workflowengine: 1.5.0
Disabled:
  - admin_audit
  - encryption
  - files_external
  - user_ldap

I also tried installing and removing Quicknotes app via command line but there is no way to login.