Skip to content

Elastic beanstalk provider creates truncated zip files #1180

@alexjurkiewicz

Description

@alexjurkiewicz

Example build: https://travis-ci.com/kounta/kounta/jobs/295835426

We're using dpl v2 (edge):

    - stage: Build
      name: Deploy to test environment Elastic Beanstalk
      script: skip
      before_deploy:
        - config/travis-deploy-prepare.sh
      deploy:
        - provider: elasticbeanstalk
          edge: true # opt in to dpl v2
          app: xxx
          env: Whatever # irrelevant, only_create_app_version is true
          only_create_app_version: true
          bucket: yyy
          bucket_path: xxx
          label: $TRAVIS_VERSION
          description: "Commit: $TRAVIS_COMMIT. Branch: $TRAVIS_BRANCH."

I ran the following command in a debug Travis CI session:

dpl elasticbeanstalk --access_key_id AAA --secret_access_key BBB --env Whatever --bucket yyy --app 'xxx' --only_create_app_version --bucket_path 'xxx' --region us-west-2 --debug

The output was as expected (~130k "Adding x" lines).

Then testing the zip file:

$ unzip -tq travis-<sha>-1583721278.zip
error:  expected central file header signature not found (file #138912).
  (please check that you have transferred or created the zipfile in the
  appropriate BINARY mode and that you have compiled UnZip properly)
At least one error was detected in travis-<sha>-1583721278.zip.

$ ls -lh travis-<sha>-1583721278.zip
-rw-rw-r-- 1 travis travis 331M Mar  9 02:35 travis-<sha>-1583721278.zip

$ file travis-<sha>-1583721278.zip
travis-<sha>-1583721278.zip: Zip archive data, at least v2.0 to extract

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions