terraria icon indicating copy to clipboard operation
terraria copied to clipboard

Volume not mapping

Open laneyweb opened this issue 3 years ago • 6 comments

Hi, thanks for taking the time to create this and to support mobile server. I am trying to setup a dedicated container to play with my family. I have lots of other docker containers running well but I'm having issues with this one.

I can run up the container just fine and the game plays well using the following command:

sudo docker run -it -p 7777:7777 --rm -v /volume2/docker/terraria:/root/.local/share/Terraria/Worlds ryshe/terraria:mobile-latest -world /root/.local/share/Terraria/Worlds/first.wld -autocreate 1

We can connect from our iPads. However, the issue is that I am not able to get the world to save to the local mount point. Am I correct in thinking that the above command should create the config and world file locally in my /volume2/docker/terraria folder? It does not, I can play OK but no files are created in that folder.

I have checked the local path (same as I use for other container mount points) and it is correct and the ownership looks OK.

Can you give me any pointers or suggestions please?

Thank you again.

laneyweb avatar Apr 13 '21 19:04 laneyweb

I didnt find a lot of documentation on the mobile server, so there is a chance that the mount point is incorrect. I assumed that the file store would be the same as the normal server. By any chance did you change the entrypoint to /bin/sh and look for the save file in the container?

On Tue, Apr 13, 2021 at 2:57 PM laneyweb @.***> wrote:

Hi, thanks for taking the time to create this and to support mobile server. I am trying to setup a dedicated container to play with my family. I have lots of other docker containers running well but I'm having issues with this one.

I can run up the container just fine and the game plays well using the following command:

sudo docker run -it -p 7777:7777 --rm -v /volume2/docker/terraria:/root/.local/share/Terraria/Worlds ryshe/terraria:mobile-latest -world /root/.local/share/Terraria/Worlds/first.wld -autocreate 1

We can connect from our iPads. However, the issue is that I am not able to get the world to save to the local mount point. Am I correct in thinking that the above command should create the config and world file locally in my /volume2/docker/terraria folder? It does not, I can play OK but no files are created in that folder.

I have checked the local path (same as I use for other container mount points) and it is correct and the ownership looks OK.

Can you give me any pointers or suggestions please?

Thank you again.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ryansheehan/terraria/issues/69, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB46ERZNTBZWZWHS2RI5DDTTISO2RANCNFSM4237TELA .

ryansheehan avatar Apr 13 '21 20:04 ryansheehan

Hi thanks so much for the quick reply!

That's a great idea. am I able to change the entrypoint by changing the command I used? Or do I need to change that elsewhere?

laneyweb avatar Apr 13 '21 20:04 laneyweb

Apologies, I can use Portainer to run a /bi/sh entrypopint console....

I'm off to have a search around. I need to google how to search all folders now :)

laneyweb avatar Apr 13 '21 20:04 laneyweb

OK. The mobile folder seems to be at:

/root/.local/share/Terraria/Mobile/Worlds - I have changed my docker command to:

sudo docker run -it -p 7777:7777 --rm -v /volume2/docker/terraria:/root/.local/share/Terraria/Mobile/Worlds ryshe/terraria:mobile-latest -world /root/.local/share/Terraria/Mobile/Worlds/first.wld -autocreate 1

Now my local mount shows the world and is now persistent - yay.

However, the world name created there is World.wld, not the name I specified in the docker command. I can live with that of course but it may cause an issue if we ever need to transfer an existing world to that location?

laneyweb avatar Apr 13 '21 20:04 laneyweb

You're in uncharted territory. I just assume the executable and flags that work against the regular server work here, and honestly it gets tough keeping track of the changes the TShock team makes vs the official server vs mobile server. I'll try and update the docs for mobile on what you found. Thanks for figuring out! It's a huge help.

On Tue, Apr 13, 2021 at 3:53 PM laneyweb @.***> wrote:

OK. The mobile folder seems to be at:

/root/.local/share/Terraria/Mobile/Worlds - I have changed my docker command to:

sudo docker run -it -p 7777:7777 --rm -v /volume2/docker/terraria:/root/.local/share/Terraria/Mobile/Worlds ryshe/terraria:mobile-latest -world /root/.local/share/Terraria/Mobile/Worlds/first.wld -autocreate 1

Now my local mount shows the world and is now persistent - yay.

However, the world name created there is World.wld, not the name I specified in the docker command. I can live with that of course but it may cause an issue if we ever need to transfer an existing world to that location?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ryansheehan/terraria/issues/69#issuecomment-819047730, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB46ER7J22Z6Z4GBLT4MBYLTISVNXANCNFSM4237TELA .

ryansheehan avatar Apr 13 '21 21:04 ryansheehan

OK. The mobile folder seems to be at:

No worries. Glad to help, thank you for helping me play with my daughters on their iPads.

laneyweb avatar Apr 13 '21 21:04 laneyweb