Unable to configure 2FA

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com 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:

example

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

longer
example
here

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, 12.0.2): 16.0.3
Operating system and version (eg, Ubuntu 17.04): Raspbian Linux 9.9 (stretch) armv71
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4.25 (Raspbian)
PHP version (eg, 7.1): PHP 7.1.31

The issue you are facing:

I can’t enable 2FA and configure it. I’m only able to download the codes.

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

Steps to replicate it:

  1. Set a nextcloud server
  2. Create admin user
  3. Try to set 2FA configuration

The output of your Nextcloud log in Admin > Logging:

I don't know where to find it ... :(

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

<?php
$CONFIG = array (
  'instanceid' => 'occ5f1udt10u',
  'passwordsalt' => 'TIEaNKNZgykINW5IqJQ3WcItnQAgLm',
  'secret' => 'DveYl43Y0sfkjATjjHVBLY7lyjrq1paCtQipzn5H78Ti5lRF',
  'trusted_domains' =>
  array (
    0 => 'X.X.X.X',
    1 => 'Y.Y.Y.Y',
  ),
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'sqlite3',
  'version' => '16.0.3.0',
  'overwrite.cli.url' => 'http://Y.Y.Y.Y/nextcloud',
  'installed' => true,
  'twofactor_enforced' => 'false',
  'twofactor_enforced_groups' =>
  array (
  ),
  'twofactor_enforced_excluded_groups' =>
  array (
  ),
);

The output of your Apache/nginx/system log in /var/log/____:

apach2/access.log

90.125.173.69 - - [12/Aug/2019:23:54:46 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 732 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:54:37 +0200] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=rT679RH4UJLRkrixNsIu HTTP/1.1" 200 923 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:55:16 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 732 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:54:58 +0200] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=rT679RH4UJLRkrixNsIu HTTP/1.1" 200 923 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:55:19 +0200] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=rT679RH4UJLRkrixNsIu HTTP/1.1" 200 923 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:55:46 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 732 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:55:39 +0200] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=rT679RH4UJLRkrixNsIu HTTP/1.1" 200 923 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:56:16 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 732 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:56:00 +0200] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=rT679RH4UJLRkrixNsIu HTTP/1.1" 200 923 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
85.98.167.122 - - [12/Aug/2019:23:56:37 +0200] "GET / HTTP/1.0" 200 10977 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:56:20 +0200] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=rT679RH4UJLRkrixNsIu HTTP/1.1" 200 923 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:56:46 +0200] "GET /nextcloud/ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 200 732 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"
90.125.173.69 - - [12/Aug/2019:23:56:41 +0200] "GET /nextcloud/index.php/apps/logreader/poll?lastReqId=rT679RH4UJLRkrixNsIu HTTP/1.1" 200 923 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/76.0.3809.87 Chrome/76.0.3809.87 Safari/537.36"

Can you elaborate on what you’re doing in this step?

I set my server and it works.
When I say try to set 2FA, I only mean that I go in the settings and under the Title “2FA Authentication”, there is only the back up codes, as shown in the screenshot above.

You have to install at least one 2FA provider app.

Two official ones are