Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1104 KeePass can't synchronise with FTP (vsftpd)

KeePass_2.x
closed
nobody
None
5
2013-06-02
2013-04-02
Andrey Makhnutin
No

KeePass fails to upload a passfile to my FTP server which is run by vsftpd on Debian.
Here is the traffic log after keepass had downloaded the previous version of passfile and synchronized with it locally.
In this log KeePass uploads the new passfile to a temp file, deletes the old passfile and tries to rename the tempfile, but fails

220 (vsFTPd 2.3.2)
USER username
331 Please specify the password.
PASS userpass
230 Login successful.
OPTS utf8 on
200 Always in UTF8 mode.
PWD
257 "/home/username"
TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (1,2,3,4,33,70).
STOR passfile.kdbx.tmp
150 Ok to send data.
226 Transfer complete.
MDTM passfile.kdbx
213 20130215104935
DELE passfile.kdbx
250 Delete operation successful.
RNFR /passfile.kdbx.tmp ; note the leading slash
550 RNFR command failed.
500 OOPS: vsf_sysutil_recv_peek: no data
500 OOPS: priv_sock_get_cmd

I think the problem is that KeePass tells FTP server to rename "passfile.kdbx.tmp" in the root directory, because FTP server thinks that it has been given an absolute path with leading slash.

Discussion

  • Dominik Reichl
    Dominik Reichl
    2013-06-02

    • status: open --> closed