Skip to content

OCC app:enable process stop with "Could not download app twofactor_totp" #1063

@j0inty

Description

@j0inty

Steps to reproduce

  1. Update Nextcloud from 20.0.5 to 20.0.6

Expected behaviour

App gets enabled after the "occ upgrade" process.

Actual behaviour

The occ app:enable process failed with

user@server: sudo -u www-data -g www-data php -f nextcloud/occ app:enable twofactor_totp --verbose
Could not download app twofactor_totp`

Now I am not able to login again due I am missing my backup codes so I tried also

sudo -u www-data -g www-data php -f nextcloud/occ app:disable twofactor_backupcodes
twofactor_backupcodes can't be disabled.

Server configuration

Operating system:
Debian 10
Web server:
Apache
Database:
PostgreSQL
PHP version:
php7.4
Version: (see admin page)
20.0.6
Updated from an older version or fresh install:
Upgrading from 20.0.5

List of activated apps:

sudo -u www-data -g www-data php -f nextcloud/occ app:list
Enabled:
  - accessibility: 1.6.0
  - activity: 2.13.4
  - admin_audit: 1.10.0
  - apporder: 0.11.0
  - breezedark: 20.0.3
  - bruteforcesettings: 2.0.1
  - calendar: 2.1.3
  - checksum: 1.0.1
  - cloud_federation_api: 1.3.0
  - contacts: 3.4.3
  - contactsinteraction: 1.1.0
  - dashboard: 7.0.0
  - dav: 1.16.2
  - extract: 1.3.0
  - federatedfilesharing: 1.10.2
  - federation: 1.10.1
  - files: 1.15.0
  - files_antivirus: 3.1.1
  - files_downloadactivity: 1.9.0
  - files_external: 1.11.1
  - files_linkeditor: 1.1.3
  - files_markdown: 2.3.1
  - files_pdfviewer: 2.0.1
  - files_retention: 1.9.0
  - files_rightclick: 0.17.0
  - files_sharing: 1.12.2
  - files_trackdownloads: 1.9.0
  - files_trashbin: 1.10.1
  - files_videoplayer: 1.9.0
  - flowupload: 1.1.2
  - groupfolders: 8.2.0
  - impersonate: 1.7.0
  - logreader: 2.5.0
  - lookup_server_connector: 1.8.0
  - maps: 0.1.8
  - notes: 3.5.1
  - notifications: 2.8.0
  - oauth2: 1.8.0
  - password_policy: 1.10.1
  - passwords: 2020.12.2
  - photos: 1.2.3
  - previewgenerator: 3.1.0
  - privacy: 1.4.0
  - provisioning_api: 1.10.0
  - quota_warning: 1.9.1
  - recommendations: 0.8.0
  - serverinfo: 1.10.0
  - settings: 1.2.0
  - sharebymail: 1.10.0
  - tasks: 0.13.6
  - text: 3.1.0
  - theming: 1.11.0
  - twofactor_backupcodes: 1.9.0
  - updatenotification: 1.10.0
  - user_status: 1.0.1
  - video_converter: 1.0.0
  - viewer: 1.4.0
  - weather_status: 1.0.0
  - workflowengine: 2.2.0
Disabled:
  - bookmarks
  - comments
  - encryption
  - files_versions
  - firstrunwizard
  - metadata
  - nextcloud_announcements
  - support
  - survey_client
  - systemtags
  - user_ldap

The content of config/config.php:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "updater.secret": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "20.0.6.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "log_type": "syslog",
        "logfile": "",
        "logdateformat": "d-m-Y H:i:s",
        "logtimezone": "Europe\/Berlin",
        "loglevel": 2,
        "syslog_tag": "nextCloud_my-domain",
        "forcessl": true,
        "maintenance": false,
        "trusted_domains": [
            "cloud.my-domain.net",
            "c.my-domain.net"
        ],
        "mail_smtpmode": "sendmail",
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "xframe_restriction": false,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "forceSSLforSubdomains": true,
        "mail_smtpport": "25",
        "cron_log": true,
        "cron.lockfile.location": "\/var\/log\/apache2",
        "trashbin_retention_obligation": "auto",
        "versions_retention_obligation": "disabled",
        "activity_expire_days": 730,
        "log_rotate_size": 15728640,
        "debug": false,
        "filelocking.enabled": true,
        "filelocking.ttl": 3600,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 5,
            "dbindex": 0
        },
        "minimum.supported.desktop.version": "2.6.4",
        "quota_include_external_storage": false,
        "enable_previews": true,
        "preview_max_x": 1024,
        "preview_max_y": 1024,
        "preview_max_scale_factor": 10,
        "preview_max_filesize_image": 25,
        "appstore.experimental.enabled": true,
        "appstoreenabled": true,
        "appcodechecker": true,
        "updatechecker": true,
        "has_internet_connection": true,
        "check_for_working_webdav": true,
        "check_for_working_wellknown_setup": true,
        "check_for_working_htaccess": true,
        "asset-pipeline.enabled": true,
        "defaultapp": "files",
        "knowledgebaseenabled": true,
        "enable_avatars": true,
        "allow_user_to_change_display_name": true,
        "skeletondirectory": "",
        "htaccess.RewriteBase": "\/",
        "upgrade.disable-web": true,
        "updater.release.channel": "stable",
        "overwrite.cli.url": "https:\/\/cloud.my-domain.net",
        "theme": "fairnatics-owncloud-theme",
        "login_form_autocomplete": false,
        "twofactor_enforced": "false",
        "twofactor_enforced_groups": ['admin'],
        "twofactor_enforced_excluded_groups": [],
        "mail_sendmailmode": "pipe",
        "app_install_overwrite": [
            "files_downloadactivity",
            "metadata",
            "flowupload",
            "video_converter",
            "twainwebscan",
            "files_trackdownloads",
            "checksum",
            "files_retention",
            "breezedark"
        ],
        "data-fingerprint": "2a66b4d352f86a0a6953e08dgf9887dc"
    }
}
ro

Client configuration

Browser:

Operating system:

Logs

Web server error log

Server log (data/nextcloud.log)
Nothing will written into any logs
Browser log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions