Closed MacIt closed 8 years ago
Sorry guys, just tested and found that this is not a issue of node-ftp, but ftpd. That means server side refused for connection. See this pull request. Fortunately it was fixed at this fork. I'm using rianwouters/nodeftpd at the moment and it works well.
Thanks
Hi, When uploading a directory which has sub folders and lots of files to a ftpd based FTP server, sometimes met this error:
[Error: Connection closed; transfer aborted] code: 426
But I can see that connection still there. Here is debug info:[connection] > 'PASV' [connection] < '227 Entering Passive Mode (192,168,10,133,213,117)\r\n' [parser] < '227 Entering Passive Mode (192,168,10,133,213,117)\r\n' [parser] Response: code=227, buffer='Entering Passive Mode (192,168,10,133,213,117)' [connection] PASV socket connected [connection] > 'STOR /outbox/media/publications/Magazine_TRBUK.pdf' [connection] < '150 Ok to send data\r\n' [parser] < '150 Ok to send data\r\n' [parser] Response: code=150, buffer='Ok to send data' [connection] < '226 Closing data connection\r\n' [parser] < '226 Closing data connection\r\n' [parser] Response: code=226, buffer='Closing data connection' copying Magazine_TRBUK.pdf count = 14 [connection] > 'PASV' [connection] < '426 Connection closed; transfer aborted\r\n' [parser] < '426 Connection closed; transfer aborted\r\n' [parser] Response: code=426, buffer='Connection closed; transfer aborted' put Magazine_TerraMater.pdf { [Error: Connection closed; transfer aborted] code: 426 } [connection] > 'STAT' { [Error: Connection closed; transfer aborted] code: 426 } [connection] < '227 Entering Passive Mode (192,168,10,133,213,117)\r\n211 FTP Server Status OK\r\n' [parser] < '227 Entering Passive Mode (192,168,10,133,213,117)\r\n' [parser] Response: code=227, buffer='Entering Passive Mode (192,168,10,133,213,117)' status Entering Passive Mode (192,168,10,133,213,117) [parser] < '211 FTP Server Status OK\r\n' [parser] Response: code=211, buffer='FTP Server Status OK' [connection] > NOOP [connection] < '200 OK\r\n' [parser] < '200 OK\r\n' [parser] Response: code=200, buffer='OK' [connection] > NOOP [connection] < '200 OK\r\n' [parser] < '200 OK\r\n' [parser] Response: code=200, buffer='OK' [connection] > NOOP [connection] < '200 OK\r\n' [parser] < '200 OK\r\n' [parser] Response: code=200, buffer='OK' [connection] > NOOP [connection] < '200 OK\r\n' [parser] < '200 OK\r\n' [parser] Response: code=200, buffer='OK' [connection] > NOOP [connection] < '200 OK\r\n' [parser] < '200 OK\r\n' [parser] Response: code=200, buffer='OK'