-
Notifications
You must be signed in to change notification settings - Fork 293
Open
Labels
Description
I am having issues with the files generated on Docker by the requirements being OK, but all of my code files are empty when deployed. This is happening on Mac (Catalina), but not Linux (Debian Bullseye).
Any tips on troubleshooting or tracing so I can see where the error happened so that I can work on a fix? This is happening on more than one serverless application.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
miketheman commentedon Jan 30, 2021
I can confirm similar behavior on Mac OS Big Sur 11.1 (20C69) with
serverless-python-requirements
5.1.0I read about this behavior some more, and found other issues, unrelated to this plugin:
serverless/serverless#8772
serverless/serverless#8794
Sure enough, I'm also on node v15.7.0 - so seeing the same sadness. What version of node are you using on your Debian Bullseye?
The general consensus appears to be to downgrade node for now to a version prior to 15.5.x to resolve.
With either
n
or usingbrew install node@14
and then making that the default version used for your project, (either by linking, exporting, etc).I've confirmed that dropping down to node v14.15.4 resolves the issue.
Let's keep this open for anyone else that happens across this problem for now, until it's resolved on Node 15!
amadensor commentedon Jan 31, 2021
Reverting the version of node to LTS (14) fixed the issue. I wish there was more logging or a persistent docker so I could look at more details. One more clue: When no using the requirements plugin, if I unzip the deployment file locally, I get CRC errors.
jcortega commentedon Feb 3, 2021
I'm on Ubuntu 20.04.1. Downgrading to node v14 worked for me.
pgrzesik commentedon Feb 11, 2021
Hello 👋 The issue was caused by one of the libraries that the Framework depends on, but recently a new release of
crc32-stream
was made and all new installations should use it by default on work correctly with Node>=15.6.0
- original issue on Framework side: serverless/serverless#8772