Why does Serverless produce an Invalid Cross-device link Error when trying to package or deploy?

后端 未结 2 1245
离开以前
离开以前 2021-01-18 11:59

When running either command: sudo serverless package or sudo serverless deploy

I get the following traceback:

Error: ERROR: Excepti

相关标签:
2条回答
  • 2021-01-18 12:39

    Edit: I tried nuking my virtualenv, uninstalling/re-installing serverless-python-requirements, deleting/re-pulling the lambci/lambda Docker image, no dice.

    Then, I stumbled on this GH issue. As hinted in it, the experimental Docker feature Use gRPC FUSE for file sharing seems to be the cause. I've switched it off in the Docker Preferences for now and deploys are successful.

    0 讨论(0)
  • 2021-01-18 12:49

    I just had a similar problem. See this issue for a possible solution.

    In summary,

    1. Remove all cached packages in /Library/Caches/serverless-python-requirements/
    2. Remove existing docker image lambci/lambda build-python3.8
    0 讨论(0)
提交回复
热议问题