PhilippC / keepass2android

Password manager app for Android
https://play.google.com/store/apps/details?id=keepass2android.keepass2android
GNU General Public License v3.0
4.79k stars 387 forks source link

FTP synchronization problems #1361

Open shortattentionspan opened 4 years ago

shortattentionspan commented 4 years ago

I have v1.08r-r0 and now online synchronization to my FTP server does not work. I can open the database, but when making any changes, the app claims that the file is in use by another and asks whether to overwrite or merge. Either choice results in a .tmp file being written to the FTP server with the original database not being updated.

This .tmp file seems to be the full database with the last key change, but older changes may not be integrated, depending on whether "overwrite" or "merge" was chosen.

PhilippC commented 4 years ago

can you try to select Change database - Open database - FTP and browse to the file again? Just to see if that changes anything? Do you have access to the server logs?

shortattentionspan commented 4 years ago

It still has the same problem where the .tmp file is the updated version and the original file is not changed- timestamp did not change. It's the same whether choosing "Yes, merge," or "No, overwrite" when the app thinks the file is in use by another program.

No FTP logs.

I have now moved my database file to a cloud storage service supported by your app, which I really should have done long ago to close up ports on my router.

HolgerFe commented 4 years ago

Screenshot_20201009-171649_Keepass2Android Hello I'm affected by the exact same problem...

[EDIT] After trying to open the KeePass dB via a 3rd Party Filemanager with ftp functionality the attached error message was shown

Napsterbater commented 3 years ago

I see this issue as well in 1.09d-r.

Even though no changes were made to the database being accessed by keepass2android via SFTP

FTPmergeERROR

Giaballo commented 3 years ago

I have the same problem. Summary: 2 PC's with KeePass 2 installed. Database storaged on my FTP (usb connected on router Archer VR600). Keepass2Android on my smartphone. Synchronization between PC->smartphone OK, but NOT vice versa. When I create something new directly from mobile, even if I synchronize manualy on PC I can't see the changes. Why?

PhilippC commented 3 years ago

can you provide an account for testing (crocoapps@gmail.com)?

davidpierson commented 3 years ago

For what it's worth. I was on 1.06f so I updated to the latest, 1.08d-r5 just now, then did some synchronisation testing with my FTP server. Did not experience any problems. If I have updated the FTP server copy via a sync from Keepass 2 on Windows, then the next sync in K2PA shows a message "Reload file? The file which is currently open was changed by annother program. Do you want to reload it?" and when I answer OK it works fine. I wonder what the problem can be.

RomanLut commented 1 year ago

Currently I have issue as described. After editing file, program is creating .tmp file on ftp with new content, while database file is left unchanged. If I try to export database to ftp, it also is creating .tmp file only.

Tryed creating new database - same behaviour (only tmp file is created of ftp).

I tried versions v1.09e-r1, v1.09c-r0, v1.08-r5.

Not sure what have changed, I think it started in year 2023.

I can provide credentials for testing.