BadFunctionCallException: showSubscribedOnly is not a valid attribute

[details=“Support intro”]

Nextcloud version (eg, 18.0.2): 18.0.2.2
Operating system and version (eg, Ubuntu 20.04): "Ubuntu 18.04.4
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.29
PHP version (eg, 7.1): 7.2.24

The issue you are facing:

When updating nextcloud I get the following error. I am using RDS (Aurora Mysql) as a backing Database.

/var/www/html# sudo -u www-data ./occ upgrade --no-interaction -vvv
Nextcloud or one of the apps require upgrade - only a limited number of commands are available
You may use your browser or the occ upgrade command to do the upgrade
2020-11-15T10:14:28+00:00 Set log level to debug
2020-11-15T10:14:28+00:00 Repair step: Repair MySQL collation
2020-11-15T10:14:28+00:00 Repair info: All tables already have the correct collation -> nothing to do
2020-11-15T10:14:28+00:00 Repair step: Repair SQLite autoincrement
2020-11-15T10:14:28+00:00 Repair step: Copy data from accounts table when migrating from ownCloud
2020-11-15T10:14:29+00:00 Repair step: Drop account terms table when migrating from ownCloud
2020-11-15T10:14:29+00:00 Updating database schema
2020-11-15T10:14:30+00:00 Updated database
2020-11-15T10:14:30+00:00 Updating <mail> ...
2020-11-15T10:14:31+00:00 Repair step: Purify and migrate collected mail addresses
2020-11-15T10:14:31+00:00 Purify and migrate collected mail addresses
2020-11-15T10:14:31+00:00
 Done
    0/0 [>-]   0%2020-11-15T10:14:31+00:00
2020-11-15T10:14:31+00:00 Repair step: Insert sync background job for all accounts
<?php
2020-11-15T10:14:31+00:00 BadFunctionCallException: showSubscribedOnly is not a valid attribute
2020-11-15T10:14:31+00:00 Update failed
2020-11-15T10:14:31+00:00 Maintenance mode is kept active
2020-11-15T10:14:31+00:00 Reset log level

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

<?php
$CONFIG = array (
  'instanceid' => '$XYZ',
  'passwordsalt' => '$XYZ',
  'secret' => '$XYZ',
  'trusted_domains' =>
  array (
    0 => 'xyz.elb.amazonaws.com',
  ),
  'datadirectory' => '/ebs',
  'dbtype' => 'mysql',
  'version' => '18.0.2.2',
  'overwrite.cli.url' => 'https://mycloud',
  'overwriteprotocol' => 'https',
  'dbname' => 'nc',
  'dbhost' => 'xyz.rds.amazonaws.com',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => '$XYZ',
  'dbpassword' => '$XYZ',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'tls',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'cloud',
  'mail_domain' => '$XYZ.de',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => '$XYZ',
  'mail_smtpport' => '587',
  'mail_smtpname' => '$XYZ',
  'mail_smtppassword' => '$XYZ',
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => true,
);

cc @ChristophWurst

What version of Mail is that and did you try to manually update to an incompatible version?

Hey Christoph, the mail version I am using is 1.3.5. Can I somehow kick out mail in the state I am in?

You could disable the app