Nextcloud broke on my Yunohost server. Here is the log

Original thread on Yunohost forum

Nextcloud version : 20.0.8~ynh1
Operating system and version : Raspbian GNU/Linux 10 (buster)
Apache or nginx version : nginx/1.14.2
PHP version : 7.3.27-1~deb10u1

The issue you are facing:

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

Steps to replicate it:

  1. I installed Wetty from the app catalog on Yunohost that stopped because of error.
  2. I made a dry run of nginx to restore it after it broke. (Didn’t fix it)
  3. Deleted remaining wetty.conf then nginx could start.

The output of my config.php file :

<?php
$CONFIG = array (
  'passwordsalt' => 'SALTYPASSWORD',
  'secret' => 'ITSASECRET',
  'trusted_domains' => 
  array (
    0 => 'localhost',
    1 => 'mydomain.com',
  ),
  'datadirectory' => '/home/yunohost.app/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '20.0.8.1',
  'overwrite.cli.url' => 'https://mydomain.com',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextcloud',
  'dbpassword' => 'DBPASSWORD',
  'installed' => true,
  'instanceid' => 'SOMEID',
  'ldapIgnoreNamingRules' => false,
  'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
  'updatechecker' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'integrity.check.disabled' => true,
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => '6379',
    'timeout' => '0.0',
    'password' => '',
  ),
  'hashing_default_password' => true,
  'logout_url' => 'https://mydomain.com/yunohost/sso/?action=logout',
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'info',
  'mail_domain' => 'mail.mydomain.com',
  'mail_smtpauthtype' => 'PLAIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtprelay.com',
  'mail_smtpport' => '123',
  'mail_smtpname' => 'info@mail.mydomain.com',
  'mail_smtppassword' => 'SMTPPASSWORD',
  'twofactor_enforced' => 'true',
  'twofactor_enforced_groups' => 
  array (
    0 => 'all_users',
  ),
  'twofactor_enforced_excluded_groups' => 
  array (
  ),
);

The output of my nginx log in /var/log/mydomain.com:

2021/06/17 17:32:25 [error] 1219#1219: *7310 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin' not found in /var/$
Stack trace:
#0 /var/www/nextcloud/remote.php(169): handleException(Object(OC\HintException))
#1 {main}
  thrown in /var/www/nextcloud/remote.php on line 61" while reading response header from upstream, client: My IP, server: mydomain.com, request: "PROPFIND /remote.php/dav$
2021/06/17 17:32:38 [error] 1219#1219: *7059 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin' not found in /var/$
Stack trace:
#0 /var/www/nextcloud/remote.php(169): handleException(Object(OC\HintException))
#1 {main}
  thrown in /var/www/nextcloud/remote.php on line 61" while reading response header from upstream, client: My IP, server: mydomain.com, request: "PROPFIND /remote.php/dav$
2021/06/17 17:32:55 [error] 1219#1219: *7310 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin' not found in /var/$
Stack trace:
#0 /var/www/nextcloud/remote.php(169): handleException(Object(OC\HintException))
#1 {main}
  thrown in /var/www/nextcloud/remote.php on line 61" while reading response header from upstream, client: My IP, server: mydomain.com, request: "PROPFIND /remote.php/dav$
2021/06/17 17:33:13 [error] 1219#1219: *7310 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'OCA\DAV\Connector\Sabre\ExceptionLoggerPlugin' not found in /var/$
Stack trace:
#0 /var/www/nextcloud/remote.php(169): handleException(Object(OC\HintException))
#1 {main}
  thrown in /var/www/nextcloud/remote.php on line 61" while reading response header from upstream, client: My IP, server: mydomain.com, request: "PROPFIND /remote.php/dav$
2021/06/17 18:53:42 [error] 5364#5364: *432 open() "/usr/share/nginx/html/status.php" failed (2: No such file or directory), client: my ip, server: mydomain.com, request:$