Skip to content

Empty files created on Mac #588

@amadensor

Description

@amadensor

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.

Activity

miketheman

miketheman commented on Jan 30, 2021

@miketheman
Contributor

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:

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 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!

amadensor

amadensor commented on Jan 31, 2021

@amadensor
Author

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

jcortega commented on Feb 3, 2021

@jcortega

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

pgrzesik

pgrzesik commented on Feb 11, 2021

@pgrzesik
Contributor

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

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jcortega@miketheman@amadensor@pgrzesik

        Issue actions

          Empty files created on Mac · Issue #588 · serverless/serverless-python-requirements