KeePassXC Invalid Credentials: Database Won't Open with Key File or YubiKey
Quick answer
The error is generic: wrong master password, wrong or changed key file, or a YubiKey slot or secret that no longer matches. Verify each factor; a saved challenge-response secret enables recovery.
Most likely fix: Check each factor
How to fix it
Try these in order — the most common fix is first.
1. Check each factor
- Retype the password carefully
- Select the original key file, not a copy that was modified
- Use the same YubiKey and slot you set up with
Did this fix it?2. Open from a KeePassXC backup
- Restore an earlier copy of the database or use your backup
- Check which app last saved the file
Did this fix it?3. Use the recovery tool if you saved the secret
- Run keepassxc-cr-recovery from the KeePassXC repository with your saved challenge-response secret
- It outputs a key file
- Open the database by selecting Key File instead of Challenge Response
Did this fix it?4. On Snap, enable USB access
- Run: sudo snap connect keepassxc:raw-usb
- Restart KeePassXC
Did this fix it?
Symptoms
'Invalid credentials were provided, please try again', sometimes with 'HMAC mismatch' in the log.
Why it happens
- Wrong key file or an edited key file
- Different YubiKey or slot than at setup
- Database last saved by another app that altered challenge-response processing
- Challenge-response secret changed or lost
- Corrupt file (possible but not proven by this error)
This guide also covers
- keepassxc invalid credentials
- keepassxc key file not working
- keepassxc yubikey hmac mismatch
- keepassxc cr recovery
Still not working?
If KeePassXC keeps failing, you're not alone. See every KeePassXC problem users report or the alternatives people switch to.
Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.
Talk to usOther KeePassXC errors
- KeePassXC Browser Extension Not Connecting
- KeePassXC Browser Integration Not Working in Flatpak or Snap
- KeePassXC Auto-Type Not Working on Wayland (Linux)
- KeePassXC Auto-Type Not Working on Mac
- How to Sync KeePassXC Between Devices
- KeePassXC Sync Conflict and Conflicted Copy
- KeePassXC Mobile App for Android and iPhone
- KeePassXC Quick Unlock (Touch ID, Windows Hello) Not Working