# ==============================================================================
# Checking git
# ==============================================================================
[;32m[SUCC] git is clean[0m
# ==============================================================================
# Checking .env file
# ==============================================================================
[;32m[SUCC] .env file exists[0m
[;32m[SUCC] .env file is readable[0m
[;32m[SUCC] All variables are present in .env file[0m
[;32m[SUCC] No variables is duplicated in .env file[0m
# ==============================================================================
# Checking .env file values
# ==============================================================================
[;32m[SUCC] All .env file variables have correct values[0m
# ==============================================================================
# Checking required Devilbox core directories exist
# ==============================================================================
[;32m[SUCC] All PHP cfg/ sub directories are present[0m
[;32m[SUCC] All PHP log/ sub directories are present[0m
[;32m[SUCC] All HTTPD cfg/ sub directories are present[0m
[;32m[SUCC] All HTTPD log/ sub directories are present[0m
# ==============================================================================
# Checking devilbox core directory permissions
# ==============================================================================
[;32m[SUCC] All devilbox directories have correct permissions[0m
[;32m[SUCC] All devilbox directories have correct uid[0m
[;32m[SUCC] All devilbox directories have correct gid[0m
# ==============================================================================
# Checking devilbox core file permissions
# ==============================================================================
[;32m[SUCC] All devilbox files have correct permissions[0m
[;32m[SUCC] All devilbox files have correct uid[0m
[;32m[SUCC] All devilbox files have correct gid[0m
# ==============================================================================
# Checking projects permissions
# ==============================================================================
[;32m[SUCC] All project dirs have correct permissions[0m
[;32m[SUCC] All project dirs have correct uid[0m
[;32m[SUCC] All project dirs have correct gid[0m
# ==============================================================================
# Checking projects settings
# ==============================================================================
[;32m[SUCC] All projects have valid DNS records[0m
[;32m[SUCC] All projects have valid HTTPD_DOCROOT_DIR[0m
# ==============================================================================
# Checking customizations
# ==============================================================================
[;34m[INFO] No custom configurations applied[0m
# ==============================================================================
# SUMMARY
# ==============================================================================
[;32m[SUCC] Found no errors[0m
[;34m[INFO] No custom configurations applied[0m
[;34m[INFO] Ensure to run 'docker-compose stop; docker-compose rm -f' on .env changes or custom configs[0m
Log: docker-compose logs
Couldn't submit bug due to output length. Please specify which portion is required.
(Optional) Additional information
I found issue #499 and see that a fix was released, but the error is occurring regardless. The workaround from that issue thread (sudo chmod -R 777 /opt/nvm) works in this case.
In case it's relevant: the host OS is Windows 10 but Docker is running in WSL2.
Have you already looked into this bug?
(Optional) Error message
mkdir: cannot create directory ‘/opt/nvm/.cache’: Permission denied
What went wrong?
When I run
nvm install
in the container shell, it fails because of/opt/nvm
permissions.Expected behaviour
I expect for the specified nvm version to be installed.
How can we reproduce the bug?
nvm install n
(where n is any version number)Host Operating System
Linux
Host Platform (amd64, arm64, other)
amd64
(Linux only) Is SELinux enabled?
Yes, SELinux is enabled
Docker version
Docker version 20.10.23, build 7155243
Docker Compose version
Docker Compose version v2.15.1
Devilbox version
latest master
Have you removed stopped containers before starting?
Yes
Have you pulled latest Docker images before starting?
Yes
Devilbox start command
docker-compose up
Config: .env file
Config: docker-compose.override.yml
No response
Config: ./check-config.sh
Log: docker-compose logs
(Optional) Additional information
I found issue #499 and see that a fix was released, but the error is occurring regardless. The workaround from that issue thread (
sudo chmod -R 777 /opt/nvm
) works in this case.In case it's relevant: the host OS is Windows 10 but Docker is running in WSL2.