Keepassxc: Database file gets deleted on 'Save database as..'

Created on 7 Apr 2019  路  6Comments  路  Source: keepassxreboot/keepassxc

I have a database file on a smb share (/run/user/1000/gvfs/..), which I open in KeePassXC 2.4.0 on my ArchLinux system. When I want to replace the database with a new version I use Save database as... I get asked if I want to replace the file. The file is being deleted and NO new file is written. The database is basically gone.

Expected Behavior

The destination database will be replaced.

Current Behavior

The destination database is being deleted. No new file is being written.

Possible Solution

Enable Safely save database files in the settings.

Steps to Reproduce

  1. Mount an SMB share
  2. Open a database on this SMB share
  3. Use Save database as.. to replace it.

Context

Linux hostname 5.0.6-arch1-1-ARCH #1 SMP PREEMPT Wed Apr 3 09:35:20 UTC 2019 x86_64 GNU/Linux

Debug Info

KeePassXC - Version 2.4.0
Revision: c51752d

Libraries:

  • Qt 5.12.2
  • libgcrypt 1.8.4

Operating system: Arch Linux
CPU architecture: x86_64
Kernel: linux 5.0.6-arch1-1-ARCH

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (only unsigned sharing)
  • YubiKey
bug

All 6 comments

Do you get an error message? Do you have save safes enabled? Does the SMB share have weird permissions?

This is a gvfs mounted share so it's closely related to issues described in #803.

Do you get an error message? Do you have save safes enabled? Does the SMB share have weird permissions?

No, there is no error message at all. "Safely save database files" is not active. The SMB share has usual permissions. I've full read and write permissions on that share.

Interestingly is, that it worked fine with 2.3.4. I always used Save database as.. because of #803.

Enable safe saves and retry

With Safely save database files enabled it works fine.

Then this is a duplicate of the issue that is being fixed. See #2889

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nfnty picture nfnty  路  3Comments

shaneknysh picture shaneknysh  路  3Comments

JosephHatfield picture JosephHatfield  路  3Comments

haroldm picture haroldm  路  3Comments

n1trux picture n1trux  路  3Comments