inossidabile / grunt-ftpush

Grunt task for incremental code deployment over ftp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

213 Error when uploading existing file

opened this issue · comments

Hi, I've had ftpush working successfully in the past, but now it only does if I start with an empty FTP directory. If I push again into an existing directory with only one updated file, I get a 213 error and a message that a file can't be uploaded.

I tried a run using --debug and saw that the file was getting added to the queue.

Happy to provide more info if you need it. Thanks.

Hello, I've got the same problem.

Whenever my (vsftpd) FTP server returns a '213 Status follow', the task returns an error, while in fact the status should be a positive response. So I think ftpush shouldn't mark this as an 'error'.

@emcdanielpja do you happen to use VSFTPD as well? And do you know if it's possible to fix this server-side (ie. prevent the server from responding with a 213?)

Alright, it seems that the solution is fairly simple, use useList: true as a parameter.
Then the STAT command is never executed, the STAT command potentially triggers 213 response, causing the grunt-ftpush error.

So please try useList: true

Just checking on this now and finding that it's fixed the issue I was having. Thanks so much @Kah0ona for looking into it.