Unable to remove files from folder

Hi Team,

I am getting the following error while config transformation file clean task from 1 server out 3 the other 2 servers the same scripts are executing without any issue.

Files cleanup:
11:46:20Info
Unable to remove files from site website folder after 4 retrys.
11:46:20Error
Script ‘D:\websites\uatbrand.com\website\Octopus.Action.CustomScripts.Deploy.ps1’ returned non-zero exit code: 2
11:46:20Error
Running rollback conventions…
11:46:20Error
Script ‘D:\websites\uatbrand.com\website\Octopus.Action.CustomScripts.Deploy.ps1’ returned non-zero exit code: 2

Is this error code is related to unavailability of clean up files?
Please let me know the route cause.

Hi,

Thanks for reaching out. Could you please let us know which version of Octopus are you running? Also please send us your deployment log so we can see the context of the error.

http://docs.octopusdeploy.com/display/OD/Get+the+raw+output+from+a+task

Thanks,
Dalmiro