prouderthings
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by prouderthings
-
-
For Pterodactyl-Daemon, I installed every as default for Unraid. Added a user and successfully logged in. I can create a Node and see the daemon, but when I try to create a vanilla minecraft server, I get:
Error: (HTTP code 400) unexpected - invalid mount config for type "bind": bind source path does not exist: /srv/daemon-data/1c3cd65f-a386-40f6-be42-1b7277858272
When setting up the Node, under Daemon Server File Directory I have tried leaving the path as default "/srv/daemon-data". The /srv/daemon-data is empty in the container. There is a closed issue on the containers github (https://github.com/ccarney16/pterodactyl-docker/issues/22). Any suggestions in what to try?
[Support] A75G Repo
in Docker Containers
Posted
Finally got this working. The issue is the container must have a 1:1 volume mapping. This was difficult because I did not want the server files filling up the Unraid docker partition. My solution was using symbolic links within the container. I'm not very experience with docker, so if you see an issue with what I have done below, please let me know. I hope this helps those who experience the same issue with the daemon. At least until the Pterodactyl team is able to change the need for 1:1 volume mapping. My guess is it has something to do with the daemon using docker to create new containers.
Solution:
A) A volume of
/tmp/pterodactyl
will be mapped to the Unraid host location/tmp/pterodactyl
. It's important to create a symbolic link first. I tried getting around this, but I found no other solution.mkdir /mnt/user/appdata/pterodactyl/daemon-tmp
ln -s /mnt/user/appdata/pterodactyl/daemon-tmp /tmp/pterodacty
B) When setting up the template for the docker container, the following changes need to be made
/mnt/user/appdata/pterodactyl/daemon : /mnt/user/appdata/pterodactyl/daemon /mnt/user/appdata/pterodactyl/daemon-data : /mnt/user/appdata/pterodactyl/daemon-data /mnt/user/appdata/pterodactyl/daemon-tmp : /mnt/user/appdata/pterodactyl/daemon-tmp /tmp/pterodactyl : /tmp/pterodactyl
/mnt/user/appdata/pterodactyl/daemon-data
core.json
to/mnt/user/appdata/pterodactyl/core.json
core.json
file into the pterodactyl-daemon containerdocker cp /mnt/user/appdata/pterodactyl/core.json pterodactyl-daemon:/srv/daemon/config/core.json
Restart the Pterodactyl-Daemon container with Unraid
docker container exec -it pterodactyl-daemon sh
/srv/daemon
to the/mnt/user/appdata/pterodactyl/daemon
cp -r /srv/daemon/* /mnt/user/appdata/pterodactyl/daemon/
rm -r /svr/daemon
ln -s /mnt/user/appdata/pterodactyl/daemon /srv/daemon ln -s /mnt/user/appdata/pterodactyl/daemon-data /srv/daemon-data
Since the permissions are setup by the daemon after you create a server in the panel, I copied my custom server files into the /mnt/user/appdata/pterodactyl folder and SSH'd into Unraid to move them from there. I'm sure you can change the permissions of the folder, but I wanted to preserve the permissions as is since I won't need to edit them afterwards.
Thanks!