Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Writing the database failed: File exists #5175

Closed
perahodlr opened this issue Jul 26, 2020 · 9 comments
Closed

Writing the database failed: File exists #5175

perahodlr opened this issue Jul 26, 2020 · 9 comments

Comments

@perahodlr
Copy link

perahodlr commented Jul 26, 2020

Overview

Error "Writing the database failed: File exists" saving database stored on a samba share (iomega nas) when on Fedora 32 running the AppImage. This setup works on my Windows 10.

Steps to Reproduce

  1. Launch KeePassXC-2.6.0-x86_64.AppImage, with default settings, DB on samba share
  2. Make changes, save
  3. Error: Writing the database failed: File exists

Expected Behavior

Saving/writing to the DB should complete error free.

Actual Behavior

Saving changes to DB produces error Writing the database failed: File exists

Context

Fedora release 32
Linux localhost.localdomain 5.7.10-201.fc32.x86_64 #1 SMP Thu Jul 23 00:58:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
DB is on a samba share (iomega nas)
mount output:
type cifs (rw,relatime,vers=1.0,cache=strict,username=user,uid=1000,forceuid,gid=1000,forcegid,addr=192.168.x.x,soft,unix,posixpaths,serverino,mapposix,acl,rsize=61440,wsize=65536,bsize=1048576,echo_interval=60,actimeo=1,user=user)

Removing the DB file from the samba share, the DB file is created when saving in KeePassXC and no error message.
With "Safely save database files" disabled, I am able to save to the DB.

In the terminal where I launched the AppImage, a message "QFSFileEngine::open: No file name specified" shows when I click save and the error "Writing the database failed: File exists" shows in the GUI.

KeePassXC - Version 2.6.0
Revision: 0765954
Distribution: AppImage

Qt 5.14.2
Debugging mode is disabled.

Operating system: Fedora 32 (Workstation Edition)
CPU architecture: x86_64
Kernel: linux 5.7.10-201.fc32.x86_64

Enabled extensions:

  • Auto-Type
  • Browser Integration
  • SSH Agent
  • KeeShare (signed and unsigned sharing)
  • YubiKey
  • Secret Service Integration

Cryptographic libraries:
libgcrypt 1.8.1

Operating System: Linux
Desktop Env: Gnome
Windowing System: Wayland
Running AppImage shows the following output:
$ KeePassXC-2.6.0-x86_64.AppImage
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

@perahodlr perahodlr added the bug label Jul 26, 2020
@droidmonkey
Copy link
Member

Probably same issue as with #4856

@cagdasalagoz
Copy link

I am having the same problem yet I do not use Google drive. The only similarity I can see with the #4856 is my database and key files are also on another partition. So they must be mounted before accessing the database. Looks like it's caused by mounting/unmounting partitions.

@kevin25
Copy link

kevin25 commented Mar 24, 2022

I have the same issue

@1953willys
Copy link

Same problem, perhaps different causes. This is MAC installation, with Ventura 13.2.1 software and 2.7.4 Keypass XC. There are two user accounts (in addition to the admin acct). The database is kept in a shared folder, with the box checked for shared access via "get info" on the folder. The data base file has been set in permissions for both users to have read and write access. I can create the problem by successfully making a database change from one user, then, accessing the same database from the other user, and if a change is made, this same error message appears. I can then reverse the process in terms of which user goes first, and then the problem occurs with the other user. This is a relatively new problem, this setup of one database and two users worked well for quite a while, but no more. I have a duplicate arrangment on another MAC, and it's developed the same problem. Appreciate any attention or thoughts

@droidmonkey
Copy link
Member

@1953willys did the problem develop after a keepassxc update or a macos update?

@1953willys
Copy link

1953willys commented Feb 23, 2023 via email

@1953willys
Copy link

I think I have a work around. I make a copy of the .kdbx database, and rename it. Then, I have each user access one of the two databases only. This works, problem does not occur. I have some additional work to make sure entries by one user are captured to the other database periodically. This is necessary anyway given the sneakernet method to coordinate databases between 3 machines. The configuration of a mac, using two separate users on one machine, is not very common, I bet.

@IshanDindorkar
Copy link

for me this worked,

  1. Created new password file.
  2. Transferred existing credentials to new one.

@FLAK-ZOSO
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants