serverless: Serverless exits 0 after failing to upload service zip file
This is a Bug Report
Description
See this console log:
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (17.45 MB)...
Serverless: Recoverable error occurred (write EPIPE), sleeping for 5 seconds. Try 1 of 4
git:feature/teams* >> echo $status
0
git:feature/teams* >> sls version
1.32.0
git:feature/teams* >>
It seems the “recoverable” error was improperly recovered from. Serverless should exit non-zero if the deploy does not complete.
Additional Data
- Serverless Framework Version you’re using: 1.32.0
- Operating System: MacOS 10.14
About this issue
- Original URL
- State: open
- Created 6 years ago
- Comments: 29 (6 by maintainers)
Hello @pgrzesik - I’m able to reproduce that issue on mac os 11.4 with very simple serverless.yml
This is my version of serverless:
And here is the output of the command with debug:
As soon as the zip to be uploaded is bigger than 1mb, i’m facing that error. On version 2.49, it was exiting after the error, on 2.51 it’s getting stuck on that error message forever. I tried multiple version of node: same issue.
Sometimes i’m getting small variation of that error:
But the behaviour is exactly the same, it’s getting stuck there.
I was also able to reproduce on a colleague mac running 11.4, same error as above.
Why is this closed? It’s clearly an open issue, and until there are clear instructions to people stuck on MacOS (even if they don’t require fixes to serverless.com framework itself) it should remain open. Many of your users will be in the same boat. Otherwise, update your supported versions and indicate clearly that serverless.com does not work with and does not support the latest MacOS versions.
We’re seeing this as an intermittent issue (which makes it a lot harder to debug) in Github Actions (so less likely to be speed)
Serverless version 3.34.0
OK thank you for the update, let’s close this for now then. If anyone is still stuck and has more details, let’s reopen!
Serverless: Packaging service… Serverless: Excluding development dependencies… Serverless: Uploading CloudFormation file to S3…
Serverless: Uploading artifacts...Serverless: Uploading service sqs-triggers-demo.zip file to S3 (15.13 MB)… Serverless: Recoverable error occurred (write EPIPE), sleeping for ~7 seconds. Try 1 of 4``I have it too: