I have a zip file that i am trying to unzip and deploy using ftp
the ftp mode is passive and i can access same using ftpzilla.
but in deployment logs, i see this error.
Uploading web application "Acme.PhoneBook.Web.zip" to FTP server "ftp://wstestdatabase.cloudapp.net:5000" as ""
Downloading artifact Acme.PhoneBook.Web.zip to temporary location...OK
Creating remote directory "/bin"...OK
Uploading "/bin/Abp.AutoMapper.dll"...The remote server returned an error: (550) File unavailable (e.g., file not found, no access).

#1 Posted by Feodor Fitsner Support staff on 26 Nov, 2015 07:12 PM
Try checking
Use alternative FTP library (beta)option on FTP provider settings to see if that helps.#2 Posted by rajan.bhayana on 26 Nov, 2015 09:28 PM
No it doesn't.
Sent from my Windows Phone
________________________________
#3 Posted by Feodor Fitsner Support staff on 26 Nov, 2015 09:30 PM
What error do you get now? Have you tried enabling detailed debug messages?
- Feodor
#4 Posted by rajan.bhayana on 26 Nov, 2015 09:33 PM
In transit right now
But remember getting something like
Error connecting to server. By using beta the logs didn't even get to the point of getting zip file and start extraction
Using passive ftp. File was read. Extraction started and I got error while copying first file
Sent from my Windows Phone
________________________________
#5 Posted by rajan.bhayana on 26 Nov, 2015 10:15 PM
Is there some other way to unzip it?
like put in after deploy scripts
something like 7z zip file name and extract it.
File is copied over FTP so not sure if that works.
is after deploy script running on the target server where code is copied?
#6 Posted by rajan.bhayana on 26 Nov, 2015 10:40 PM
I have 7z on the target server
So i want to try something like this pre deploy:
rd /s /q *.*
post deploy :
c:\7z\7z x Acme.PhoneBook.Web.zip
del Acme.PhoneBook.Web.zip
doesnt seem to be working. where exactly are pre and post deploy cmd file running?
#7 Posted by rajan.bhayana on 26 Nov, 2015 10:46 PM
deploying to 2 servers. so
pre build. :
rd /s /q c:\inetpub\wwwroot\test\
rd /s /q c:\inetpub\wwwroot\prod\
post build :
c:\7z\7z x c:\inetpub\wwwroot\test\Acme.PhoneBook.Web.zip -oc:\inetpub\wwwroot\test\
c:\7z\7z x c:\inetpub\wwwroot\prod\Acme.PhoneBook.Web.zip -oc:\inetpub\wwwroot\prod\
del c:\inetpub\wwwroot\test\Acme.PhoneBook.Web.zip
del c:\inetpub\wwwroot\prod\Acme.PhoneBook.Web.zip
but i get this error
Time Elapsed 00:00:21.17
Discovering tests...OK
Uploading artifact Acme.PhoneBook.Web.zip (7.4 MB)...OK
rd /s /q c:\inetpub\wwwroot\test\*.*
The system cannot find the path specified.
Command exited with code 3
#8 Posted by Feodor Fitsner Support staff on 26 Nov, 2015 11:20 PM
Those steps are run on build worker VM. Maybe you could try Agent deployment to see if it better works than FTP.
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:02 AM.