I get this error after creating a new instance in an autoscale group and trying to deploy. I also get this error if I create a new instance (not part of autoscale group) and deploy to it.
If I log into this newly created instance, and restart the code deploy agent, and try deploying again, it succeeds. It will now succeed every time.
If I create an image of this instance at this point, and use this image as base for a new auto-scale group, the deploy fails again.
Since I cannot restart the agent during the auto-scale setup, auto-scaling always fails.
Does anybody have any ideas on how to fix this?
I use AWS code pipeline to pull from GitHub. there are no UTF8 issues in the repo. I confirmed line endings are correct too. I converted all non-UTF8 text files to UTF8 to prove this.