After Update to NC 20.0.6 Can't Install or Update mail app

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face: is for home/non-enterprise users. If you’re running a business, paid support can be accessed via where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:


Or for longer, use three backticks above and below the code snippet:


Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can :heart:

Nextcloud version (eg, 20.0.5): 20.0.6
Operating system and version (eg, Ubuntu 20.04): Ubuntu 10 / buster
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.38 (Debian)
PHP version (eg, 7.4): PHP 7.4.14

The issue you are facing:
After upgrade to NC 20.0.6, the mail app will not upgrade (webgui). Then after removing the mail app using webgui and attempting reinstall, mail app is not found. Then attempting to install the mail app from cli, I get a not found error:

sudo -u www-data php occ app:install mailError: Could not download app mail

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

Steps to replicate it:

  1. Update from NC 20.0.5 to 20.0.6 with mail app 1.7.X installed
  2. Attempt to upgrade the mail app to 1.8.X using web
  3. or attempt to install the mail app using occ

The output of your Nextcloud log in Admin > Logging:

Error no app in context OCP\Lock\LockedException: “Notes” is locked January 27, 2021 05:32:58
Warning no app in context Login failed: rah (Remote IP: January 27, 2021 05:11:23
Error index Exception: Class ‘Horde_Mail_Rfc822_Address’ not found January 27, 2021 05:06:37
Error index Exception: Class ‘Horde_Mail_Rfc822_Address’ not found January 27, 2021 05:02:56
Error mail OCA\Mail\Exception\ServiceException: IMAP error: Mail server denied authentication. January 27, 2021 04:56:41
Warning mail Mailbox UID validity changed. Wiping cache and performing full sync. January 27, 2021 04:25:28

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

<?php $CONFIG = array ( 'trusted_domains' => array ( 0 => '', 1 => '', 2 => '', 3 => '', 4 => '', 5 => '', ), 'datadirectory' => '/var/www/nextcloud/data', 'dbtype' => 'mysql', 'version' => '', 'overwrite.cli.url' => 'http:///nextcloud', 'dbname' => 'nextcloud', 'dbhost' => 'localhost:3306', 'dbport' => '', 'dbtableprefix' => 'oc_', 'mysql.utf8mb4' => true, 'dbuser' => '', 'dbpassword' => '', 'installed' => true, 'maintenance' => false, 'memcache.local' => '\\OC\\Memcache\\APCu', 'log_type' => 'file', 'logfile' => '/var/wwww/nextcloud/data/nextcloud.log', 'loglevel' => 1, 'logdateformat' => 'F d, Y H:i:s', 'debug' => true, 'has_rebuilt_cache' => true, 'mail_from_address' => '', 'mail_smtpmode' => 'smtp', 'mail_sendmailmode' => 'smtp', 'mail_domain' => '', 'mail_smtpauthtype' => 'PLAIN', 'mail_smtpauth' => 1, 'mail_smtpname' => '', 'mail_smtppassword' => '', 'mail_smtphost' => '', 'mail_smtpport' => '25', 'trusted_proxies' => 'ldapIgnoreNamingRules' => false, 'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory', 'app.mail.verify-tls-peer' => false, 'theme' => '', ); The output of your Apache/nginx/system log in `/var/log/error.log`: [Wed Jan 27 00:00:01.898012 2021] [mpm_prefork:notice] [pid 1031] AH00163: Apache/2.4.38 (Debian) OpenSSL/1.1.1i configured -- resuming normal operations [Wed Jan 27 00:00:01.902173 2021] [core:notice] [pid 1031] AH00094: Command line: '/usr/sbin/apache2' cat: /sys/class/net/wlx4401bb912b35/speed: Invalid argument cat: /sys/class/net/wlx4401bb912b35/duplex: Invalid argument

Same issue here.

The app is disabled during the upgrade. After, there’s no option to enable or download&install it.

Some other apps where also disabled during the upgrading. Some of them where enabled back but others, like Mail or Analytics (wich are compatible with v20 and v21) cannot be enabled again.

I confirmed, before performing the upgrade, that all apps where upgradable, but it seems they were not.

Disabled apps

1 Like

Same problem here, but after upgrade to 20.0.7 option to download Mail is back.