I have an Angular application that I'm using VSTS to continuously deploy. The problem is that when I check the "Preserve file paths" option in the Advanced section of the FTP Upload step, I get the following error "Unable to create remote directory: / due to error: Error: Syntax error in parameters or arguments." If I uncheck "Preserve file paths", the step runs without error. The files are uploaded to the root directory just without any folder structure. I have "Remote directory" set to "/".
FTP Log
2018-03-09T19:15:50.3143303Z ##[section]Starting: FTP Upload: dist
2018-03-09T19:15:50.3146572Z ==============================================================================
2018-03-09T19:15:50.3146703Z Task : FTP Upload
2018-03-09T19:15:50.3146804Z Description : FTP Upload
2018-03-09T19:15:50.3146929Z Version : 1.128.0
2018-03-09T19:15:50.3147035Z Author : Microsoft Corporation
2018-03-09T19:15:50.3147182Z Help : Upload files to a remote machine using the File Transfer Protocol (FTP), or securely with FTPS. [More Information](http://go.microsoft.com/fwlink/?LinkId=809084).
2018-03-09T19:15:50.3147375Z ==============================================================================
2018-03-09T19:15:50.5405453Z ##[debug]agent.workFolder=D:\a
2018-03-09T19:15:50.5433886Z ##[debug]loading inputs and endpoints
2018-03-09T19:15:50.5442724Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-03-09T19:15:50.5453315Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-03-09T19:15:50.5454681Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-03-09T19:15:50.5456230Z ##[debug]loading INPUT_CLEAN
2018-03-09T19:15:50.5458201Z ##[debug]loading INPUT_CLEANCONTENTS
2018-03-09T19:15:50.5460556Z ##[debug]loading INPUT_CREDSTYPE
2018-03-09T19:15:50.5461895Z ##[debug]loading INPUT_FILEPATTERNS
2018-03-09T19:15:50.5462991Z ##[debug]loading INPUT_OVERWRITE
2018-03-09T19:15:50.5464593Z ##[debug]loading INPUT_PASSWORD
2018-03-09T19:15:50.5465181Z ##[debug]loading INPUT_PRESERVEPATHS
2018-03-09T19:15:50.5467054Z ##[debug]loading INPUT_REMOTEPATH
2018-03-09T19:15:50.5469178Z ##[debug]loading INPUT_ROOTFOLDER
2018-03-09T19:15:50.5470250Z ##[debug]loading INPUT_SERVERURL
2018-03-09T19:15:50.5471593Z ##[debug]loading INPUT_TRUSTSSL
2018-03-09T19:15:50.5473030Z ##[debug]loading INPUT_USERNAME
2018-03-09T19:15:50.5475915Z ##[debug]loaded 15
2018-03-09T19:15:50.5900036Z ##[debug]check path : D:\a\_tasks\FtpUpload_6f8c69a5-b023-428e-a125-fccf4efcb929\1.128.0\task.json
2018-03-09T19:15:50.5904137Z ##[debug]set resource file to: D:\a\_tasks\FtpUpload_6f8c69a5-b023-428e-a125-fccf4efcb929\1.128.0\task.json
2018-03-09T19:15:50.5904503Z ##[debug]system.culture=en-US
2018-03-09T19:15:50.5927958Z ##[debug]credsType=inputs
2018-03-09T19:15:50.5931350Z ##[debug]credsType=inputs
2018-03-09T19:15:50.5932838Z ##[debug]serverUrl=**********
2018-03-09T19:15:50.6423877Z ##[debug]username=*******
2018-03-09T19:15:50.6424279Z ##[debug]password=*******
2018-03-09T19:15:50.6424486Z ##[debug]rootFolder=D:\a\1\s\dist
2018-03-09T19:15:50.6424689Z ##[debug]filePatterns=**
2018-03-09T19:15:50.6424889Z ##[debug]remotePath=\
2018-03-09T19:15:50.6425086Z ##[debug]clean=false
2018-03-09T19:15:50.6425562Z ##[debug]cleanContents=false
2018-03-09T19:15:50.6425764Z ##[debug]overwrite=true
2018-03-09T19:15:50.6427302Z ##[debug]preservePaths=true
2018-03-09T19:15:50.6428647Z ##[debug]trustSSL=false
2018-03-09T19:15:50.6433816Z ##[debug]Searching for files to upload
2018-03-09T19:15:50.6437442Z ##[debug]find findPath=D:\a\1\s\dist, options=undefined
2018-03-09T19:15:50.6448064Z ##[debug] D:\a\1\s\dist
2018-03-09T19:15:50.6449295Z ##[debug] is a directory
2018-03-09T19:15:50.6456683Z ##[debug] D:\a\1\s\dist\0.a271095077847919f949.chunk.js
2018-03-09T19:15:50.6457050Z ##[debug] is a file
2018-03-09T19:15:50.6457333Z ##[debug] D:\a\1\s\dist\3rdpartylicenses.txt
2018-03-09T19:15:50.6458297Z ##[debug] is a file
2018-03-09T19:15:50.6458605Z ##[debug] D:\a\1\s\dist\assets
2018-03-09T19:15:50.6459440Z ##[debug] is a directory
2018-03-09T19:15:50.6462139Z ##[debug] D:\a\1\s\dist\assets\fonts
2018-03-09T19:15:50.6463091Z ##[debug] is a directory
2018-03-09T19:15:50.6463391Z ##[debug] D:\a\1\s\dist\assets\fonts\MASTOD__.ttf
2018-03-09T19:15:50.6464026Z ##[debug] is a file
2018-03-09T19:15:50.6464357Z ##[debug] D:\a\1\s\dist\assets\images
2018-03-09T19:15:50.6464622Z ##[debug] is a directory
2018-03-09T19:15:50.6465358Z ##[debug] D:\a\1\s\dist\assets\images\horse_chasing_tail.gif
2018-03-09T19:15:50.6465582Z ##[debug] is a file
2018-03-09T19:15:50.6468019Z ##[debug] D:\a\1\s\dist\assets\images\Yawning_horse.jpg
2018-03-09T19:15:50.6468278Z ##[debug] is a file
2018-03-09T19:15:50.6469393Z ##[debug] D:\a\1\s\dist\favicon.ico
2018-03-09T19:15:50.6469992Z ##[debug] is a file
2018-03-09T19:15:50.6470357Z ##[debug] D:\a\1\s\dist\index.html
2018-03-09T19:15:50.6470493Z ##[debug] is a file
2018-03-09T19:15:50.6470652Z ##[debug] D:\a\1\s\dist\inline.29d7a9534cdf90ff9fc9.bundle.js
2018-03-09T19:15:50.6471193Z ##[debug] is a file
2018-03-09T19:15:50.6471369Z ##[debug] D:\a\1\s\dist\main.8d76a8cead0b0a709f14.bundle.js
2018-03-09T19:15:50.6471530Z ##[debug] is a file
2018-03-09T19:15:50.6471679Z ##[debug] D:\a\1\s\dist\polyfills.367619bafcf2473263d3.bundle.js
2018-03-09T19:15:50.6472451Z ##[debug] is a file
2018-03-09T19:15:50.6472599Z ##[debug] D:\a\1\s\dist\styles.9c0ad738f18adc3d19ed.bundle.css
2018-03-09T19:15:50.6473154Z ##[debug] is a file
2018-03-09T19:15:50.6473332Z ##[debug]15 results
2018-03-09T19:15:50.6482875Z ##[debug]searching for files using: 1 filePatterns: **
2018-03-09T19:15:50.6483815Z ##[debug]win: Win
2018-03-09T19:15:50.6484105Z ##[debug]Candidates found for match: 15
2018-03-09T19:15:50.6484733Z ##[debug]file: D:\a\1\s\dist
2018-03-09T19:15:50.6486022Z ##[debug]file: D:\a\1\s\dist\0.a271095077847919f949.chunk.js
2018-03-09T19:15:50.6486828Z ##[debug]file: D:\a\1\s\dist\3rdpartylicenses.txt
2018-03-09T19:15:50.6487106Z ##[debug]file: D:\a\1\s\dist\assets
2018-03-09T19:15:50.6487816Z ##[debug]file: D:\a\1\s\dist\assets\fonts
2018-03-09T19:15:50.6488210Z ##[debug]file: D:\a\1\s\dist\assets\fonts\MASTOD__.ttf
2018-03-09T19:15:50.6488501Z ##[debug]file: D:\a\1\s\dist\assets\images
2018-03-09T19:15:50.6489321Z ##[debug]file: D:\a\1\s\dist\assets\images\horse_chasing_tail.gif
2018-03-09T19:15:50.6489592Z ##[debug]file: D:\a\1\s\dist\assets\images\Yawning_horse.jpg
2018-03-09T19:15:50.6491507Z ##[debug]file: D:\a\1\s\dist\favicon.ico
2018-03-09T19:15:50.6491670Z ##[debug]file: D:\a\1\s\dist\index.html
2018-03-09T19:15:50.6491836Z ##[debug]file: D:\a\1\s\dist\inline.29d7a9534cdf90ff9fc9.bundle.js
2018-03-09T19:15:50.6491987Z ##[debug]file: D:\a\1\s\dist\main.8d76a8cead0b0a709f14.bundle.js
2018-03-09T19:15:50.6492939Z ##[debug]file: D:\a\1\s\dist\polyfills.367619bafcf2473263d3.bundle.js
2018-03-09T19:15:50.6494252Z ##[debug]file: D:\a\1\s\dist\styles.9c0ad738f18adc3d19ed.bundle.css
2018-03-09T19:15:50.6494547Z ##[debug]searching for files, pattern: D:\a\1\s\dist\**
2018-03-09T19:15:50.6494720Z ##[debug]match patterns: D:\a\1\s\dist\**
2018-03-09T19:15:50.6495418Z ##[debug]match options: [object Object]
2018-03-09T19:15:50.6497148Z ##[debug]applying pattern: D:\a\1\s\dist\**
2018-03-09T19:15:50.6533640Z ##[debug]matched 14 items
2018-03-09T19:15:50.6535574Z ##[debug]Found total matches: 14
2018-03-09T19:15:50.6539444Z ##[debug]adding file: D:\a\1\s\dist\0.a271095077847919f949.chunk.js
2018-03-09T19:15:50.6539661Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6540596Z ##[debug]adding file: D:\a\1\s\dist\3rdpartylicenses.txt
2018-03-09T19:15:50.6540872Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6542092Z ##[debug]adding folder: D:\a\1\s\dist\assets
2018-03-09T19:15:50.6543311Z ##[debug]adding folder: D:\a\1\s\dist\assets\fonts
2018-03-09T19:15:50.6543478Z ##[debug]adding file: D:\a\1\s\dist\assets\fonts\MASTOD__.ttf
2018-03-09T19:15:50.6543651Z ##[debug]adding folder: D:\a\1\s\dist\assets\fonts
2018-03-09T19:15:50.6544536Z ##[debug]adding folder: D:\a\1\s\dist\assets\images
2018-03-09T19:15:50.6544929Z ##[debug]adding file: D:\a\1\s\dist\assets\images\horse_chasing_tail.gif
2018-03-09T19:15:50.6545161Z ##[debug]adding folder: D:\a\1\s\dist\assets\images
2018-03-09T19:15:50.6545411Z ##[debug]adding file: D:\a\1\s\dist\assets\images\Yawning_horse.jpg
2018-03-09T19:15:50.6545618Z ##[debug]adding folder: D:\a\1\s\dist\assets\images
2018-03-09T19:15:50.6545856Z ##[debug]adding file: D:\a\1\s\dist\favicon.ico
2018-03-09T19:15:50.6546053Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6546460Z ##[debug]adding file: D:\a\1\s\dist\index.html
2018-03-09T19:15:50.6547110Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6547444Z ##[debug]adding file: D:\a\1\s\dist\inline.29d7a9534cdf90ff9fc9.bundle.js
2018-03-09T19:15:50.6547722Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6548107Z ##[debug]adding file: D:\a\1\s\dist\main.8d76a8cead0b0a709f14.bundle.js
2018-03-09T19:15:50.6548401Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6548791Z ##[debug]adding file: D:\a\1\s\dist\polyfills.367619bafcf2473263d3.bundle.js
2018-03-09T19:15:50.6549099Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6549477Z ##[debug]adding file: D:\a\1\s\dist\styles.9c0ad738f18adc3d19ed.bundle.css
2018-03-09T19:15:50.6549758Z ##[debug]adding folder: D:\a\1\s\dist
2018-03-09T19:15:50.6565537Z ##[debug]number of files to upload: 15
2018-03-09T19:15:50.6566161Z ##[debug]files to upload: ["D:\\a\\1\\s\\dist","D:\\a\\1\\s\\dist\\0.a271095077847919f949.chunk.js","D:\\a\\1\\s\\dist\\3rdpartylicenses.txt","D:\\a\\1\\s\\dist\\assets","D:\\a\\1\\s\\dist\\assets\\fonts","D:\\a\\1\\s\\dist\\assets\\fonts\\MASTOD__.ttf","D:\\a\\1\\s\\dist\\assets\\images","D:\\a\\1\\s\\dist\\assets\\images\\Yawning_horse.jpg","D:\\a\\1\\s\\dist\\assets\\images\\horse_chasing_tail.gif","D:\\a\\1\\s\\dist\\favicon.ico","D:\\a\\1\\s\\dist\\index.html","D:\\a\\1\\s\\dist\\inline.29d7a9534cdf90ff9fc9.bundle.js","D:\\a\\1\\s\\dist\\main.8d76a8cead0b0a709f14.bundle.js","D:\\a\\1\\s\\dist\\polyfills.367619bafcf2473263d3.bundle.js","D:\\a\\1\\s\\dist\\styles.9c0ad738f18adc3d19ed.bundle.css"]
2018-03-09T19:15:50.6567580Z ##[debug]secure ftp=false
2018-03-09T19:15:50.6567893Z ##[debug]port not specifided, using default: 21
2018-03-09T19:15:50.6604879Z connecting to: ftp.site4now.net:21
2018-03-09T19:15:50.9158405Z ##[debug][connection] < '220 Serv-U FTP Server v14.0 ready...\r\n'
2018-03-09T19:15:50.9162775Z ##[debug][parser] < '220 Serv-U FTP Server v14.0 ready...\r\n'
2018-03-09T19:15:50.9163969Z ##[debug][parser] Response: code=220, buffer='Serv-U FTP Server v14.0 ready...'
2018-03-09T19:15:50.9168281Z ##[debug]ftp client greeting
2018-03-09T19:15:50.9168563Z connected: Serv-U FTP Server v14.0 ready...
2018-03-09T19:15:50.9171052Z ##[debug][connection] > 'USER horser'
2018-03-09T19:15:51.3074212Z ##[debug][connection] < '331 User name okay, need password.\r\n'
2018-03-09T19:15:51.3074625Z ##[debug][parser] < '331 User name okay, need password.\r\n'
2018-03-09T19:15:51.3081806Z ##[debug][parser] Response: code=331, buffer='User name okay, need password.'
2018-03-09T19:15:51.3090492Z ##[debug][connection] > 'PASS 19Dudley91!!'
2018-03-09T19:15:51.5104040Z ##[debug][connection] < '230 User logged in, proceed.\r\n'
2018-03-09T19:15:51.5104457Z ##[debug][parser] < '230 User logged in, proceed.\r\n'
2018-03-09T19:15:51.5148499Z ##[debug][parser] Response: code=230, buffer='User logged in, proceed.'
2018-03-09T19:15:51.5148916Z ##[debug][connection] > 'FEAT'
2018-03-09T19:15:51.6672205Z ##[debug][connection] < '211-Extensions supported\r\n UTF8\r\n OPTS MODE;MLST;UTF8\r\n CLNT\r\n CSID Name; Version;\r\n HOST domain\r\n SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP\r\n AUTH TLS;SSL;TLS-C;TLS-P;\r\n PBSZ\r\n PROT\r\n CCC\r\n SSCN\r\n RMDA directoryname\r\n DSIZ\r\n AVBL\r\n EPRT\r\n EPSV\r\n MODE Z\r\n THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname\r\n REST STREAM\r\n SIZE\r\n MDTM\r\n MDTM YYYYMMDDHHMMSS[+-TZ];filename\r\n MFMT\r\n MFCT\r\n MFF Create;Modify;\r\n XCRC filename;start;end\r\n XMD5 filename;start;end\r\n XSHA1 filename;start;end\r\n XSHA256 filename;start;end\r\n XSHA512 filename;start;end\r\n COMB target;source_list\r\n MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl\r\n211 End (for details use "HELP commmand" where command is the command of interest)\r\n'
2018-03-09T19:15:51.6673106Z ##[debug][parser] < '211-Extensions supported\r\n UTF8\r\n OPTS MODE;MLST;UTF8\r\n CLNT\r\n CSID Name; Version;\r\n HOST domain\r\n SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP\r\n AUTH TLS;SSL;TLS-C;TLS-P;\r\n PBSZ\r\n PROT\r\n CCC\r\n SSCN\r\n RMDA directoryname\r\n DSIZ\r\n AVBL\r\n EPRT\r\n EPSV\r\n MODE Z\r\n THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname\r\n REST STREAM\r\n SIZE\r\n MDTM\r\n MDTM YYYYMMDDHHMMSS[+-TZ];filename\r\n MFMT\r\n MFCT\r\n MFF Create;Modify;\r\n XCRC filename;start;end\r\n XMD5 filename;start;end\r\n XSHA1 filename;start;end\r\n XSHA256 filename;start;end\r\n XSHA512 filename;start;end\r\n COMB target;source_list\r\n MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl\r\n211 End (for details use "HELP commmand" where command is the command of interest)\r\n'
2018-03-09T19:15:51.6673867Z ##[debug][parser] Response: code=211, buffer='Extensions supported\r\n UTF8\r\n OPTS MODE;MLST;UTF8\r\n CLNT\r\n CSID Name; Version;\r\n HOST domain\r\n SITE PSWD;SET;ZONE;CHMOD;MSG;EXEC;HELP\r\n AUTH TLS;SSL;TLS-C;TLS-P;\r\n PBSZ\r\n PROT\r\n CCC\r\n SSCN\r\n RMDA directoryname\r\n DSIZ\r\n AVBL\r\n EPRT\r\n EPSV\r\n MODE Z\r\n THMB BMP|JPEG|GIF|TIFF|PNG max_width max_height pathname\r\n REST STREAM\r\n SIZE\r\n MDTM\r\n MDTM YYYYMMDDHHMMSS[+-TZ];filename\r\n MFMT\r\n MFCT\r\n MFF Create;Modify;\r\n XCRC filename;start;end\r\n XMD5 filename;start;end\r\n XSHA1 filename;start;end\r\n XSHA256 filename;start;end\r\n XSHA512 filename;start;end\r\n COMB target;source_list\r\n MLST Type*;Size*;Create;Modify*;Perm;Win32.ea;Win32.dt;Win32.dl\r\nEnd (for details use "HELP commmand" where command is the command of interest)'
2018-03-09T19:15:51.6675012Z ##[debug][connection] > 'TYPE I'
2018-03-09T19:15:51.7393884Z ##[debug][connection] < '200 Type set to I.\r\n'
2018-03-09T19:15:51.7394935Z ##[debug][parser] < '200 Type set to I.\r\n'
2018-03-09T19:15:51.7395185Z ##[debug][parser] Response: code=200, buffer='Type set to I.'
2018-03-09T19:15:51.7405484Z ##[debug]ftp client ready
2018-03-09T19:15:51.7405934Z uploading files to remote directory: \
2018-03-09T19:15:51.7408246Z ##[debug]uploading files
2018-03-09T19:15:51.7412830Z ##[debug]creating remote directory: \
2018-03-09T19:15:51.7421303Z ##[debug]file: D:\a\1\s\dist
2018-03-09T19:15:51.7421828Z ##[debug]remoteFile: /
2018-03-09T19:15:51.7423594Z ##[debug]creating remote directory: /
2018-03-09T19:15:51.7424259Z ##[debug]file: D:\a\1\s\dist\0.a271095077847919f949.chunk.js
2018-03-09T19:15:51.7424480Z ##[debug]remoteFile: /0.a271095077847919f949.chunk.js
2018-03-09T19:15:51.7425725Z ##[debug]uploading file: D:\a\1\s\dist\0.a271095077847919f949.chunk.js remote: /0.a271095077847919f949.chunk.js
2018-03-09T19:15:51.7429444Z ##[debug]file: D:\a\1\s\dist\3rdpartylicenses.txt
2018-03-09T19:15:51.7430055Z ##[debug]remoteFile: /3rdpartylicenses.txt
2018-03-09T19:15:51.7430290Z ##[debug]uploading file: D:\a\1\s\dist\3rdpartylicenses.txt remote: /3rdpartylicenses.txt
2018-03-09T19:15:51.7430529Z ##[debug]file: D:\a\1\s\dist\assets
2018-03-09T19:15:51.7430714Z ##[debug]remoteFile: /assets
2018-03-09T19:15:51.7431738Z ##[debug]creating remote directory: /assets
2018-03-09T19:15:51.7432669Z ##[debug]file: D:\a\1\s\dist\assets\fonts
2018-03-09T19:15:51.7433215Z ##[debug]remoteFile: /assets/fonts
2018-03-09T19:15:51.7433430Z ##[debug]creating remote directory: /assets/fonts
2018-03-09T19:15:51.7433619Z ##[debug]file: D:\a\1\s\dist\assets\fonts\MASTOD__.ttf
2018-03-09T19:15:51.7433863Z ##[debug]remoteFile: /assets/fonts/MASTOD__.ttf
2018-03-09T19:15:51.7434065Z ##[debug]uploading file: D:\a\1\s\dist\assets\fonts\MASTOD__.ttf remote: /assets/fonts/MASTOD__.ttf
2018-03-09T19:15:51.7434380Z ##[debug]file: D:\a\1\s\dist\assets\images
2018-03-09T19:15:51.7434614Z ##[debug]remoteFile: /assets/images
2018-03-09T19:15:51.7434830Z ##[debug]creating remote directory: /assets/images
2018-03-09T19:15:51.7435064Z ##[debug]file: D:\a\1\s\dist\assets\images\Yawning_horse.jpg
2018-03-09T19:15:51.7435271Z ##[debug]remoteFile: /assets/images/Yawning_horse.jpg
2018-03-09T19:15:51.7435475Z ##[debug]uploading file: D:\a\1\s\dist\assets\images\Yawning_horse.jpg remote: /assets/images/Yawning_horse.jpg
2018-03-09T19:15:51.7435694Z ##[debug]file: D:\a\1\s\dist\assets\images\horse_chasing_tail.gif
2018-03-09T19:15:51.7435895Z ##[debug]remoteFile: /assets/images/horse_chasing_tail.gif
2018-03-09T19:15:51.7436134Z ##[debug]uploading file: D:\a\1\s\dist\assets\images\horse_chasing_tail.gif remote: /assets/images/horse_chasing_tail.gif
2018-03-09T19:15:51.7436344Z ##[debug]file: D:\a\1\s\dist\favicon.ico
2018-03-09T19:15:51.7436522Z ##[debug]remoteFile: /favicon.ico
2018-03-09T19:15:51.7436764Z ##[debug]uploading file: D:\a\1\s\dist\favicon.ico remote: /favicon.ico
2018-03-09T19:15:51.7436957Z ##[debug]file: D:\a\1\s\dist\index.html
2018-03-09T19:15:51.7437159Z ##[debug]remoteFile: /index.html
2018-03-09T19:15:51.7437373Z ##[debug]uploading file: D:\a\1\s\dist\index.html remote: /index.html
2018-03-09T19:15:51.7437584Z ##[debug]file: D:\a\1\s\dist\inline.29d7a9534cdf90ff9fc9.bundle.js
2018-03-09T19:15:51.7437792Z ##[debug]remoteFile: /inline.29d7a9534cdf90ff9fc9.bundle.js
2018-03-09T19:15:51.7438030Z ##[debug]uploading file: D:\a\1\s\dist\inline.29d7a9534cdf90ff9fc9.bundle.js remote: /inline.29d7a9534cdf90ff9fc9.bundle.js
2018-03-09T19:15:51.7438260Z ##[debug]file: D:\a\1\s\dist\main.8d76a8cead0b0a709f14.bundle.js
2018-03-09T19:15:51.7438483Z ##[debug]remoteFile: /main.8d76a8cead0b0a709f14.bundle.js
2018-03-09T19:15:51.7438725Z ##[debug]uploading file: D:\a\1\s\dist\main.8d76a8cead0b0a709f14.bundle.js remote: /main.8d76a8cead0b0a709f14.bundle.js
2018-03-09T19:15:51.7438954Z ##[debug]file: D:\a\1\s\dist\polyfills.367619bafcf2473263d3.bundle.js
2018-03-09T19:15:51.7439179Z ##[debug]remoteFile: /polyfills.367619bafcf2473263d3.bundle.js
2018-03-09T19:15:51.7439721Z ##[debug]uploading file: D:\a\1\s\dist\polyfills.367619bafcf2473263d3.bundle.js remote: /polyfills.367619bafcf2473263d3.bundle.js
2018-03-09T19:15:51.7440011Z ##[debug]file: D:\a\1\s\dist\styles.9c0ad738f18adc3d19ed.bundle.css
2018-03-09T19:15:51.7440219Z ##[debug]remoteFile: /styles.9c0ad738f18adc3d19ed.bundle.css
2018-03-09T19:15:51.7440450Z ##[debug]uploading file: D:\a\1\s\dist\styles.9c0ad738f18adc3d19ed.bundle.css remote: /styles.9c0ad738f18adc3d19ed.bundle.css
2018-03-09T19:15:51.7468114Z ##[debug][connection] > 'PWD'
2018-03-09T19:15:51.8218617Z ##[debug][connection] < '257 "/" is current directory.\r\n'
2018-03-09T19:15:51.8219120Z ##[debug][parser] < '257 "/" is current directory.\r\n'
2018-03-09T19:15:51.8219407Z ##[debug][parser] Response: code=257, buffer='"/" is current directory.'
2018-03-09T19:15:51.8223415Z ##[debug][connection] > 'CWD \\'
2018-03-09T19:15:51.9520666Z ##[debug][connection] < '250 Directory changed to /\r\n'
2018-03-09T19:15:51.9521187Z ##[debug][parser] < '250 Directory changed to /\r\n'
2018-03-09T19:15:51.9521357Z ##[debug][parser] Response: code=250, buffer='Directory changed to /'
2018-03-09T19:15:51.9521494Z ##[debug][connection] > 'CWD /'
2018-03-09T19:15:52.0393165Z ##[debug][connection] < '250 Directory changed to /\r\n'
2018-03-09T19:15:52.0393606Z ##[debug][parser] < '250 Directory changed to /\r\n'
2018-03-09T19:15:52.0393880Z ##[debug][parser] Response: code=250, buffer='Directory changed to /'
2018-03-09T19:15:52.0394108Z ##[debug][connection] > 'PWD'
2018-03-09T19:15:52.0396767Z files uploaded: 0, files skipped: 0, directories processed: 1, total: 1, remaining: 15, remote directory successfully created/verified: \
2018-03-09T19:15:52.1464749Z ##[debug][connection] < '257 "/" is current directory.\r\n'
2018-03-09T19:15:52.1465971Z ##[debug][parser] < '257 "/" is current directory.\r\n'
2018-03-09T19:15:52.1466337Z ##[debug][parser] Response: code=257, buffer='"/" is current directory.'
2018-03-09T19:15:52.1466773Z ##[debug][connection] > 'CWD /'
2018-03-09T19:15:52.2544396Z ##[debug][connection] < '250 Directory changed to /\r\n'
2018-03-09T19:15:52.2544813Z ##[debug][parser] < '250 Directory changed to /\r\n'
2018-03-09T19:15:52.2545240Z ##[debug][parser] Response: code=250, buffer='Directory changed to /'
2018-03-09T19:15:52.2545470Z ##[debug][connection] > 'CWD '
2018-03-09T19:15:52.3285531Z ##[debug][connection] < '501 Syntax error in parameters or arguments.\r\n'
2018-03-09T19:15:52.3286288Z ##[debug][parser] < '501 Syntax error in parameters or arguments.\r\n'
2018-03-09T19:15:52.3286546Z ##[debug][parser] Response: code=501, buffer='Syntax error in parameters or arguments.'
2018-03-09T19:15:52.3287602Z ##[debug][connection] > 'CWD /'
2018-03-09T19:15:52.4042501Z ##[debug][connection] < '250 Directory changed to /\r\n'
2018-03-09T19:15:52.4043030Z ##[debug][parser] < '250 Directory changed to /\r\n'
2018-03-09T19:15:52.4043359Z ##[debug][parser] Response: code=250, buffer='Directory changed to /'
2018-03-09T19:15:52.4048939Z ##[debug][connection] > 'PASV'
2018-03-09T19:15:52.4061686Z FTP upload failed: "Unable to create remote directory: / due to error: Error: Syntax error in parameters or arguments.". FTP log: "[connection] < '250 Directory changed to /\r\n',[parser] < '250 Directory changed to /\r\n',[parser] Response: code=250, buffer='Directory changed to /',[connection] > 'PASV'".
2018-03-09T19:15:52.4062912Z host: ftp.site4now.net
2018-03-09T19:15:52.4063176Z path: \
2018-03-09T19:15:52.4063359Z files uploaded: 0
2018-03-09T19:15:52.4063550Z files skipped: 0
2018-03-09T19:15:52.4063728Z directories processed: 1
2018-03-09T19:15:52.4063908Z unprocessed files & directories: 15
2018-03-09T19:15:52.4064305Z ##[debug]task result: Failed
2018-03-09T19:15:52.4120192Z ##[error]Unable to create remote directory: / due to error: Error: Syntax error in parameters or arguments.
2018-03-09T19:15:52.4134628Z ##[debug]Processed: ##vso[task.issue type=error;]Unable to create remote directory: / due to error: Error: Syntax error in parameters or arguments.
2018-03-09T19:15:52.4148033Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unable to create remote directory: / due to error: Error: Syntax error in parameters or arguments.
2018-03-09T19:15:52.4148151Z disconnecting from: ftp.site4now.net
2018-03-09T19:15:52.4900984Z ##[debug][connection] < '227 Entering Passive Mode (208,118,63,179,156,74)\r\n'
2018-03-09T19:15:52.6721119Z ##[debug]ftp client end
2018-03-09T19:15:52.6722738Z disconnected
2018-03-09T19:15:52.6723174Z ##[debug]ftp client close, hadErr:false
2018-03-09T19:15:52.6785246Z ##[section]Finishing: FTP Upload: dist
2018-03-09T19:15:52.6794608Z ##[debug]Evaluating condition for step: 'Post Job Cleanup'
2018-03-09T19:15:52.6794902Z ##[debug]Always run post-job step: 'Post Job Cleanup'
2018-03-09T19:15:52.6795289Z ##[section]Starting: Post Job Cleanup
2018-03-09T19:15:52.6870577Z Cleaning any cached credential from repository: Horse Liberator Website (Git)
2018-03-09T19:15:52.6871062Z ##[debug]Repository url=https://invisiblefury.visualstudio.com/_git/Horse Liberator Website
2018-03-09T19:15:52.6871183Z ##[debug]targetPath=D:\a\1\s
2018-03-09T19:15:52.6871276Z ##[debug]Remove any extraheader, proxy and client cert setting from git config.
2018-03-09T19:15:52.6898713Z ##[debug]Remove injected credential from git remote fetch url.
2018-03-09T19:15:52.6927337Z ##[debug]Set git fetch url to: https://invisiblefury.visualstudio.com/_git/Horse%20Liberator%20Website for remote: origin.
2018-03-09T19:15:52.6927610Z ##[command]git remote set-url origin https://invisiblefury.visualstudio.com/_git/Horse%20Liberator%20Website
2018-03-09T19:15:52.7245453Z ##[debug]Remove injected credential from git remote push url.
2018-03-09T19:15:52.7271374Z ##[debug]Set git push url to: https://invisiblefury.visualstudio.com/_git/Horse%20Liberator%20Website for remote: origin.
2018-03-09T19:15:52.7271555Z ##[command]git remote set-url --push origin https://invisiblefury.visualstudio.com/_git/Horse%20Liberator%20Website
2018-03-09T19:15:52.7590347Z ##[section]Finishing: Post Job Cleanup
2018-03-09T19:15:53.2105864Z ##[section]Finishing: Job
Related
Angular project azure pipeline build is successful , while doing release there is error.
AZURE CI - OK
AZURE CD - FAIL (The EntryPoint setup.bat is not found.)
LOGDETAILS
[![2023-02-16T06:34:23.2807130Z ##\[debug\]Evaluating condition for step: 'Deploy Service Fabric Application'
==============================================================================
2023-02-16T06:34:23.3540814Z Task : Service Fabric application deployment
2023-02-16T06:34:23.3541277Z Description : Deploy an Azure Service Fabric application to a cluster
2023-02-16T06:34:23.3541644Z Version : 1.205.0
2023-02-16T06:34:23.3541964Z Author : Microsoft Corporation
2023-02-16T06:34:23.3542438Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/service-fabric-deploy
2023-02-16T06:34:23.3543016Z ==============================================================================
2023-02-16T06:34:25.1957417Z ##[debug]VstsTaskSdk 0.11.0 commit 7ff27a3e0bdd6f7b06690ae5f5b63cb84d0f23f4
2023-02-16T06:34:25.5129968Z ##[debug]Entering C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\deploy.ps1.
2023-02-16T06:34:25.5282938Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\task.json
2023-02-16T06:34:25.7973463Z ##[debug]Loaded 83 strings.
2023-02-16T06:34:25.8023935Z ##[debug]SYSTEM_CULTURE: 'en-US'
2023-02-16T06:34:25.8057304Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\Strings\resources.resjson\en-US\resources.resjson
2023-02-16T06:34:25.9847337Z ##[debug]Loaded 83 strings.
2023-02-16T06:34:26.0041645Z ##[debug]Loading module from path 'C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\ServiceFabricHelpers\ServiceFabricHelpers.psm1'.
2023-02-16T06:34:26.0293333Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\ServiceFabricHelpers\module.json
2023-02-16T06:34:26.0696198Z ##[debug]Loaded 18 strings.
2023-02-16T06:34:26.0723633Z ##[debug]SYSTEM_CULTURE: 'en-US'
2023-02-16T06:34:26.0746620Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\ServiceFabricHelpers\Strings\resources.resjson\en-US\resources.resjson
2023-02-16T06:34:26.1275766Z ##[debug]Loaded 18 strings.
2023-02-16T06:34:26.1914865Z ##[debug]Entering Find-VstsFiles.
2023-02-16T06:34:26.2026748Z ##[debug] LiteralDirectory: 'C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\ServiceFabricHelpers'
2023-02-16T06:34:26.2043250Z ##[debug] LegacyPattern: '.ps1'
2023-02-16T06:34:26.2458016Z ##[debug]Entering Get-MatchingItems.
2023-02-16T06:34:26.2487195Z ##[debug] IncludePatterns: 'C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\ServiceFabricHelpers*.ps1'
2023-02-16T06:34:26.2537018Z ##[debug] ExcludePatterns: ''
2023-02-16T06:34:26.2573874Z ##[debug] IncludeFiles: 'True'
2023-02-16T06:34:26.2592344Z ##[debug] IncludeDirectories: 'False'
2023-02-16T06:34:26.2608466Z ##[debug] Force: 'False'
2023-02-16T06:34:26.4271099Z ##[debug]Paths: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\ServiceFabricHelpers
2023-02-16T06:34:26.4310374Z ##[debug] CommonHelpers.ps1
2023-02-16T06:34:26.4326154Z ##[debug] Connect-ServiceFabricClusterFromServiceEndpoint.ps1
2023-02-16T06:34:26.4342019Z ##[debug] Get-ServiceFabricEncryptedText.ps1
2023-02-16T06:34:26.4357753Z ##[debug] SFOperations.ps1
2023-02-16T06:34:26.4378359Z ##[debug]Leaving Get-MatchingItems.
2023-02-16T06:34:26.5122541Z ##[debug]Total found: 4
2023-02-16T06:34:26.5143271Z ##[debug]Leaving Find-VstsFiles.
2023-02-16T06:34:26.5160094Z ##[debug]Exporting function 'Connect-ServiceFabricClusterFromServiceEndpoint'.
2023-02-16T06:34:26.5176598Z ##[debug]Exporting function 'Remove-ClientCertificate'.
2023-02-16T06:34:26.5683416Z ##[debug]Exporting function 'Get-ServiceFabricEncryptedText'.
2023-02-16T06:34:26.5684780Z ##[debug]Exporting variable 'SF_Operations'.
2023-02-16T06:34:26.5893602Z ##[debug]Exporting function 'Publish-Telemetry'.
2023-02-16T06:34:26.6036943Z ##[debug]Exporting function 'Get-SfSdkVersion'.
2023-02-16T06:34:26.6080008Z ##[debug]Exporting function 'Trace-WarningIfCertificateNotPresentInLocalCertStore'.
2023-02-16T06:34:26.6148604Z ##[debug]Importing function 'Connect-ServiceFabricClusterFromServiceEndpoint'.
2023-02-16T06:34:26.6230291Z ##[debug]Importing function 'Get-ServiceFabricEncryptedText'.
2023-02-16T06:34:26.6280133Z ##[debug]Importing function 'Get-SfSdkVersion'.
2023-02-16T06:34:26.6322248Z ##[debug]Importing function 'Publish-Telemetry'.
2023-02-16T06:34:26.6374576Z ##[debug]Importing function 'Remove-ClientCertificate'.
2023-02-16T06:34:26.6397996Z ##[debug]Importing function 'Trace-WarningIfCertificateNotPresentInLocalCertStore'.
2023-02-16T06:34:26.6430201Z ##[debug]Importing variable 'SF_Operations'.
2023-02-16T06:34:26.6526506Z ##[debug]Loading module from path 'C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\PowershellHelpers\PowershellHelpers.psm1'.
2023-02-16T06:34:26.6877730Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\PowershellHelpers\module.json
2023-02-16T06:34:26.7028256Z ##[debug]Loaded 3 strings.
2023-02-16T06:34:26.7062567Z ##[debug]SYSTEM_CULTURE: 'en-US'
2023-02-16T06:34:26.7089459Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\PowershellHelpers\Strings\resources.resjson\en-US\resources.resjson
2023-02-16T06:34:26.7246420Z ##[debug]Loaded 3 strings.
2023-02-16T06:34:26.7460307Z ##[debug]Exporting function 'Invoke-ActionWithRetries'.
2023-02-16T06:34:26.7478679Z ##[debug]Exporting function 'Get-TempDirectoryPath'.
2023-02-16T06:34:26.7499849Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2023-02-16T06:34:26.7520353Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2023-02-16T06:34:26.7785991Z ##[debug]INPUT_PUBLISHPROFILEPATH: 'C:\BA\vsts-agent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml'
2023-02-16T06:34:26.7876521Z Searching for path: C:\BA\vsts-agent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml
2023-02-16T06:34:26.7901060Z ##[debug]Entering Find-VstsFiles.
2023-02-16T06:34:26.7921975Z ##[debug] LegacyPattern: 'C:\BA\vsts-agent_work\r1\a*\drop\projectartifacts*\PublishProfiles\Cloud.xml'
2023-02-16T06:34:26.7954374Z ##[debug]Entering Get-MatchingItems.
2023-02-16T06:34:26.7976246Z ##[debug] IncludePatterns: 'C:\BA\vsts-agent_work\r1\a*\drop\projectartifacts**\PublishProfiles\Cloud.xml'
2023-02-16T06:34:26.7995775Z ##[debug] ExcludePatterns: ''
2023-02-16T06:34:26.8017147Z ##[debug] IncludeFiles: 'True'
2023-02-16T06:34:26.8038028Z ##[debug] IncludeDirectories: 'False'
2023-02-16T06:34:26.8059320Z ##[debug] Force: 'False'
2023-02-16T06:34:27.4825264Z ##[debug]Path: C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\projectartifacts\METalUISFService\METal.UI\PublishProfiles\Cloud.xml
2023-02-16T06:34:27.4874819Z ##[debug]Leaving Get-MatchingItems.
2023-02-16T06:34:27.4896994Z ##[debug]Total found: 1
2023-02-16T06:34:27.4922115Z ##[debug]Leaving Find-VstsFiles.
2023-02-16T06:34:27.5100785Z ##[debug]Asserting leaf path exists: 'C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\projectartifacts\METalUISFService\METal.UI\PublishProfiles\Cloud.xml'
2023-02-16T06:34:27.5114805Z Found path: C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\projectartifacts\METalUISFService\METal.UI\PublishProfiles\Cloud.xml
2023-02-16T06:34:27.6704378Z ##[debug]INPUT_APPLICATIONPACKAGEPATH: 'C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\applicationpackage'
2023-02-16T06:34:27.6715597Z Searching for path: C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\applicationpackage
2023-02-16T06:34:27.6954333Z ##[debug]Entering Find-VstsFiles.
2023-02-16T06:34:27.6977019Z ##[debug] LegacyPattern: 'C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\applicationpackage'
2023-02-16T06:34:27.6997296Z ##[debug] IncludeDirectories: 'True'
2023-02-16T06:34:27.7034444Z ##[debug]Entering Get-MatchingItems.
2023-02-16T06:34:27.7059530Z ##[debug] IncludePatterns: 'C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\applicationpackage'
2023-02-16T06:34:27.7084865Z ##[debug] ExcludePatterns: ''
2023-02-16T06:34:27.7104710Z ##[debug] IncludeFiles: 'False'
2023-02-16T06:34:27.7129481Z ##[debug] IncludeDirectories: 'True'
2023-02-16T06:34:27.7154737Z ##[debug] Force: 'False'
2023-02-16T06:34:27.8997196Z ##[debug]Path: C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\applicationpackage
2023-02-16T06:34:27.9013786Z ##[debug]Leaving Get-MatchingItems.
2023-02-16T06:34:27.9028693Z ##[debug]Total found: 1
2023-02-16T06:34:27.9044096Z ##[debug]Leaving Find-VstsFiles.
2023-02-16T06:34:27.9059960Z ##[debug]Asserting container path exists: 'C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\applicationpackage'
2023-02-16T06:34:27.9070615Z Found path: C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\applicationpackage
2023-02-16T06:34:27.9089593Z ##[debug]INPUT_SERVICECONNECTIONNAME: '61b960bd-64f6-42e9-b8d3-fa799c0d99fc'
2023-02-16T06:34:27.9189445Z ##[debug]ENDPOINT_URL_61b960bd-64f6-42e9-b8d3-fa799c0d99fc: 'tcp://sfmetaldev.eastus.cloudapp.azure.com:19000/'
2023-02-16T06:34:27.9215189Z ##[debug]ENDPOINT_AUTH_61b960bd-64f6-42e9-b8d3-fa799c0d99fc: '*****'
2023-02-16T06:34:27.9236666Z ##[debug]ENDPOINT_DATA_61b960bd-64f6-42e9-b8d3-fa799c0d99fc: '{}'
2023-02-16T06:34:27.9260749Z ##[debug]INPUT_COPYPACKAGETIMEOUTSEC (empty)
2023-02-16T06:34:27.9297096Z ##[debug]INPUT_REGISTERPACKAGETIMEOUTSEC (empty)
2023-02-16T06:34:27.9316155Z ##[debug]INPUT_COMPRESSPACKAGE: 'true'
2023-02-16T06:34:27.9350002Z ##[debug]INPUT_SKIPUPGRADESAMETYPEANDVERSION: 'true'
2023-02-16T06:34:27.9368446Z ##[debug]INPUT_SKIPPACKAGEVALIDATION: 'false'
2023-02-16T06:34:27.9387016Z ##[debug]INPUT_UNREGISTERUNUSEDVERSIONS: 'true'
2023-02-16T06:34:27.9405377Z ##[debug]INPUT_CONFIGUREDOCKERSETTINGS: 'false'
2023-02-16T06:34:27.9423687Z ##[debug]INPUT_OVERRIDEAPPLICATIONPARAMETER: 'false'
2023-02-16T06:34:27.9537832Z ##[debug]Entering Connect-ServiceFabricClusterFromServiceEndpoint.
2023-02-16T06:34:27.9566062Z ##[debug] ClusterConnectionParameters: 'System.Collections.Hashtable'
2023-02-16T06:34:27.9592514Z ##[debug] ConnectedServiceEndpoint: '#{Url=tcp://sfmetaldev.eastus.cloudapp.azure.com:19000/; Data=; Auth=}'
2023-02-16T06:34:27.9614091Z ##[debug]Loading module from path 'C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\TlsHelper_\TlsHelper_.psm1'.
2023-02-16T06:34:27.9844537Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\TlsHelper_/module.json
2023-02-16T06:34:27.9951667Z ##[debug]Loaded 3 strings.
2023-02-16T06:34:27.9974296Z ##[debug]SYSTEM_CULTURE: 'en-US'
2023-02-16T06:34:27.9993679Z ##[debug]Loading resource strings from: C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\ps_modules\TlsHelper_\Strings\resources.resjson\en-US\resources.resjson
2023-02-16T06:34:28.0106268Z ##[debug]Loaded 3 strings.
2023-02-16T06:34:28.0121361Z ##[debug]Exporting function 'Add-Tls12InSession'.
2023-02-16T06:34:28.0135831Z ##[debug]Exporting function 'Assert-TlsError'.
2023-02-16T06:34:28.0151754Z ##[debug]Importing function 'Add-Tls12InSession'.
2023-02-16T06:34:28.0168455Z ##[debug]Importing function 'Assert-TlsError'.
2023-02-16T06:34:28.0190517Z ##[debug]Importing function 'Get-TempDirectoryPath'.
2023-02-16T06:34:28.0205027Z ##[debug]Importing function 'Invoke-ActionWithRetries'.
2023-02-16T06:34:28.0785987Z Added TLS 1.2 in session.
2023-02-16T06:34:28.2683150Z Imported cluster client certificate with thumbprint ''.
2023-02-16T06:34:29.2994740Z Successfully connected to cluster.
2023-02-16T06:34:29.3062565Z ##[debug]Leaving Connect-ServiceFabricClusterFromServiceEndpoint.
2023-02-16T06:34:29.4339705Z ##[debug]INPUT_APPLICATIONPARAMETERPATH: 'C:\BA\vsts-agent_work\r1\a'
2023-02-16T06:34:29.4656894Z Searching for path: C:\BA\vsts-agent_work\r1\a
2023-02-16T06:34:29.5182852Z ##[debug]Entering Find-VstsFiles.
2023-02-16T06:34:29.5185451Z ##[debug] LegacyPattern: 'C:\BA\vsts-agent_work\r1\a'
2023-02-16T06:34:29.5187054Z ##[debug]Entering Get-MatchingItems.
2023-02-16T06:34:29.5188928Z ##[debug] IncludePatterns: 'C:\BA\vsts-agent_work\r1\a'
2023-02-16T06:34:29.5190662Z ##[debug] ExcludePatterns: ''
2023-02-16T06:34:29.5192321Z ##[debug] IncludeFiles: 'True'
2023-02-16T06:34:29.5193733Z ##[debug] IncludeDirectories: 'False'
2023-02-16T06:34:29.5195127Z ##[debug] Force: 'False'
2023-02-16T06:34:29.6231110Z ##[debug]No paths.
2023-02-16T06:34:29.6253746Z ##[debug]Leaving Get-MatchingItems.
2023-02-16T06:34:29.6269325Z ##[debug]Total found: 0
2023-02-16T06:34:29.6284931Z ##[debug]Leaving Find-VstsFiles.
2023-02-16T06:34:29.6310243Z No items were found with search pattern C:\BA\vsts-agent_work\r1\a.
2023-02-16T06:34:29.6358086Z ##[debug]Asserting leaf path exists: 'C:\BA\vsts-agent_work\r1\a_METal Development UI-CI\drop\projectartifacts\METalUISFService\METal.UI\PublishProfiles..\ApplicationParameters\Cloud.xml'
2023-02-16T06:34:29.6381864Z ##[debug]INPUT_OVERRIDEPUBLISHPROFILESETTINGS: 'true'
2023-02-16T06:34:29.6390471Z Overriding upgrade settings specified in publish profile with the settings specified in the Azure Pipelines task.
2023-02-16T06:34:29.6408951Z ##[debug]INPUT_ISUPGRADE: 'true'
2023-02-16T06:34:29.6452721Z ##[debug]INPUT_UPGRADEMODE: 'Monitored'
2023-02-16T06:34:29.6487858Z ##[debug]INPUT_UPGRADEREPLICASETCHECKTIMEOUTSEC (empty)
2023-02-16T06:34:29.6506804Z ##[debug]INPUT_REPLICAQUORUMTIMEOUTSEC (empty)
2023-02-16T06:34:29.6538632Z ##[debug]INPUT_TIMEOUTSEC (empty)
2023-02-16T06:34:29.6558080Z ##[debug]INPUT_FORCERESTART: 'false'
2023-02-16T06:34:29.6576850Z ##[debug]INPUT_FAILUREACTION: 'Rollback'
2023-02-16T06:34:29.6608550Z ##[debug]INPUT_HEALTHCHECKRETRYTIMEOUTSEC (empty)
2023-02-16T06:34:29.6627393Z ##[debug]INPUT_HEALTHCHECKWAITDURATIONSEC (empty)
2023-02-16T06:34:29.6645708Z ##[debug]INPUT_HEALTHCHECKSTABLEDURATIONSEC (empty)
2023-02-16T06:34:29.6664068Z ##[debug]INPUT_UPGRADEDOMAINTIMEOUTSEC (empty)
2023-02-16T06:34:29.6691218Z ##[debug]INPUT_CONSIDERWARNINGASERROR: 'false'
2023-02-16T06:34:29.6718089Z ##[debug]INPUT_DEFAULTSERVICETYPEHEALTHPOLICY (empty)
2023-02-16T06:34:29.6746484Z ##[debug]INPUT_MAXPERCENTUNHEALTHYDEPLOYEDAPPLICATIONS (empty)
2023-02-16T06:34:29.6774218Z ##[debug]INPUT_UPGRADETIMEOUTSEC (empty)
2023-02-16T06:34:29.6801075Z ##[debug]INPUT_SERVICETYPEHEALTHPOLICYMAP (empty)
2023-02-16T06:34:29.7138767Z Service fabric SDK version: 6.0.1028.9590.
2023-02-16T06:34:29.7750044Z ##[debug]INPUT_USEDIFFPACKAGE: 'true'
2023-02-16T06:36:16.8074038Z ##[debug]Join-Path "C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code" "ServiceFabricServiceModel.xsd"
2023-02-16T06:36:16.8142028Z ##[debug]C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\ServiceFabricServiceModel.xsd
2023-02-16T06:36:16.8153154Z ##[debug]Length: 94
2023-02-16T06:36:16.8172350Z ##[debug]
2023-02-16T06:36:16.8192676Z ##[debug]Test-Path "C:\Program Files\Microsoft Service Fabric\bin\Fabric\Fabric.Code\ServiceFabricServiceModel.xsd"
2023-02-16T06:36:16.8239296Z ##[debug]True
2023-02-16T06:36:16.8251763Z ##[debug]
2023-02-16T06:37:30.0491594Z ##[debug]System.Fabric.Management.ImageBuilder.FabricImageBuilderValidationException: The EntryPoint TheProject.Identity.Service.exe is not found.
2023-02-16T06:37:30.0527535Z ##[debug]FileName: C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\TestApplicationPackage_20507114412945\nocz40ci.2x3\applicationpackage\METal.UIPkg\ServiceManifest.xml
2023-02-16T06:37:30.0668701Z ##[debug] at System.Fabric.Management.ImageBuilder.ImageBuilderUtility.TraceAndThrowValidationErrorWithFileName(FabricErrorCode fabricErrorCode, String type, String fileName, String format, Object[] args)
2023-02-16T06:37:30.0671235Z ##[debug] at System.Fabric.Management.ImageBuilder.ServiceManifestValidator.ValidateEntryPointPath(String serviceManifestFileName, FileLocator fileLocator, String program, Boolean isExternalExecutable)
2023-02-16T06:37:30.0673473Z ##[debug] at System.Fabric.Management.ImageBuilder.ServiceManifestValidator.ValidateServiceManifests(ApplicationTypeContext context, Boolean isComposeDeployment)
2023-02-16T06:37:30.0675729Z ##[debug] at System.Fabric.Management.ImageBuilder.ServiceManifestValidator.Validate(ApplicationTypeContext applicationTypeContext, Boolean isComposeDeployment, Boolean isSFVolumeDiskServiceEnabled)
2023-02-16T06:37:30.0678009Z ##[debug] at System.Fabric.Management.ImageBuilder.ApplicationProvisionOperation.ValidateApplicationType(ApplicationTypeContext applicationTypeContext, Boolean isComposeDeployment)
2023-02-16T06:37:30.0680055Z ##[debug] at System.Fabric.Management.ImageBuilder.ApplicationProvisionOperation.d__22.MoveNext()
2023-02-16T06:37:30.0681744Z ##[debug]--- End of stack trace from previous location where exception was thrown ---
2023-02-16T06:37:30.0683248Z ##[debug] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2023-02-16T06:37:30.0684859Z ##[debug] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2023-02-16T06:37:30.0686639Z ##[debug] at System.Fabric.Management.ImageBuilder.ApplicationProvisionOperation.d__21.MoveNext()
2023-02-16T06:37:35.7477697Z ##[debug]SYSTEM_JOBID: '6d11c418-efa2-55ff-7808-6fa3bbd35dfa'
2023-02-16T06:37:35.7774611Z ##[debug]Processed: ##vso[telemetry.publish area=TaskHub;feature=ServiceFabricDeploy]{"OperationId":"TestApplicationPackage","ExceptionData":"System.Fabric.Management.ImageBuilder.FabricImageBuilderValidationException;|C:\BA\vsts-agent\_work\_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\deploy.ps1|116","JobId":"6d11c418-efa2-55ff-7808-6fa3bbd35dfa","SDKVersion":"6.0.1028.9590"}
2023-02-16T06:37:35.8492879Z ##[debug]Leaving C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\deploy.ps1.
2023-02-16T06:37:35.8496982Z ##[debug]Caught exception from task script.
2023-02-16T06:37:35.8531605Z ##[debug]Error record:
2023-02-16T06:37:35.9163434Z ##[debug]Test-ServiceFabricApplicationPackage : The EntryPoint TheProject.Identity.Service.exe is not found.
2023-02-16T06:37:35.9182323Z ##[debug]FileName: C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\TestApplicationPackage_20507114412945\nocz40ci.2x3\applicationpackage\METal.UIPkg\ServiceManifest.xml
2023-02-16T06:37:35.9194414Z ##[debug]At C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\deploy.ps1:116 char:31
2023-02-16T06:37:35.9207810Z ##[debug]+ ... kageValid = Test-ServiceFabricApplicationPackage -ApplicationPackageP ...
2023-02-16T06:37:35.9221199Z ##[debug]+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-02-16T06:37:35.9234932Z ##[debug] + CategoryInfo : InvalidOperation: (:) [Test-ServiceFabricApplicationPackage], FabricImageBuilderValidati onException
2023-02-16T06:37:35.9248389Z ##[debug] + FullyQualifiedErrorId : TestApplicationPackageErrorId,Microsoft.ServiceFabric.Powershell.TestApplicationPackage
2023-02-16T06:37:35.9261320Z ##[debug]
2023-02-16T06:37:35.9279715Z ##[debug]Script stack trace:
2023-02-16T06:37:35.9839342Z ##[debug]at , C:\BA\vsts-agent_work_tasks\ServiceFabricDeploy_c6650aa0-185b-11e6-a47d-df93e7a34c64\1.205.0\deploy.ps1: line 116
2023-02-16T06:37:35.9863369Z ##[debug]at , : line 1
2023-02-16T06:37:35.9867127Z ##[debug]at , : line 22
2023-02-16T06:37:35.9877531Z ##[debug]at , : line 18
2023-02-16T06:37:35.9887776Z ##[debug]at , : line 1
2023-02-16T06:37:35.9903585Z ##[debug]Exception:
2023-02-16T06:37:35.9956962Z ##[debug]System.Fabric.Management.ImageBuilder.FabricImageBuilderValidationException: The EntryPoint TheProject.Identity.Service.exe is not found.
2023-02-16T06:37:35.9971720Z ##[debug]FileName: C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\TestApplicationPackage_20507114412945\nocz40ci.2x3\applicationpackage\METal.UIPkg\ServiceManifest.xml
2023-02-16T06:37:35.9985624Z ##[debug] at System.Fabric.Management.ImageBuilder.ImageBuilderUtility.TraceAndThrowValidationErrorWithFileName(FabricErrorCode fabricErrorCode, String type, String fileName, String format, Object[] args)
2023-02-16T06:37:35.9999153Z ##[debug] at System.Fabric.Management.ImageBuilder.ServiceManifestValidator.ValidateEntryPointPath(String serviceManifestFileName, FileLocator fileLocator, String program, Boolean isExternalExecutable)
2023-02-16T06:37:36.0012302Z ##[debug] at System.Fabric.Management.ImageBuilder.ServiceManifestValidator.ValidateServiceManifests(ApplicationTypeContext context, Boolean isComposeDeployment)
2023-02-16T06:37:36.0026010Z ##[debug] at System.Fabric.Management.ImageBuilder.ServiceManifestValidator.Validate(ApplicationTypeContext applicationTypeContext, Boolean isComposeDeployment, Boolean isSFVolumeDiskServiceEnabled)
2023-02-16T06:37:36.0041068Z ##[debug] at System.Fabric.Management.ImageBuilder.ApplicationProvisionOperation.ValidateApplicationType(ApplicationTypeContext applicationTypeContext, Boolean isComposeDeployment)
2023-02-16T06:37:36.0054805Z ##[debug] at System.Fabric.Management.ImageBuilder.ApplicationProvisionOperation.d__22.MoveNext()
2023-02-16T06:37:36.0069353Z ##[debug]--- End of stack trace from previous location where exception was thrown ---
2023-02-16T06:37:36.0083295Z ##[debug] at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
2023-02-16T06:37:36.0097843Z ##[debug] at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
2023-02-16T06:37:36.0111638Z ##[debug] at System.Fabric.Management.ImageBuilder.ApplicationProvisionOperation.d__21.MoveNext()
2023-02-16T06:37:36.0444063Z ##[error]The EntryPoint setup.bat is not found.
FileName: C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\TestApplicationPackage_20507114412945\nocz40ci.2x3\applicationpackage\METal.UIPkg\ServiceManifest.xml
2023-02-16T06:37:36.0459263Z ##[debug]Processed: ##vso[task.logissue type=error]The EntryPoint TheProject.Identity.Service.exe is not found.%0D%0AFileName: C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Temp\TestApplicationPackage_20507114412945\nocz40ci.2x3\applicationpackage\METal.UIPkg\ServiceManifest.xml
2023-02-16T06:37:36.0462350Z ##[debug]Processed: ##vso[task.complete result=Failed]
2023-02-16T06:37:36.1069769Z ##[section]Finishing: Deploy Service Fabric Application][2]][2]
there was memory issues in CI Pipeline and CD Pipeline, Removed failed pipelines and ran new pipeline.
CD - succeed.
I'm moving to using WinSCP.com over FTP.exe due to it's capabilities of being able to use PASSIVE mode. I have started to convert my FTP script to WinSCP and noticed something that is happening and I don't have a solution for.
Current script - (ftpcommands.txt)
open ftp://user:pass#ftp.host.com/
cd /
put -transfer=binary "C:\Users\username\Desktop\test folder\myfile.7z.uploading"
mv "myfile.7z.uploading" "myfile.7z"
bye
Calling it from console window
Bin\WinSCP.com /script="ftpcommands.txt" /ini=nul
Console window results
Connecting to ftp.host.com ...
Connected
Starting the session...
Session started.
Active session: [1] user#ftp.host.com
/
myfile.7z.uploading | 193 KB | 754.8 KB/s | binary | 100%
Can't get attributes of file 'myfile.7z.uploading'.
Could not retrieve file information
Permission denied.
WinSCP log file (when using the /log=winscp.log switch)
. 2018-08-09 13:09:43.432 --------------------------------------------------------------------------
. 2018-08-09 13:09:43.432 WinSCP Version 5.13.3 (Build 8565) (OS 10.0.17134 - Windows 10 Enterprise)
. 2018-08-09 13:09:43.432 Configuration: nul
. 2018-08-09 13:09:43.432 Log level: Normal
. 2018-08-09 13:09:43.432 Local account: GALAXY\username
. 2018-08-09 13:09:43.432 Working directory: C:\Users\username\Desktop\test folder
. 2018-08-09 13:09:43.432 Process ID: 30844
. 2018-08-09 13:09:43.432 Command-line: "C:\Users\username\Desktop\test folder\Bin\WinSCP.exe" /console=5.13.3 /consoleinstance=_18928_436 "/script=Logs\ftpcommands.txt" "/ini=nul" "/log=winscp.log"
. 2018-08-09 13:09:43.432 Time zone: Current: GMT-4, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/11/2018, DST End: 11/4/2018
. 2018-08-09 13:09:43.510 Login time: Thursday, August 9, 2018 1:09:43 PM
. 2018-08-09 13:09:43.510 --------------------------------------------------------------------------
. 2018-08-09 13:09:43.510 Script: Retrospectively logging previous script records:
> 2018-08-09 13:09:43.510 Script: open ftp://user:***#ftp.host.com/
. 2018-08-09 13:09:43.510 --------------------------------------------------------------------------
. 2018-08-09 13:09:43.510 Session name: user#ftp.host.com (Ad-Hoc site)
. 2018-08-09 13:09:43.510 Host name: ftp.host.com (Port: 21)
. 2018-08-09 13:09:43.510 User name: user (Password: Yes, Key file: No, Passphrase: No)
. 2018-08-09 13:09:43.510 Transfer Protocol: FTP
. 2018-08-09 13:09:43.510 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2018-08-09 13:09:43.510 Disable Nagle: No
. 2018-08-09 13:09:43.510 Proxy: None
. 2018-08-09 13:09:43.510 Send buffer: 262144
. 2018-08-09 13:09:43.510 UTF: Auto
. 2018-08-09 13:09:43.510 FTPS: None [Client certificate: No]
. 2018-08-09 13:09:43.510 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2018-08-09 13:09:43.510 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2018-08-09 13:09:43.510 Cache directory changes: Yes, Permanent: Yes
. 2018-08-09 13:09:43.510 Recycle bin: Delete to: No, Overwritten to: No, Bin path:
. 2018-08-09 13:09:43.510 Timezone offset: 0h 0m
. 2018-08-09 13:09:43.510 --------------------------------------------------------------------------
. 2018-08-09 13:09:43.510 Connecting to ftp.host.com ...
. 2018-08-09 13:09:43.573 Connected with ftp.host.com. Waiting for welcome message...
< 2018-08-09 13:09:43.588 220-Welcome
< 2018-08-09 13:09:43.588 220-
< 2018-08-09 13:09:43.588 220-Company FTP Server
> 2018-08-09 13:09:43.588 USER user
< 2018-08-09 13:09:43.620 331 Password required for user
> 2018-08-09 13:09:43.620 PASS ****
< 2018-08-09 13:09:43.635 230 Logged on
> 2018-08-09 13:09:43.635 SYST
< 2018-08-09 13:09:43.651 215 UNIX emulated by FileZilla
> 2018-08-09 13:09:43.651 FEAT
< 2018-08-09 13:09:43.682 211-Features:
< 2018-08-09 13:09:43.682 MDTM
< 2018-08-09 13:09:43.698 REST STREAM
< 2018-08-09 13:09:43.698 SIZE
< 2018-08-09 13:09:43.698 MLST type*;size*;modify*;
< 2018-08-09 13:09:43.698 MLSD
< 2018-08-09 13:09:43.698 AUTH SSL
< 2018-08-09 13:09:43.698 AUTH TLS
< 2018-08-09 13:09:43.698 PROT
< 2018-08-09 13:09:43.698 PBSZ
< 2018-08-09 13:09:43.698 UTF8
< 2018-08-09 13:09:43.698 CLNT
< 2018-08-09 13:09:43.698 MFMT
< 2018-08-09 13:09:43.698 EPSV
< 2018-08-09 13:09:43.698 EPRT
< 2018-08-09 13:09:43.698 211 End
> 2018-08-09 13:09:43.698 CLNT WinSCP-release-5.13.3
< 2018-08-09 13:09:43.698 200 Don't care
> 2018-08-09 13:09:43.698 OPTS UTF8 ON
< 2018-08-09 13:09:43.713 202 UTF8 mode is always enabled. No need to send this command.
. 2018-08-09 13:09:43.713 Connected
. 2018-08-09 13:09:43.713 --------------------------------------------------------------------------
. 2018-08-09 13:09:43.713 Using FTP protocol.
. 2018-08-09 13:09:43.713 Doing startup conversation with host.
> 2018-08-09 13:09:43.713 PWD
< 2018-08-09 13:09:43.729 257 "/" is current directory.
. 2018-08-09 13:09:43.729 Getting current directory name.
. 2018-08-09 13:09:43.729 Startup conversation with host finished.
< 2018-08-09 13:09:43.729 Script: Active session: [1] user#ftp.host.com
> 2018-08-09 13:09:43.746 Script: cd /
. 2018-08-09 13:09:43.746 Changing directory to "/".
> 2018-08-09 13:09:43.746 CWD /
< 2018-08-09 13:09:43.767 250 CWD successful. "/" is current directory.
. 2018-08-09 13:09:43.767 Getting current directory name.
> 2018-08-09 13:09:43.767 PWD
< 2018-08-09 13:09:43.787 257 "/" is current directory.
< 2018-08-09 13:09:43.787 Script: /
> 2018-08-09 13:09:43.787 Script: put -transfer=binary "C:\Users\username\Desktop\test folder\myfile.7z.uploading"
. 2018-08-09 13:09:43.787 Copying 1 files/directories to remote directory "/" - total size: 198,017
. 2018-08-09 13:09:43.787 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2018-08-09 13:09:43.787 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2018-08-09 13:09:43.787 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2018-08-09 13:09:43.787 File: 'C:\Users\username\Desktop\test folder\myfile.7z.uploading' [2018-08-09T15:41:57.040Z] [198017]
. 2018-08-09 13:09:43.787 Copying "C:\Users\username\Desktop\test folder\myfile.7z.uploading" to remote directory started.
. 2018-08-09 13:09:43.787 Binary transfer mode selected.
. 2018-08-09 13:09:43.787 Starting upload of C:\Users\username\Desktop\test folder\myfile.7z.uploading
> 2018-08-09 13:09:43.787 TYPE I
< 2018-08-09 13:09:43.803 200 Type set to I
> 2018-08-09 13:09:43.803 PASV
< 2018-08-09 13:09:43.818 227 Entering Passive Mode (1,2,3,4,17,147)
> 2018-08-09 13:09:43.818 STOR myfile.7z.uploading
. 2018-08-09 13:09:43.818 Connecting to 1.2.3.4:4499 ...
< 2018-08-09 13:09:43.865 150 Opening data channel for file upload to server of "/myfile.7z.uploading"
< 2018-08-09 13:09:44.084 226 Successfully transferred "/myfile.7z.uploading"
> 2018-08-09 13:09:44.084 MFMT 20180809154157 myfile.7z.uploading
< 2018-08-09 13:09:44.100 550 Permission denied
. 2018-08-09 13:09:44.100 Upload successful
. 2018-08-09 13:09:44.100 Transfer done: 'C:\Users\username\Desktop\test folder\myfile.7z.uploading' => '/myfile.7z.uploading' [198017]
. 2018-08-09 13:09:44.100 Copying finished: Transferred: 198,017, Elapsed: 0:00:00, CPS: 776,209/s
> 2018-08-09 13:09:44.100 Script: mv "myfile.7z.uploading" "myfile.7z"
. 2018-08-09 13:09:44.100 Listing file "myfile.7z.uploading".
. 2018-08-09 13:09:44.100 Retrieving file information...
> 2018-08-09 13:09:44.100 MLST /myfile.7z.uploading
< 2018-08-09 13:09:44.131 550 Permission denied.
. 2018-08-09 13:09:44.131 Could not retrieve file information
< 2018-08-09 13:09:44.131 Script: Can't get attributes of file 'myfile.7z.uploading'.
< 2018-08-09 13:09:44.131 Could not retrieve file information
< 2018-08-09 13:09:44.131 Permission denied.
. 2018-08-09 13:09:44.131 Script: Failed
. 2018-08-09 13:09:44.131 Script: Exit code: 1
. 2018-08-09 13:09:44.131 Disconnected from server
I can connect to the FTP server, login, send the single file. That part works great. Then after I send the file I was hoping to get a 226 Successfully transferred message shown to my console window. Instead I have a message showing the following...
Can't get attributes of file 'MyFileName.txt'.
I have my FTP server set up in a way that the only access rights given are...
Write
Delete
There are no type of read or list rights given to the user. The idea is to have this script blindly dump a file to the FTP server, check that the FTP server returns a successful 226 message and then blindly rename the file once it has been uploaded.
Everything works great with FTP.exe but for some reason I can't get it to work for WinSCP.com. So this leaves me with two questions...
Is it possible to show the actual server responses when using WinSCP.com?
Is it possible to turn off the way WinSCP.com trys to read things like attributes and file information after an upload?
You cannot prevent WinSCP from checking file before doing rename.
But as you have hinted yourself, you can workaround it using WinSCP call command and FTP commands RNFR and RNTO:
call RNFR myfile.7z.uploading
call RNTO myfile.7z
As for the MFMT, WinSCP uses that to update a timestamp of the uploaded file. If that fails, WinSCP silently ignores the error.
But if you want to avoid having the error in the log file, just use -nopreservetime switch of the put command.
i got gmail authentication error. my config and error message as below
I already allowed less secure apps in gmail.
Config.yaml file email section as below
name: frequency_rule
type: frequency
index: security
num_events: 50
timeframe:
days: 1
filter:
- term:
host.keyword : "azure-2"
alert:
- email
email:
"to_address#gmail.com"
smtp_host: "smtp.gmail.com"
smtp_port: "465"
smtp_ssl: true
from_addr: "from_address#gmail.com"
user: "from_address#gmail.com"
password: "password"
Error message as below
PS C:\Users\smiforce-2ndPC\Downloads\Compressed\elastalert-master\elastalert-master> python -m elastalert.elastalert --verbose --config ./config.yaml --rule ./alert_rules/frequency4.yaml
INFO:elastalert:Starting up
INFO:elastalert:Queried rule frequency_rule4 from 2017-11-20 09:48 Central Standard Time to 2017-11-21 09:48 Central Standard Time: 24 / 24 hits
ERROR:root:Traceback (most recent call last):
File "C:\Users\smiforce-2ndPC\Downloads\Compressed\elastalert-master\elastalert-master\elastalert\elastalert.py", line 1246, in alert
return self.send_alert(matches, rule, alert_time=alert_time, retried=retried)
File "C:\Users\smiforce-2ndPC\Downloads\Compressed\elastalert-master\elastalert-master\elastalert\elastalert.py", line 1326, in send_alert
alert.alert(matches)
File "elastalert\alerts.py", line 451, in alert
self.smtp.sendmail(self.from_addr, to_addr, email_msg.as_string())
File "C:\Python27\lib\smtplib.py", line 737, in sendmail
raise SMTPSenderRefused(code, resp, from_addr)
SMTPSenderRefused: (530, '5.5.1 Authentication Required. Learn more at\n5.5.1 https://support.google.com/mail/?p=WantAuthError l4sm636961ioc.69 - gsmtp', 'from_address#gmail.com')
ERROR:root:Uncaught exception running rule frequency_rule4: (530, '5.5.1 Authentication Required. Learn more at\n5.5.1 https://support.google.com/mail/?p=WantAuthError l4sm636961ioc.69 - gsmt
The user and password fields should not be stored in the same config.yaml file but in another file which is referenced in config.yaml.
For instance, create another file named auth.yaml and add the user and password configuration into it:
user: "from_address#gmail.com"
password: "password"
Then in config.yaml you can reference that file using this setting:
smtp_auth_file: "/path/to/auth.yaml"
I am attempting to use the gulp-vinyl-ftp plugin to upload to a remote site.
gulp.task("deploy", ["default"], function () {
var conn = ftp.create({
host: "mywebsite",
user: "****",
password: "******",
// secure: true,
timeOffset: -301,
parallel: 1,
debug: gutil.log
});
var globs = [
"distr/**/*.php",
"!out/vendor/**",
"!out/config.php",
"out/**/*.map",
"out/**/*.css",
"out/**/*.js"
];
return gulp.src(globs)
.pipe(conn.newer("/")).pipe(debug({ title: "Deploy New: " }))
});
However, I am receiving the following error:
events.js:182
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at exports._errnoException (util.js:1016:11)
at TCP.onread (net.js:609:25)
The debug output is as follows:
[08:37:28] [connection] < '220 Microsoft FTP Service\r\n'
[08:37:28] [parser] < '220 Microsoft FTP Service\r\n'
[08:37:28] [parser] Response: code=220, buffer='Microsoft FTP Service'
[08:37:28] [connection] > 'USER xxx'
[08:37:29] [connection] < '331 Password required\r\n'
[08:37:29] [parser] < '331 Password required\r\n'
[08:37:29] [parser] Response: code=331, buffer='Password required'
[08:37:29] [connection] > 'PASS xxxx'
[08:37:29] [connection] < '230 User logged in.\r\n'
[08:37:29] [parser] < '230 User logged in.\r\n'
[08:37:29] [parser] Response: code=230, buffer='User logged in.'
[08:37:29] [connection] > 'FEAT'
It ends there.
However, I can connect just fine through WinSCP.
. 2017-11-08 08:36:24.161 Connecting to mywebsite ...
. 2017-11-08 08:36:24.192 Connected with mywebsite. Waiting for welcome message...
< 2017-11-08 08:36:24.285 220 Microsoft FTP Service
> 2017-11-08 08:36:24.285 USER xxxx
< 2017-11-08 08:36:24.379 331 Password required
> 2017-11-08 08:36:25.861 PASS ********
< 2017-11-08 08:36:25.970 230 User logged in.
> 2017-11-08 08:36:25.970 SYST
. 2017-11-08 08:36:26.064 The server is probably running Windows, assuming that directory listing timestamps are affected by DST.
< 2017-11-08 08:36:26.064 215 Windows_NT
> 2017-11-08 08:36:26.064 FEAT
< 2017-11-08 08:36:26.157 211-Extended features supported:
< 2017-11-08 08:36:26.157 LANG EN*
< 2017-11-08 08:36:26.157 UTF8
< 2017-11-08 08:36:26.157 AUTH TLS;TLS-C;SSL;TLS-P;
< 2017-11-08 08:36:26.157 PBSZ
< 2017-11-08 08:36:26.157 PROT C;P;
< 2017-11-08 08:36:26.157 CCC
< 2017-11-08 08:36:26.157 HOST
< 2017-11-08 08:36:26.157 SIZE
< 2017-11-08 08:36:26.157 MDTM
< 2017-11-08 08:36:26.157 REST STREAM
< 2017-11-08 08:36:26.157 211 END
> 2017-11-08 08:36:26.157 OPTS UTF8 ON
< 2017-11-08 08:36:26.251 200 OPTS UTF8 command successful - UTF8 encoding now ON.
. 2017-11-08 08:36:26.298 Connected
I have tried both the IP address and domain name in the host field, commenting out the the timeOffset and parallel options.
I am not sure where to go from here honestly; any advice would be appreciated.
Thanks.
You will find lot of posts about IIS mysteriously (and inconsistently) closing a connection after receiving FEAT command.
I have not found any definitive solution, but working workaround seems to be to deny the FEAT command (if Gulp can handle that).
In IIS manager, go to FTP > FTP Request Filtering > Commands tab > Actions > Deny command and type FEAT.
See also Microsoft FTP fails to connect after the client requests the list of features (FEAT).
I am calling cmd.exe /c mklink /d C:\LOCAL\PATH \\REMOTE\PATH from cygwin as Admin and the drive can be accessed from multiple Admin's sessions as expected. However, my point is to use it by unprivileged local users as well.
I have changed the owner of the symlink to the user chown USER /LOCAL/PATH but I still can not access the drive:
USER#DESKTOP-P014S4E ~
$ stat /LOCAL/PATH
File: ‘/LOCAL/PATH’ -> ‘//REMOTE/PATH’
Size: 55 Blocks: 0 IO Block: 65536 symbolic link
Device: cccc11d4h/3435925972d Inode: 2814749767198837 Links: 1
Access: (0777/lrwxrwxrwx) Uid: (197619/ USER) Gid: (197121/ None)
Access: 2016-01-13 12:41:49.035500500 -0800
Modify: 2016-01-13 12:41:49.035500500 -0800
Change: 2016-01-14 09:08:54.416498800 -0800
Birth: 2016-01-13 12:41:49.035500500 -0800
USER#DESKTOP-P014S4E ~
$ ls -l /LOCAL/PATH
lrwxrwxrwx 1 USER None 55 Jan 13 12:41 /LOCAL/PATH -> //REMOTE/PATH
USER#DESKTOP-P014S4E ~
$ stat /LOCAL/PATH/
File: ‘/LOCAL/PATH/’
Size: 0 Blocks: 0 IO Block: 65536 directory
Device: c3h/195d Inode: 2351152405898294425 Links: 1
Access: (0755/drwxr-xr-x) Uid: (197619/ USER) Gid: (197121/ None)
Access: 2016-01-13 12:41:49.035500500 -0800
Modify: 2016-01-13 12:41:49.035500500 -0800
Change: 2016-01-14 09:08:54.416498800 -0800
Birth: 2016-01-13 12:41:49.035500500 -0800
USER#DESKTOP-P014S4E ~
$ ls -l /LOCAL/PATH/
ls: cannot open directory /LOCAL/PATH/: Permission denied
USER#DESKTOP-P014S4E ~
$ cd /LOCAL/PATH
-bash: cd: /LOCAL/PATH: Permission denied
USER#DESKTOP-P014S4E ~
$ cd /LOCAL/PATH/
-bash: cd: /LOCAL/PATH/: Permission denied
Note that stat /LOCAL/PATH/ reports something completely different for Admin:
Admin#DESKTOP-P014S4E ~
$ stat /LOCAL/PATH
File: ‘/LOCAL/PATH’
Size: 1024 Blocks: 8 IO Block: 65536 directory
Device: 38h/56d Inode: 2 Links: 25
Access: (0755/drwxr-xr-x) Uid: (4278190080/Unix_User+0) Gid: (4278190080/Unix_Group+0)
Access: 2016-01-14 01:12:12.000000000 -0800
Modify: 2015-11-19 02:34:42.000226000 -0800
Change: 2015-11-19 02:34:42.000226000 -0800
Birth: -
Admin#DESKTOP-P014S4E ~
$ powershell -Command "Get-Acl C:\PATH"
Directory: C:\
Path Owner Access
---- ----- ------
PATH DESKTOP-P014S4E\USER Everyone Allow Read, Synchronize...
Thanks for any pointers.