I have both the TOTP and FIDO2 2FA methods enabled and set up on several accounts. Up until recently, the FIDO2 method worked but it no longer does. The TOTP method works consistently.
What happens when I log in is, I get the panel that pops up (after entering UN and PW) and where I need to select which 2FA method to utilize. I select Hardware key, but I don’t get a prompt saying “Insert hardware key” or similar. I insert the key, the light (Yubikey) flashes briefly, but pressing the key doesn’t do anything.
If I log in with this same Yubikey FIDO2 key on other (Non-NC) apps it works flawlessly.
Any ideas?
Sorry to hear you’re facing problems. 
The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
[/details]
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. ![]()
The Basics
- Nextcloud Server version (e.g., 29.x.x):
- 31.0.7 (but it was not working on 31.0.6 also)
- Operating system and version (e.g., Ubuntu 24.04):
- Ubuntu 24.04 LTS
- Web server and version (e.g, Apache 2.4.25):
- Apache
- Reverse proxy and version _(e.g. nginx 1.27.2)
- None
- PHP version (e.g, 8.3):
- 8.3
- Is this the first time you’ve seen this error? (Yes / No):
- No, started about 1 or 2 months ago I believe
- When did this problem seem to first start?
- About 1 or 2 months ago
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- Bare metal
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
- No
Summary of the issue you are facing:
[What happens when I log in is, I get the panel that pops up (after entering UN and PW) and where I need to select which 2FA method to utilize. I select Hardware key, but I don’t get a prompt saying “Insert hardware key” or similar. I insert the key, the light (Yubikey) flashes briefly, but pressing the key doesn’t do anything.
If I log in with this same Yubikey FIDO2 key on other (Non-NC) apps it works flawlessly.]
Steps to replicate it (hint: details matter!):
- At NC logon screen, enter UN and Password and hit Enter
- At NC ‘Select 2FA method’ select Security key
- Insert security key, no message appears on screen to press the button. Pressing the button anyway does nothing. **Note: the ‘Use security key’ lable is not clickable, the way the ‘Use TOTP’ button is.
Log entries
Nextcloud
PASTE HERE
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
I see this error when the screen appears where I select with 2FA method to use:
**Manifest: Line: 1, column: 1, Syntax error.**
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____:
PASTE HERE
Configuration
Nextcloud
The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):
PASTE HERE
Apps
The output of occ app:list (if possible).
Tips for increasing the likelihood of a response
- Use the
preformatted textformatting option in the editor for all log entries and configuration output. - If screenshots are useful, feel free to include them.
- If possible, also include key error output in text form so it can be searched for.
- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.