You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In WSL2, the Minecraft server container fails to download and save plugins (e.g., WorldEdit) to the /data/plugins/ directory. The following error appears in the container logs:
Description
In WSL2, the Minecraft server container fails to download and save plugins (e.g., WorldEdit) to the
/data/plugins/
directory. The following error appears in the container logs:java.nio.file.AccessDeniedException: /data/plugins/worldedit-bukkit-7.3.0.jar
This issue occurs when the local
plugins
directory has restrictive permissions, preventing the container from writing files.Root Cause
Permissions Issue:
./plugins
directory was owned byroot
with restrictive permissions (drwxr-xr-x
).File System Binding:
./plugins
directory is mounted to/data/plugins
in the container usingdocker-compose.yml
.Steps to Reproduce
plugins
directory locally:docker-compose up
java.nio.file.AccessDeniedException
when attempting to download plugins:docker logs -f <container-id>
Solution
Update Directory Permissions
sudo chown -R $(whoami):$(whoami) plugins
chmod -R 777 plugins
Restart the Server
docker-compose down
docker-compose up
Verify Plugin Installation
docker logs -f <container-id>
ls ./plugins
Key Findings
drwxr-xr-x
owned by root).Recommended Fix
Update Documentation
./plugins/
) are writable.chmod -R 777 plugins
The text was updated successfully, but these errors were encountered: