AWS CodeDeploy - Error Code: UnknownError, Invalid argument @ rb_sysopen

1

I am deploying a deploy (CodeDeploy) on a Windows instance (EC2) using TeamCity, but the deploy can not be completed because of the following error:

  

Error CodeUnknownError

     

Script Name

     

Message Invalid argument @ rb_sysopen - C: \ ProgramData / Amazon / CodeDeploy / 427714e6-a149-4db8-a80e-sfsfdsdfsfd / d-PF43B220S / deployment-archive / Scripts \ app \

     

Log Tail

By the tests that I have done, I see that the problem is the nested folder, since, if I delete the folders that are in a tercel level (Scripts \ app \ controllers) the deploy works corractamente.

Does anyone know what this is about?

Data: TeamCity CodeDeploy EC2 Project .NET MVC

    
asked by Paul Medina 14.03.2018 в 17:05
source

1 answer

0

We found the problem, it was doing the .zip with PowerShell Compress-Archive , then CodeDeploy tries to do the Unzip with Ruby and for some reason they are not compatible.

The solution was to do the .zip in TeamCity with PowerShell Compress-7Zip , and with this the problem was solved and the Deploy was done correctly.

link

    
answered by 15.03.2018 в 18:01