WEBUI Files tab core dumps and gives error 503

Nextcloud version __: 21.0.0.18
Operating system and version __: Arch Linux
Apache or nginx version __: Apache 2.4.46
PHP version __: 8.0.3
PHP-Fpm Version __: 8.0.3

The issue you are facing:
after upgrading Nextcloud, PHP and installing php-fpm the Files tab in the Webui crashes.

All the other tabs work just fine.
File sharing also does not follow links - but I am not sure if that is because the Files tab is crashing.

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

Steps to replicate it:

It is happening every time since the upgrade.

The output of your Nextcloud log in Admin > Logging:

	App	Message		Time
Warning	no app in context	Invalid data provided to provideInitialState by files	
2021-04-03T12:39:04+0800
Info	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-04-03T12:39:04+0800
Info	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-04-03T12:39:04+0800
Info	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-04-03T12:39:04+0800
Info	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-04-03T12:39:04+0800
Info	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-04-03T12:39:04+0800
Info	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-04-03T12:39:04+0800
Info	no app in context	Deprecated event type for OCA\Files::loadAdditionalScripts: Symfony\Component\EventDispatcher\GenericEvent is used	
2021-04-03T12:39:04+0800
Info	passwords	Passwords runs /usr/share/webapps/nextcloud/cron.php in global mode	
2021-04-03T12:35:05+0800

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

<?php
$CONFIG = array (
  'instanceid' => 'XXXXXX',
  'passwordsalt' => 'XXXXXXX',
  'secret' => 'XXXXXX',
  'logfile' => '/var/log/nextcloud/nextcloud.log',
  'loglevel' => 1,
  'trusted_domains' => 
  array (
    0 => 'XXXXXXX',
    1 => '*',
  ),
  'datadirectory' => '/var/lib/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '21.0.0.18',
  'overwrite.cli.url' => 'https://XXXXXXX/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost:XXXX',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'XXXXXXX',
  'installed' => true,
  'mail_from_address' => 'XXX',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'XXXXX,
  'mail_smtphost' => 'XXXXXXX',
  'mail_smtpport' => '25',
  'theme' => '',
  'maintenance' => false,
  'default_language' => 'en',
  'default_locale' => 'en_AU',
  'default_phone_region' => 'AU',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => [
    [
      'path'=> '/usr/share/webapps/nextcloud/apps',
      'url' => '/apps',
      'writable' => false,
    ],
    [
      'path'=> '/var/lib/nextcloud/apps',
      'url' => '/wapps',
      'writable' => true,
    ],
  ],
);

The output of your Apache system log in /var/log/error.log:

[Sat Apr 03 12:30:46.951881 2021] [proxy_fcgi:error] [pid 726591] [client XXXXXX:XXX] AH01067: Failed to read FastCGI header
[Sat Apr 03 12:30:46.951938 2021] [proxy_fcgi:error] [pid 726591] (104)Connection reset by peer: [client XXXXXX:XXX] AH01075: Error dispatching request to : 
[Sat Apr 03 12:39:07.513046 2021] [proxy_fcgi:error] [pid 726624] [client XXXXXX:XXX] AH01067: Failed to read FastCGI header
[Sat Apr 03 12:39:07.513196 2021] [proxy_fcgi:error] [pid 726624] (104)Connection reset by peer: [client XXXXXX:XXX] AH01075: Error dispatching request to : 

PHP-Fpm Log

[02-Apr-2021 20:51:29] WARNING: [pool nextcloud] child 598830 exited on signal 11 (SIGSEGV - core dumped) after 1890.252655 seconds from start
[02-Apr-2021 20:51:30] NOTICE: [pool nextcloud] child 605123 started
[02-Apr-2021 21:07:16] WARNING: [pool nextcloud] child 603557 exited on signal 11 (SIGSEGV - core dumped) after 1606.522605 seconds from start
[02-Apr-2021 21:07:16] NOTICE: [pool nextcloud] child 611780 started
[02-Apr-2021 21:07:35] WARNING: [pool nextcloud] child 605123 exited on signal 11 (SIGSEGV - core dumped) after 964.790455 seconds from start

Turns out that the read only apps directory had become unreadable.
even though the files and directories were also in the writeable apps directory it just crashed rather than emit an error.

I had to chmod 755 /usr/share/webapps/nextcloud/apps

Then it worked.

1 Like