aws / aws-codedeploy-agent

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

bundle.tar of a deployment seems to be a zip #206

Closed briananstett closed 4 years ago

briananstett commented 5 years ago

The bundle.tar of a deployment appears to be a zip archive not a tar archive

$ pwd
/opt/codedeploy-agent/deployment-root/cf19337b-2377-4939-bd42-eb04df87b595/d-7FVG974ZW

$ ls
bundle.tar  deployment-archive  logs

$ tar -xvf bundle.tar
tar: This does not look like a tar archive
tar: Skipping to next header
tar: Exiting with failure status due to previous errors

$ file bundle.tar
bundle.tar: Zip archive data, at least v2.0 to extract

$ mv bundle.tar bundle.zip

$ unzip bundle.zip
amazon-growth@compute2:/tmp/deleteme$ unzip bundle.zip 
Archive:  bundle.zip
  inflating: .bash_env               
  inflating: .gitignore              
  inflating: .rspec                  
  inflating: .tool-versions          
  inflating: .travis.yml
  ... (continues)
annamataws commented 5 years ago

Hi, We will add this to our backlog to fix. Thank you

yamasaki760 commented 5 years ago

Any update on this yet?

rajddas commented 4 years ago

Still its shows as TAR but actually its a zip. Is there any update on this?

brndnblck commented 4 years ago

Please upgrade to v1.1.2 (our latest stable version): https://aws.amazon.com/about-aws/whats-new/2020/08/aws-codedeploy-agent-improved-compatibility-amazon-linux-windows-ubuntu/