Permissions issue for second datastore

OS Name/Version: Debian

Product Name/Version: AMP Release “Phobos” v2.6.0.6

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:

Configuration Failed: chmod +x "/mnt/s/ampdatastore/Minecraft01/AMP_Linux_x86_64" failed with return code 1
Create Instance Failed: chmod +x "/mnt/s/ampdatastore/Minecraft01/AMP_Linux_x86_64" failed with return code 1

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:

  1. Change ownership of /mnt/s/ampdatastore and its contents to the AMP user and group:

    sudo chown -R amp:amp /mnt/s/ampdatastore
    
  2. 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! :blush:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Cheers, thanks @Mike. Happy new year!

You’re welcome! Happy New Year! If you have more questions, just ping me. :blush:


:robot: 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.

UPDATE: I found the solution - update your WSL2 OS wsl.conf file as described here: Fix Windows Subsystem for Linux (WSL) File Permissions · Brian's Blog. Then run the commands listed above to change permissions.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.