aws / aws-codedeploy-agent

Host Agent for AWS CodeDeploy
https://aws.amazon.com/codedeploy
Apache License 2.0
328 stars 188 forks source link

codedeploy-local error on Windows 2022: uninitialized constant InstanceMetadata::InstanceMetadataError (NameError) #328

Closed Eternal21 closed 2 years ago

Eternal21 commented 2 years ago

I am trying to run codedeploy-local on Windows 2022 server to create and test a sample deployment. I used a minimal appspec.yaml file, to eliminate that as any source of errors. I am cd-ing into the directory and running codedeploy-local command. Instead of a deployment I end up with the following error:

Including Minitar via the Archive::Tar namespace is deprecated.
Starting to execute deployment from within folder Amazon/CodeDeploy/default-local-deployment-group/d-#########-local

See the deployment log
at Amazon/CodeDeploy/default-local-deployment-group/d-#########-local/logs/scripts.log for more details

C:/Users/ADMINI~1/AppData/Local/Temp/2/ocr2F8D.tmp/src/opt/codedeploy-agent/bin/codedeploy-local:134:
in `rescue in <main>': uninitialized constant InstanceMetadata::InstanceMetadataError (NameError)
from C:/Users/ADMINI~1/AppData/Local/Temp/2/ocr2F8D.tmp/src/opt/codedeploy-agent/bin/codedeploy-local:128:in `<main>'

There is nothing useful in the logs.

I've found a related issue here, seems to be related to Ruby, which I have zero experience with: #278

t0shiii commented 2 years ago

Please track #278 for this issue.