I cannot sync my database via FTP or HTTP(S). I always get an 403 error. "Accept invalid SSL certificates" is ticked.
If I try to sync via WebDAV and my OwnCloud account, the Android app Keepass2Android also tells me, that the database file "cannot be decrypted", probably because it's a "shared file".
Plus, saving the database to my webserver only works once: if the file does not exist already. Otherwise I get an 403 error aswell.
Any idea why? Thanks a lot!
Sync requires read, write, rename and delete permissions because KeePass uses "file transactions" to write the database. The fact that you can only save the database if it does not yet exist means you don't have at least one of the required permissions. To find out which permission is missing you should use an FTP client to attempt to create, rename and delete a test file.
Thanks for your help, Paul!
I've already tried to edit the file permissions (at least in FTP mode). This did not work either: "Operation is not valid due to the current state of the object" - whatever that is supposed to mean.
I figured it out. FTP works now, I was using the wrong URL for my FTP user; WebDAV (with OwnCloud) still doesn't work though.
Can you connect to the webdav server from Windows Explorer and manipulate files?
Yes and yes ;)
But as soon as I access the database file with either Keepass or my android app, I cannot manipulate it anymore: neither in Windows ("error 0x80070780 couldn't access file") nor in Keepass/Keepass2Android (403 error).
 If I try to open the file in Firefox via WebDAV (after I have accessed it once with Keepass), OwnCloud tells me this:
"Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you."
Sounds like ownCloud is sharing the file. Can you access the database with KeePass, then use the OC web interface to check the status of the file? It should not be shared.
Do you have the database encrypted on OC? Try non-encrypted.
Where does OC tell you the file cannot be decrypted? Do you have an OC app on the PC and are then trying to access the file direct with KeePass?
Thanks again for your help - I really appreciate it!
Yeah, I think the problem is, that I the kdbx file is both shared by OwnCloud and Keepass. But: Currently, the only way I can use WebDAV on my server is with OwnCloud. I.e.: If I want to use a secure WebDAV connection (with my OwnCloud login), I have to put the database file in a folder within the OwnCloud directory; thus it will be shared automatically.
Btw: The 403 error I get no matter whether the OwnCloud app is running (on my PC and/or phone) or not. The odd thing is though: The Keepass android app actually saves changes to the database despite the 403 error. Sometimes saving in the android app fails completely though, and I end up with a file named "database.kdbx.A1E4A3.tmp". Plus my OwnCloud PC app constantly "refreshes" the file, every 10 minutes or so.
Maybe OC doesn't like having the app running on one machine and direct access on another. Try loading the OC app on all devices and opening the database from the local copy, or no app at all.
Alright. I'm using SFTP now on my android app and FTPS on my PC; no need for WebDAV so.
Thanks again for your help!
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.