runtime.txt Python installation fails due to lack of permissions
Bug Report
-
At what date and time did you most recently experience the problem? Earlier this week.
-
Where did you experience the problem? E.g. Azure Web Apps, Azure Functions, Azure Container Registry, or offline use. Offline use
-
If your repo is publicly available please share its URL: https://github.com/microsoft/vscode-dev-containers
-
What happened? I created a runtime.txt file with the contents
python-3.6.9in a codespaces-linux container root and rebuilt the devcontainer. I got the following output:
Downloading and extracting 'python' version '3.6.9' to '/opt/python/3.6.9'...
Downloaded in 1 sec(s).
Verifying checksum...
Extracting contents...
performing sha512 checksum for: python...
Done in 2 sec(s).
image detector file exists, platform is python..
/tmp/BuildScriptGenerator/0840f23b71354aec894853987bbe8595/build.sh: line 131: /etc/ld.so.conf.d/python.conf: Permission denied
Could not auto-build. Skipping.
After that I changed my Dockerfile to do touch /etc/ld.so.conf.d/python.conf && chown codespace:codespace /etc/ld.so.conf.d/python.conf. This worked around the issue, but then I got another permission denied error after that which said: /sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
After that I think I changed the permissions of the /etc directory to work around the issue and then things worked fine.
-
What did you expect or want to happen? Oryx would automatically install Python 3.6.9
-
How can we reproduce it? Add a runtime.txt to a codespace