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 does not support timestamps before 1980 aws #1977
Comments
+1 |
1 similar comment
+1 |
+1 -- related: feross/ieee754#17 |
I am facing this issue explicitly with 'aws-sdk'. When i add it in node modules i get the exception but when i remove it's all fine. |
@zimny , @abajowski , @gbegher at the moment following patch fixed my issue: I added following lines to buildspec.yml after 'npm install'
But i want aws to fix to this issue. I am really disappointed aws-sdk is not working with aws.. |
+1 |
@devTalha Edit: |
As an immediate workaround, adding |
* Pins ieee754 dependency to 1.1.8 to fix #1977
I have upgraded to v2.211.1 and done a clean install, but I still get this issue when running Similar to @devTalha, the following command fixes things for me:
Note, prior to running the above command, the following files appear to have very old modified dates:
|
@chrisradek mentioned patch fixes the issue. But again i want aws to fix their issue as it spoiled my weekend roundly 48 hours. so anyone else doesn't have issue and aws-sdk works with aws pipeline. And yeah you got it right it happens when i add aws-sdk to my dependencies. Thanks for concern. |
@TonyFNZ and others The CodeBuild job that you're running is using the CLI (written in python) to generate a zip file. Python's We patched the SDK so we could be sure none of our dependencies contained files dated prior to 1980. Any other library you're using that has the same problem would need to republish as well. As an aside, it looks like there was an issue with NPM that was causing incorrect file timestamps, so it's likely this is what's leading to packages having incorrect dates: |
wow, thanks @devTalha for starting this thread and everyone else for helping to solve it. I too just came in one morning to my projects that were using CodePipeline / CodeBuild and was in a panic because all of my projects were failing on the build stage with the exact same error (same one that op describes in his Logs but with my resource name), even ones whose source code I hadn't touched in months! Anyway, after adding the command from @TonyFNZ after the
Case closed. |
modification date of 1985. Post npm install now touches files to update the modification date. Workaround sourced from: aws/aws-sdk-js#1977 On branch dev Changes to be committed: modified: buildspec.yml
The problem is the version project and the version cloudformation nodejs. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
We are having projects created with aws codestar. these were working fine. but from today we are facing following issue:
Logs:
'Unable to upload artifact None referenced by CodeUri parameter of GetCompanyRecords resource. zip does not support timestamps before 1980'
Now when i removed aws-sdk module again it works fine. but when i add it again build fails. i am pretty much worried about this. Here is my lambda function.
GetCompanyRecords:
Type: AWS::Serverless::Function
Properties:
Handler: index.handler
Runtime: nodejs6.10
Role:
Fn::ImportValue:
!Join ['-', [!Ref 'ProjectId', !Ref 'AWS::Region', 'LambdaTrustRole']]
Timeout: 10
Events:
PostEvent:
Type: Api
Properties:
Path: /getCompanyRecords
Method: post
Here is pacakge.json
"dependencies": {
"aws-sdk": "^2.211.0",
"aws-serverless-express": "latest",
"body-parser": "^1.18.2",
"chai": "^4.1.2",
"chai-http": "^3.0.0",
"cors": "^2.8.4",
"country-list": "^1.1.0",
"express": "^4.16.2",
"mocha": "^5.0.0",
"promise": "^8.0.1",
"provinces": "^1.11.0",
"underscore": "^1.8.3",
"uuid": "^3.2.1"
}
Thanks in advance
The text was updated successfully, but these errors were encountered: