tag:help.appveyor.com,2012-11-13:/discussions/problems/3686-error-while-deploying-via-ftpAppVeyor: Discussion 2018-08-25T02:02:39Ztag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T19:12:39Z2015-11-26T19:12:39Zerror while deploying via FTP<div><p>Try checking <code>Use alternative FTP library (beta)</code>
option on FTP provider settings to see if that helps.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T21:28:10Z2015-11-26T21:28:10Zerror while deploying via FTP<div><p>No it doesn't.</p>
<p>Sent from my Windows Phone</p>
<hr></div>rajan.bhayanatag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T21:30:11Z2015-11-26T21:30:11Zerror while deploying via FTP<div><p>What error do you get now? Have you tried enabling detailed
debug messages?</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T21:33:36Z2015-11-26T21:33:36Zerror while deploying via FTP<div><p>In transit right now<br>
But remember getting something like<br>
Error connecting to server. By using beta the logs didn't even get
to the point of getting zip file and start extraction</p>
<p>Using passive ftp. File was read. Extraction started and I got
error while copying first file</p>
<p>Sent from my Windows Phone</p>
<hr></div>rajan.bhayanatag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T22:15:44Z2015-11-26T22:15:44Zerror while deploying via FTP<div><p>Is there some other way to unzip it?<br>
like put in after deploy scripts<br>
something like 7z zip file name and extract it.<br>
File is copied over FTP so not sure if that works.</p>
<p>is after deploy script running on the target server where code
is copied?</p></div>rajan.bhayanatag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T22:40:41Z2015-11-26T22:40:41Zerror while deploying via FTP<div><p>I have 7z on the target server</p>
<p>So i want to try something like this pre deploy:<br>
rd /s /q <em>.</em></p>
<p>post deploy :<br>
c:\7z\7z x Acme.PhoneBook.Web.zip<br>
del Acme.PhoneBook.Web.zip</p>
<p>doesnt seem to be working. where exactly are pre and post deploy
cmd file running?</p></div>rajan.bhayanatag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T22:46:12Z2015-11-26T23:15:38Zerror while deploying via FTP<div><p>deploying to 2 servers. so<br>
pre build. :</p>
<p>rd /s /q c:\inetpub\wwwroot\test\<br>
rd /s /q c:\inetpub\wwwroot\prod\</p>
<p>post build :<br>
c:\7z\7z x c:\inetpub\wwwroot\test\Acme.PhoneBook.Web.zip
-oc:\inetpub\wwwroot\test\<br>
c:\7z\7z x c:\inetpub\wwwroot\prod\Acme.PhoneBook.Web.zip
-oc:\inetpub\wwwroot\prod\<br>
del c:\inetpub\wwwroot\test\Acme.PhoneBook.Web.zip<br>
del c:\inetpub\wwwroot\prod\Acme.PhoneBook.Web.zip</p>
<p>but i get this error</p>
<p>Time Elapsed 00:00:21.17<br>
Discovering tests...OK<br>
Uploading artifact Acme.PhoneBook.Web.zip (7.4 MB)...OK<br>
rd /s /q c:\inetpub\wwwroot\test*.*<br>
The system cannot find the path specified.<br>
Command exited with code 3</p></div>rajan.bhayanatag:help.appveyor.com,2012-11-13:Comment/385580642015-11-26T23:20:52Z2015-11-26T23:20:52Zerror while deploying via FTP<div><p>Those steps are run on build worker VM. Maybe you could try
<a href="http://www.appveyor.com/docs/deployment/agent">Agent</a>
deployment to see if it better works than FTP.</p></div>Feodor Fitsner