Serverless-python-requirements: Empty files created on Mac

Created on 27 Jan 2021  路  3Comments  路  Source: UnitedIncome/serverless-python-requirements

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.

MacOS bug confirmed

Most helpful comment

I'm on Ubuntu 20.04.1. Downgrading to node v14 worked for me.

All 3 comments

I can confirm similar behavior on Mac OS Big Sur 11.1 (20C69) with serverless-python-requirements 5.1.0

I read about this behavior some more, and found other issues, unrelated to this plugin:

https://github.com/serverless/serverless/issues/8772
https://github.com/serverless/serverless/issues/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 using brew 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!

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.

I'm on Ubuntu 20.04.1. Downgrading to node v14 worked for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cdimitroulas picture cdimitroulas  路  4Comments

nknotts picture nknotts  路  5Comments

bsamuel-ui picture bsamuel-ui  路  3Comments

tmclaugh picture tmclaugh  路  4Comments

doublemarked picture doublemarked  路  3Comments