Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 20.0.5): 23.0.0
Operating system and version (eg, Ubuntu 20.04): 20.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.41
PHP version (eg, 7.4): 7.4.3
The issue you are facing:
After an upgrade to 23.0.0
, I cannot login to my server. I “had” TOTP enabled, and post upgrade, I was presented with the backup code page. Problem is, my backup codes won’t work! Yes, they’re the right codes.
When using occ
to check things out, I noticed that TOTP
is disabled. When trying to re-enable it, I got this message: App "Two-Factor TOTP Provider" cannot be installed because it is not compatible with this version of the server.
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Go to NC login page
- Try to login
- Fail to login
The output of your Nextcloud log in Admin > Logging:
{"reqId":"someid","level":3,"time":"2021-11-30T22:21:48+00:00","remoteAddr":"10.0.0.1","user":"kz6fittycent","app":"core","method":"GET","url":"/index.php/login/selectchallenge?redirect_url=/index.php/csrftoken","message":"1 two-factor auth providers failed to load","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36","version":"23.0.0.10"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'blah',
'passwordsalt' => 'blah',
'secret' => 'blah,
'trusted_domains' =>
array (
0 => 'somedomain.com',
),
'datadirectory' => '/data/goes/here/',
'dbtype' => 'mysql',
'version' => '23.0.0.10',
'overwrite.cli.url' => 'https://www.somedomain.com',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'memcache.local' => '\\OC\\Memcache\\APCu',
'mysql.utf8mb4' => true,
'dbuser' => 'nc_dudesdb',
'dbpassword' => 'supersecurepasswordhomeslice',
'trashbin_retention_obligation' => 'auto',
'installed' => true,
'maintenance' => false,
'theme' => '',
'default_phone_region' => 'ISO 3166-2:US',
0 => 'output_buffering = Off',
'loglevel' => 2,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'email.user',
'mail_domain' => 'email.com',
'mail_smtpsecure' => 'ssl',
'mail_smtphost' => 'smtp.email.com',
'mail_smtpport' => '465',
'mail_smtpauth' => 1,
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpname' => 'email.user@email.com',
'mail_smtppassword' => 'superdupersecurepassword',
'app_install_overwrite' =>
array (
0 => 'flowupload',
),
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
),
'twofactor_enforced_excluded_groups' =>
array (
),
);
The output of your Apache/nginx/system log in /var/log/____
:
10.0.0.1 - - [30/Nov/2021:16:49:04 -0600] "POST /index.php/login/challenge/backup_codes?redirect_url=/index.php/apps/files/ HTTP/1.1" 303 1429 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"
I have tried disabling the TOTP application, but can’t since it’s already disabled. I am not sure how to proceed safely. Any ideas?