Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zip error on Elastic Beanstalk deploy #3634

Closed
completer opened this issue Jun 4, 2017 · 5 comments
Closed

Zip error on Elastic Beanstalk deploy #3634

completer opened this issue Jun 4, 2017 · 5 comments

Comments

@completer
Copy link

completer commented Jun 4, 2017

This just started happening for no obvious reason. Can't be our code, I don't think.

From log:
eb deploy --staged -l shippable.deli-lidar.lidar.112 14s
Creating application version archive "shippable.deli-lidar.lidar.112".
ERROR: ValueError :: ZIP does not support timestamps before 1980

Furthermore the build does not report failing, even though this error is occurring.

@ambarish2012
Copy link
Contributor

@sumothecat the error is coming from the git archive command used by eb deploy (http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb3-deploy.html). To debug further run eb deploy with --debug -v options.

@completer
Copy link
Author

@ambarish2012 the eb deploy command is not being run by our script, but by Shippable's deploy configuration for eb_paas. So I don't know how to pass options to it.

This doesn't happen in dev environment - it looks like some change in the Shippable build environment.

The only reference I can find to this error with eb depoy is https://stackoverflow.com/questions/31166275/elastic-beanstalk-cli-deploy-zip-error

@completer
Copy link
Author

Update: This is reproducible after a full clean of node_modules - apologies @ambarish2012
For reference, seems to be due to an issue with Uglify.js
aws/aws-cli#2639

@completer
Copy link
Author

For info, I added these lines to the end of the build: ci: section of shippable.yml

# workaround uglify.js shipping with 1969 timestamps
- touch -t 200001010000 /tmp/timestamp # make a file with a timestamp of the year 2000
- find . ! -newer /tmp/timestamp -exec touch -t 201701010000 '{}' \; # update all files with earlier timestamps

@fdintino
Copy link

fdintino commented Jun 7, 2017

For cross-reference, here is the uglifyjs issue: mishoo/UglifyJS#2054

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants