-
Notifications
You must be signed in to change notification settings - Fork 293
dockerizePip: "git clone failed with error code 128 in None" error #230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@galindro If this problem is caching related, you might try an upcoming pull request that refactors a lot of how caching works, and fixes (for me) problems like this... Please see: #165 Specifically, from inside your codebase...
Then re-run your sls package or sls deploy and let me know if it works. If it doesn't work, then your problem must lie with the requirements.txt contents (which you didn't paste yet), with git being unable to checkout your code, or with your file/folder permissions/ownership. All three errors are there mentioned above.
|
I had the exact same issue (and I initially removed the Besides, its PR will probably be merged very soon 🤞 so you should definitely try it! |
@AndrewFarley @cgrimal. This is my requirements.txt file content: requests==2.18.1
pymssql==2.1.3
git+ssh://[email protected]/my-repo/[email protected]
git+ssh://[email protected]/my-repo/[email protected] I've installed the serverless-python-requirements version that you have mentioned, but it still not working. But now, the error is related to a missing lib inside Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: Load command requirements:cleanCache
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Generated requirements from /home/myuser/mycode/requirements.txt in /home/myuser/mycode/.serverless/requirements.txt...
Serverless: Installing requirements from /home/myuser/.cache/serverless-python-requirements/b3221caecae33c28316456045abeb0ab_slspyc/requirements.txt ...
Serverless: Docker Image: lambci/lambda:build-python3.6
Serverless: Using download cache directory /home/myuser/.cache/serverless-python-requirements/downloadCacheslspyc
[ 'run',
'--rm',
'-v',
'"/home/myuser/.cache/serverless-python-requirements/b3221caecae33c28316456045abeb0ab_slspyc:/var/task:z"',
'-v',
'"/home/myuser/.ssh/id_rsa:/root/.ssh/id_rsa:z"',
'-v',
'"/home/myuser/.ssh/known_hosts:/root/.ssh/known_hosts:z"',
'-v',
'"/tmp/ssh-7QSB5sUaaZov/agent.7861:/tmp/ssh_sock:z"',
'-e',
'SSH_AUTH_SOCK=/tmp/ssh_sock',
'-v',
'"/home/myuser/.cache/serverless-python-requirements/downloadCacheslspyc:/var/useDownloadCache:z"',
'lambci/lambda:build-python3.6',
'/bin/bash',
'-c',
'"chown -R 0\\:0 /var/useDownloadCache && python3.6 -m pip install -t /var/task/ -r /var/task/requirements.txt --cache-dir /var/useDownloadCache && chown -R 1000\\:1000 /var/task && chown -R 1000\\:1000 /var/useDownloadCache"' ]
Collecting git+ssh://[email protected]/my-repo/[email protected] (from -r /var/task/requirements.txt (line 1))
Cloning ssh://[email protected]/my-repo/my_lib1.git (to revision 1.0.0) to /tmp/pip-req-build-kek2k7ki
Collecting git+ssh://[email protected]/my-repo/[email protected] (from -r /var/task/requirements.txt (line 2))
Cloning ssh://[email protected]/my-repo/my_lib2.git (to revision 1.2.2) to /tmp/pip-req-build-ppejnev8
Collecting pymssql==2.1.3 (from -r /var/task/requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/4c/c8/5ad36d8d3c304ab4f310c89d0593ab7b6229568dd8e9cde927311b2f0c00/pymssql-2.1.3.tar.gz (897kB)
Collecting requests==2.18.1 (from -r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/5a/58/671011e3ff4a06e2969322267d78dcfda1bf4d1576551df1cce93cd7239d/requests-2.18.1-py2.py3-none-any.whl (88kB)
Collecting jsonschema==2.6.0 (from fx-lib-common==1.0.0->-r /var/task/requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting SQLAlchemy~=1.2.6 (from fx-lib-sqldb==1.2.1->-r /var/task/requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/aa/cc/348eec885d81f7260b07d961b3ececfc0aa82f7d4a8f45ff997e0d3f44ba/SQLAlchemy-1.2.11.tar.gz (5.6MB)
Collecting pymysql~=0.8.0 (from fx-lib-sqldb==1.2.1->-r /var/task/requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/32/e8/222d9e1c7821f935d6dba8d4c60b9985124149b35a9f93a84f0b98afc219/PyMySQL-0.8.1-py2.py3-none-any.whl (81kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting urllib3<1.22,>=1.21.1 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/24/53/f397db567de0aa0e81b211d81c13c41a779f14893e42189cf5bdb97611b2/urllib3-1.21.1-py2.py3-none-any.whl (131kB)
Collecting certifi>=2017.4.17 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl (147kB)
Collecting idna<2.6,>=2.5 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl (55kB)
Installing collected packages: pymssql, chardet, urllib3, certifi, idna, requests, jsonschema, fx-lib-common, SQLAlchemy, pymysql, fx-lib-sqldb
Running setup.py install for pymssql: started
Running setup.py install for pymssql: finished with status 'error'
Complete output from command /var/lang/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6rr75k0l/pymssql/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-4w96ygzp/install-record.txt --single-version-externally-managed --compile --home=/tmp/pip-target-a_aycsjo:
setup.py: platform.system() => 'Linux'
setup.py: platform.architecture() => ('64bit', 'ELF')
setup.py: platform.linux_distribution() => ('', '', '')
setup.py: platform.libc_ver() => ('glibc', '2.2.5')
setup.py: Not using bundled FreeTDS
setup.py: include_dirs = ['/usr/local/include']
setup.py: library_dirs = ['/usr/local/lib']
running install
running build
running build_ext
building '_mssql' extension
creating build
creating build/temp.linux-x86_64-3.6
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/include -I/var/lang/include/python3.6m -c _mssql.c -o build/temp.linux-x86_64-3.6/_mssql.o -DMSDBLIB
_mssql.c:266:22: fatal error: sqlfront.h: No such file or directory
#include "sqlfront.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/var/lang/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-6rr75k0l/pymssql/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-4w96ygzp/install-record.txt --single-version-externally-managed --compile --home=/tmp/pip-target-a_aycsjo" failed with error code 1 in /tmp/pip-install-6rr75k0l/pymssql/
Error --------------------------------------------------
null
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
Error: null
at installRequirements (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:249:11)
at installRequirementsIfNeeded (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:413:3)
at targetFuncs.filter.map.f (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:456:35)
at Array.map (<anonymous>)
at ServerlessPythonRequirements.installAllRequirements (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:450:8)
From previous event:
at PluginManager.invoke (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:390:22)
at PluginManager.run (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:421:17)
at variables.populateService.then.then (/usr/lib/node_modules/serverless/lib/Serverless.js:157:33)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at Serverless.run (/usr/lib/node_modules/serverless/lib/Serverless.js:144:8)
at serverless.init.then (/usr/lib/node_modules/serverless/bin/serverless:43:50)
at <anonymous>
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: linux
Node Version: 8.11.4
Serverless Version: 1.29.2 Because the pip install failed, the docker container could not execute these two commands: Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: Load command requirements:cleanCache
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Generated requirements from /home/myuser/mycode/requirements.txt in /home/myuser/mycode/.serverless/requirements.txt...
Serverless: Installing requirements from /home/myuser/.cache/serverless-python-requirements/b3221caecae33c28316456045abeb0ab_slspyc/requirements.txt ...
Serverless: Docker Image: lambci/lambda:build-python3.6
Serverless: Using download cache directory /home/myuser/.cache/serverless-python-requirements/downloadCacheslspyc
Error --------------------------------------------------
EACCES: permission denied, open '/home/myuser/.cache/serverless-python-requirements/downloadCacheslspyc/requirements.txt'
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
Error: EACCES: permission denied, open '/home/myuser/.cache/serverless-python-requirements/downloadCacheslspyc/requirements.txt'
at Object.fs.openSync (fs.js:646:18)
at installRequirements (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:176:13)
at installRequirementsIfNeeded (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:413:3)
at targetFuncs.filter.map.f (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:456:35)
at Array.map (<anonymous>)
at ServerlessPythonRequirements.installAllRequirements (/home/myuser/mycode/node_modules/serverless-python-requirements/lib/pip.js:450:8)
From previous event:
at PluginManager.invoke (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:390:22)
at PluginManager.run (/usr/lib/node_modules/serverless/lib/classes/PluginManager.js:421:17)
at variables.populateService.then.then (/usr/lib/node_modules/serverless/lib/Serverless.js:157:33)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
From previous event:
at Serverless.run (/usr/lib/node_modules/serverless/lib/Serverless.js:144:8)
at serverless.init.then (/usr/lib/node_modules/serverless/bin/serverless:43:50)
at <anonymous>
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com
Your Environment Information -----------------------------
OS: linux
Node Version: 8.11.4
Serverless Version: 1.29.2 |
@AndrewFarley I've found a solution for the above problem (related to the missing lib): What I did was add two more environment variables to the docker run command. I've did this editing again pip.js and adding these two lines right bellow line 160: cmdOptions.push('-e', 'PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1');
cmdOptions.push('-e', 'CFLAGS=-fPIC'); This was the resulting Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command requirements
Serverless: Load command requirements:clean
Serverless: Load command requirements:install
Serverless: Load command requirements:cleanCache
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Generated requirements from /home/myuser/mycode/requirements.txt in /home/myuser/mycode/.serverless/requirements.txt...
Serverless: Installing requirements from /home/myuser/.cache/serverless-python-requirements/b3221caecae33c28316456045abeb0ab_slspyc/requirements.txt ...
Serverless: Docker Image: lambci/lambda:build-python3.6
Serverless: Using download cache directory /home/myuser/.cache/serverless-python-requirements/downloadCacheslspyc
[ 'run',
'--rm',
'-v',
'"/home/myuser/.cache/serverless-python-requirements/b3221caecae33c28316456045abeb0ab_slspyc:/var/task:z"',
'-v',
'"/home/myuser/.ssh/id_rsa:/root/.ssh/id_rsa:z"',
'-v',
'"/home/myuser/.ssh/known_hosts:/root/.ssh/known_hosts:z"',
'-v',
'"/tmp/ssh-7QSB5sUaaZov/agent.7861:/tmp/ssh_sock:z"',
'-e',
'SSH_AUTH_SOCK=/tmp/ssh_sock',
'-e',
'PYMSSQL_BUILD_WITH_BUNDLED_FREETDS=1',
'-e',
'CFLAGS=-fPIC',
'-v',
'"/home/myuser/.cache/serverless-python-requirements/downloadCacheslspyc:/var/useDownloadCache:z"',
'lambci/lambda:build-python3.6',
'/bin/bash',
'-c',
'"chown -R 0\\:0 /var/useDownloadCache && python3.6 -m pip install -t /var/task/ -r /var/task/requirements.txt --cache-dir /var/useDownloadCache && chown -R 1000\\:1000 /var/task && chown -R 1000\\:1000 /var/useDownloadCache"' ]
Collecting git+ssh://[email protected]/my-repo/[email protected] (from -r /var/task/requirements.txt (line 1))
Cloning ssh://[email protected]/my-repo/my_lib1.git (to revision 1.0.0) to /tmp/pip-req-build-sqec5kdr
Collecting git+ssh://[email protected]/my-repo/[email protected] (from -r /var/task/requirements.txt (line 2))
Cloning ssh://[email protected]/my-repo/my_lib2.git (to revision 1.2.2) to /tmp/pip-req-build-vjark09w
Collecting pymssql==2.1.3 (from -r /var/task/requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/4c/c8/5ad36d8d3c304ab4f310c89d0593ab7b6229568dd8e9cde927311b2f0c00/pymssql-2.1.3.tar.gz (897kB)
Collecting requests==2.18.1 (from -r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/5a/58/671011e3ff4a06e2969322267d78dcfda1bf4d1576551df1cce93cd7239d/requests-2.18.1-py2.py3-none-any.whl (88kB)
Collecting jsonschema==2.6.0 (from fx-lib-common==1.0.0->-r /var/task/requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting SQLAlchemy~=1.2.6 (from fx-lib-sqldb==1.2.1->-r /var/task/requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/aa/cc/348eec885d81f7260b07d961b3ececfc0aa82f7d4a8f45ff997e0d3f44ba/SQLAlchemy-1.2.11.tar.gz (5.6MB)
Collecting pymysql~=0.8.0 (from fx-lib-sqldb==1.2.1->-r /var/task/requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/32/e8/222d9e1c7821f935d6dba8d4c60b9985124149b35a9f93a84f0b98afc219/PyMySQL-0.8.1-py2.py3-none-any.whl (81kB)
Collecting certifi>=2017.4.17 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/df/f7/04fee6ac349e915b82171f8e23cee63644d83663b34c539f7a09aed18f9e/certifi-2018.8.24-py2.py3-none-any.whl (147kB)
Collecting urllib3<1.22,>=1.21.1 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/24/53/f397db567de0aa0e81b211d81c13c41a779f14893e42189cf5bdb97611b2/urllib3-1.21.1-py2.py3-none-any.whl (131kB)
Collecting chardet<3.1.0,>=3.0.2 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB)
Collecting idna<2.6,>=2.5 (from requests==2.18.1->-r /var/task/requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/11/7d/9bbbd7bb35f34b0169542487d2a8859e44306bb2e6a4455d491800a5621f/idna-2.5-py2.py3-none-any.whl (55kB)
Installing collected packages: pymssql, certifi, urllib3, chardet, idna, requests, jsonschema, fx-lib-common, SQLAlchemy, pymysql, fx-lib-sqldb
Running setup.py install for pymssql: started
Running setup.py install for pymssql: finished with status 'done'
Running setup.py install for fx-lib-common: started
Running setup.py install for fx-lib-common: finished with status 'done'
Running setup.py install for SQLAlchemy: started
Running setup.py install for SQLAlchemy: finished with status 'done'
Running setup.py install for fx-lib-sqldb: started
Running setup.py install for fx-lib-sqldb: finished with status 'done'
Successfully installed SQLAlchemy-1.2.11 certifi-2018.8.24 chardet-3.0.4 fx-lib-common-1.0.0 fx-lib-sqldb-1.2.1 idna-2.5 jsonschema-2.6.0 pymssql-2.1.3 pymysql-0.8.1 requests-2.18.1 urllib3-1.21.1
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Injecting required Python packages to package...
Serverless: Invoke aws:package:finalize
Serverless: Invoke aws:common:moveArtifactsToPackage Isn't there any options to add environment variables to docker container? If no, I could refactor my |
@galindro This is already possible with pipCmdExtraArgs, please see: https://github.com/UnitedIncome/serverless-python-requirements#extra-pip-arguments Go try adding those with that command instead of modifying this plugin code. :) Should do the trick! |
@AndrewFarley I don't think that it will work using |
Ahh good point missed that. Then that would be a great MR! You could probably take that pip args as an template for this feature. |
Hello, I've encountered the same issue but the fix I've used was quite different. I'll put my solution here in case it could help somebody else. serverless-python-requirementsversion 4.3.0 EnvironmentWindows 10 pro (Docker for Windows) DescriptionI wanted to deploy a lambda function with private directory dependencies. Thus, I'm using the option 'dockerSsh: true' to mount my ssh key in the container. When deploying, I received the error "git clone failed with error code 128 in None" IssueAs the plugin was mounting the ssh key in the container, the container was using it to git clone the dependencies. The source of the error was that the SSH key has too broad permission (755 instead of 600). First thing, I've tried to modify the plugin to 'chmod' the key before using it. I guess it was a collateral effect that being mounted but the command wasn't able to modify the permissions properly. Here is an extract of the modified code in the pip.js file:
It seems quite a hack so could some of you tell me what you are thinking about it and if you have a better way of fixing it? |
I'm getting the same environment: macOS 10.14.4 serverless-python-requirements: version 4.3.0
More specifically, By modifying (replacing) the pipCmds, I cam confirm its mounting my local id_rsa and known_hosts files, but even doing a simple test with |
This appears to have been resolved in #271. Closing! |
serverless-python-requirements version
4.1.1
Description
I'm trying to deploy my code using serverless-python-requirements, but this error is ocurring when I execute
sls deploy
. I've changedpip.js
a little bit to print the docker options to stdout.If I remove the
-u 1000
param from docker command line, the code is successfully built. But, another error is displayed when serverless tries to remove the .serverless/requirements/* content because the files inside it are created by root user from within container.I've tried to run the docker command standalone, but the error persists. Also, more logs are displayed:
How could I solve this???
The text was updated successfully, but these errors were encountered: