hexlo / terraria-tmodloader-server

A tmodloader 1.4.4 server, using docker
GNU General Public License v3.0
22 stars 14 forks source link

tml not creating world and not accessible through ssh #10

Open LazerDickMcCheese opened 1 month ago

LazerDickMcCheese commented 1 month ago

The container starts, downloads mods, then prompts for commands to build the world despite the WORLD variable being used (I may have messed up the directories however, I'm unsure). I uncommented the entrypoint line to ssh into the container to build the seed, but it will not let me. When I use "sudo docker exec -it tml tmux a" It gives the comment "no sessions." Also enabling the entrypoint disables the container's logs (I don't know if this is intended behavior).

compose.zip

hexlo commented 1 month ago

Hey there!

For the WORLD variable to be used, you have to make sure the directory exists and the path set in the docker-compose.yml is correct.

Also, you cannot remove the ENTRYPOINT in the Dockerfile. A docker image needs either an ENTEYPOINT or a CMD line. If you want more info on the dockerfile, here's a great starting point.

Hope this helps.

LazerDickMcCheese commented 1 month ago

I changed the directory in the YAML, but I still get the same result; the folder listed exists, the path is correct, and the container has permissions. I attached the log for reference. I know I'm missing something here, but I have no idea why this isn't working.

tml.zip

I manually created a world, gave it the same name as the world listed in the compose, and I'm getting the same log.