Closed SakiiR closed 4 years ago
I have the same issue.
Starting container, CMD: ./TerrariaServer -x64 -config /config/serverconfig.txt -banlist /config/banlist.txt -world /config/world.wld ./run.sh
Error Logging Enabled.
]0;Terraria Server v1.4.0.5Terraria Server v1.4.0.5
Server crash: 6/8/2020 6:56:14 PM
System.NullReferenceException: Object reference not set to an instance of an object
at Terraria.Main.WriteFancyWorldLoadErrorToConsole () [0x00005] in <0ebea07e9a804a06a9f1dd17904b9c9c>:0
at Terraria.Main.DedServ () [0x00b21] in <0ebea07e9a804a06a9f1dd17904b9c9c>:0
at Terraria.Program.LaunchGame (System.String[] args, System.Boolean monoArgs) [0x000ac] in <0ebea07e9a804a06a9f1dd17904b9c9c>:0
Please send crashlog.txt to support@terraria.org
This looks like an issue with TShock crashing. They recently unwound a decision they made a while back to eliminate the -worldpath. I may be able to simplify the container again. I suspect the errors you're seeing involve this issue. I'll try and take a look.
Does the WORLD_FILENAME specified in the environment variable actually exist in the directory you're voluming?
Also so we are clear. This is a world generated by 1.4.0.5, or is it older?
yeap, everything is in order ryan ;) (and it works)
This is what I am using for now:
docker-compose.yml
terraria: build: context: './terraria' volumes: - "./volumes/terraria/worlds:/root/.local/share/Terraria/Worlds" - "./volumes/terraria/logs:/tshock/logs" - "./volumes/terraria/plugins:/plugins" ports: - '7777:7777'
Dockerfile
FROM debian:latest
RUN apt update && apt install -y mono-complete unzip wget && \ wget 'https://github.com/Pryaxis/TShock/releases/download/v4.4.0-pre11/TShock4.4.0_Pre11_Terraria1.4.0.5.zip' -O /tmp/tshock.zip && \ mkdir -p /usr/src/app && \ cd /usr/src/app && \ unzip /tmp/tshock.zip && \ mkdir -p /tshock/logs
CMD mono /usr/src/app/TerrariaServer.exe -logpath "/tshock/logs" -world "/root/.local/share/Terraria/Worlds/myworld.wld"
-wordpath
you said ? it works with -world
-worldpath was removed by the tshock team, they added an equivalent, but I haven't had a chance to try it out much. I was running into issues last night, but I haven't had a chance to deep dive into it yet.
On Tue, Jun 9, 2020 at 1:50 AM SakiiR notifications@github.com wrote:
-wordpath you said ? it works with -world
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ryansheehan/terraria/issues/46#issuecomment-641070863, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB46ERZDFCWPHVESIIOHQH3RVXLSJANCNFSM4NXDR4UA .
Thanks for your quick answers, my alternative works for now so let's wait :)
Hey,
Here is the stacktrace I receive when running ur container:
Docker-compose service entry: