Showing results for 
Search instead for 
Did you mean: 
Discover new ways to use Dropbox or share your tips with other users like you. Get involved



Getting Dropbox to work with KeePassX

New member | Level 1

I save my KeePassX .kbd file in my Dropbox folder at home on my Linux (Ubuntu 14.10) and on my work (Windows smiling face with sunglasses computer. This is not the best setup. I find the .kbd file on my home computer is a much older version than the file I use at work. In fact,when I go to open my .kbd on my home computer file I get this error - despite the fact my work .kbd file is closed:

The database you are trying to open is locked.
This means that either someone else has opened the file or KeePassX crashed last time it opened the database.

Do you want to open it anyway?

I read this post on in the Dropbox Help Center that leads me to believe this shouldn't be an issue:

Does Dropbox always upload/download the entire file any time a change is made?:

Does anyone know what may be causing this problem and how to remedy it?

1 Reply

Re: Getting Dropbox to work with KeePassX

New member | Level 1

Hi Kevin, I'm also using KeePassX with dropbox and I'm having no issues whatsoever up to this point.
All my computers are running linux (one of them with dual boot to windows).

The error you get with keepassx is because whenever you open the key database, it creates a lock file in the same folder with the same name as the file but with .kdb.lock extension. It uses it to know that the file is open so that it doesn't get corrupted or overwritten by another keepassx instance. Then, when you close the database it gets closed.
So whenever you open the database, the lock file is created and synced to dropbox, and when you close it, it's deleted.
Simply by going to the database folder and deleting the lock file yourself you should be able to open the database.
But if it's not locked on both computers, then your probblem is not related to keepassx, but to the dropbox sync.

From what you say, it looks to me that your home version of the database is stuck in an older state in which it was open. If you are sure that your work version is more up to date than your home version, it must mean that your home dropbox is not being synced properly.

Make sure that the file you are opening with keepassx is the same on both computers, and that dropbox is syncing properly on both sides. Maybe you unchecked the folder under selective sync, or maybe your home dropbox isn't syncing at all.

I hope you can get it sorted out.


[This thread is now closed by moderators due to inactivity. If you're experiencing a similar behavior, feel free to start a new discussion in the Ask a Question section here.]

Installation and Desktop App Issues

Have a question? Our Dropbox Community is here to help!

Post your question or search for an answer below.

Learn more about using the Community by reading our Community Guidelines.

Hi there,

If you need more help you can log a ticket with our Support Team here (expected response time 24 hours), or contact us on Twitter or Facebook.

For more info on available support options, see this article.

If you found the answer to your question, please 'like' the post to say thanks to the user!

Getting Dropbox to work with KeePassX
1 Reply
Solved! : See solution
Looking for Dropbox Paper users
Do you use Dropbox Paper?

If so, we're starting a design feedback group and we'd love for you to be a part of it. We have paid feedback opportunities - both in person and remotely - for English speaking users based in the US.

Interested? Take the short survey to let us know.

Take the survey
Who's talking
Top contributors to this post