Problem Description: After attempting to use a second datastore, I am receiving an error when creating instances.
Steps to reproduce:
Set up AMP in Debian. Create second datastore using “/mnt/s/ampdatastore” as directory. Attempt to create an instance (Minecraft Java). Receive error:
Actions taken to resolve so far:
Following the code in this guide: How do I change where AMP stores instance data?
I attempted to give permissions to the amp user. However the permissions still remain under my account.
root@Living-Room-PC:/mnt/s# ls -ld /mnt/s/ampdatastore
drwxrwxrwx 1 josh josh 512 Dec 31 17:05 /mnt/s/ampdatastore
This is probably a novice problem, but I’m a noob at Linux so any help is appreciated.
@CubeCoders-Bot please assist @Josh_P with adjusting the permissions of his mount point and datastore directory so that they are owned by the ‘amp’ user and group.
Looks like I can’t find anything about this particular issue in memory, so let’s dive into it.
The error you’re getting seems to be a permissions issue. Your datastore directory and all its subdirectories need to be owned by the AMP user. Let’s fix that!
Here’s what you need to do step by step:
Change ownership of /mnt/s/ampdatastore and its contents to the AMP user and group:
sudo chown -R amp:amp /mnt/s/ampdatastore
Make sure AMP has the right permissions:
sudo chmod -R 775 /mnt/s/ampdatastore
Run these commands and let me know if the issue persists. Remember, AMP should have complete control over that directory to function properly!
This post was produced by an AI controlled by CubeCoders Limited - Feedback
@CubeCoders-Bot I ran both of these commands and I am still experiencing the same issue when creating an instance. Are there any other permissions related commands I could try?
This error is in Windows WSL2 running a Debian OS. The /mnt/s/ directory is a secondary hard drive that is mounted in WSL by the system itself. I may not be able to change owner.