JetBrains / teamcity-deployer-plugin

Deployer plugin for TeamCity CI server
http://confluence.jetbrains.net/display/TW/Deployer+plugin
Apache License 2.0
39 stars 29 forks source link

Connection reset when using FTP upload #48

Closed nskvortsov closed 9 years ago

nskvortsov commented 9 years ago

I'm trying to use the deployer plugin (version snapshot-20141610135441) to upload artifacts to an FTP server. Host, username and password are correct, I can upload files using other FTP clients on the same machine. I keep getting the error "Connection reset".

Settings: Secure connection:None Authentication method:username/password Transer mode: have tried auto-detect and binary, same error Artifacts path: have tried different combinations, including:

Folder/. => Binaries/Trunk Folder/. => /Binaries/Trunk/ Folder => Binaries/Trunk Folder => Binaries

Am I doing something wrong or is there a bug somewhere?

Build log: [Step 4/4] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_6' value='0.0'] [09:35:31][Step 4/4] Starting upload via FTP to ftp://xxxx [09:35:31][Step 4/4] Exception while uploading files: Connection reset [09:35:31][Step 4/4] java.net.SocketException: Connection reset [09:35:31][Step 4/4] ##teamcity[buildStatisticValue key='buildStageDuration:buildStepRUNNER_6' value='126.0']

FTP server logs: (39664962) 2014-11-27 09:35:58 - (not logged in) (212.181.47.238)> Connected, sending welcome message... (39664962) 2014-11-27 09:35:58 - (not logged in) (212.181.47.238)> 220-WELCOME TO xxxx (39664962) 2014-11-27 09:35:58 - (not logged in) (212.181.47.238)> 220 / xxxxx (39664962) 2014-11-27 09:35:58 - (not logged in) (212.181.47.238)> USER backendwww (39664962) 2014-11-27 09:35:58 - (not logged in) (212.181.47.238)> 331 Password required for backendwww (39664962) 2014-11-27 09:35:58 - (not logged in) (212.181.47.238)> PASS ***** (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 230 Logged on (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> FEAT (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 211-Features: (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> MDTM (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> REST STREAM (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> SIZE (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> MLST type;size;modify*; (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> MLSD (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> UTF8 (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> CLNT (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> MFMT (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 211 End (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> OPTS UTF8 ON (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 200 UTF8 mode enabled (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> PWD (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 257 "/" is current directory. (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> PWD (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 257 "/" is current directory. (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> TYPE A (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 200 Type set to A (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> PASV (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> 227 Entering Passive Mode (5,150,255,218,156,65) (39664962) 2014-11-27 09:35:58 - backendwww (212.181.47.238)> disconnected.


nskvortsov commented 9 years ago

Seems my line breaks did not make it through. Let me know if you want me to clean it up and submit a new issue.


Original comment by: Joel Kall

nskvortsov commented 9 years ago

a keep alive packets are added in this patch