SOLVED Docker Terraria Server does not start -i Flag tty missing

cephyr

Dabbler
Joined
Sep 29, 2014
Messages
23
Hi,

is there a possibility to set the -i flag with Truenas Apps?

I am trying to run beardedio/terraria container - but I am getting an error.
According to the FAQ:

The server returns a "System.NullReferenceException" exception when loading a world. Help!
The server requires a tty connection, so when starting the server via docker run make sure to include the -it flag. Or if running using docker-compose make sure to add tty: true (see this issue)

I cant find a way in the app settings to set -i / -it or tty: true flag.
Is there any way?

Thanks in advance.
 
Last edited:

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Looks like he managed to make a kubernetes incompatible container.
Which is actually pretty hard to do.
 

cephyr

Dabbler
Joined
Sep 29, 2014
Messages
23
Hi thanks for your reply,

do you really think its a problem with the container itself?
Is kubernetes always using a tty?

I have the same problem with the most popular terraria server container ryshe/terraria

edit:

here is one guy that is setting up the ryshe/terraria container with helm and kubernetes
https://youtu.be/J6DzIJGFYr4?t=1120 here he points out that it is important to set tty:true in the deployment

is there a way to get this setting in the truenas gui? or is it true by default
 
Last edited:

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Interesting thanks for the info...
Almost no container out there requires tty: true, but indeed it's possible in kubernetes as well.
Not in the SCALE GUI and considering only one out of 1000 containers require/use it, not likely to be added either
 

cephyr

Dabbler
Joined
Sep 29, 2014
Messages
23
Is there a way to manually edit the yaml configuration of an existing app?
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Not something that is supported and would survive app/container updates.
Best bet would really be using somewhat decent containers.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
I'm having the TrueNAS team look into this. This isn't the first, and probably wont be the last container that requires this option...
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
I'm having the TrueNAS team look into this. This isn't the first, and probably wont be the last container that requires this option...

It's a bit odd to do this to be frank, we've gone over about 1000 containers by now, none of them require this weirdness.
At the same time TrueNAS SCALE does not support 99% of the frequently used other settings. Some of which are used in 10-100x more containers.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Sure, it is an odd one. But I expect over the next year we'll be adding all sorts of knobs to cover edge cases like this for containers that have "weird" requirements. We'll investigate and handle them each as they come, so please do send me requests if there are other knobs that may be needed.

Here's the Ticket for Interactive Mode:
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
@cephyr

FYI, it looks like this container does let you run without interactive mode if you already have a world created. Take a look here:


1640791868576.png


I may actually try this myself this weekend. Perhaps run docker locally on your laptop / desktop one-time to generate a world file. Move that to the TrueNAS system and then use the '-e world=<world_file_name>' option to specify the world file.
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
Sure, it is an odd one. But I expect over the next year we'll be adding all sorts of knobs to cover edge cases like this for containers that have "weird" requirements. We'll investigate and handle them each as they come, so please do send me requests if there are other knobs that may be needed.

Here's the Ticket for Interactive Mode:

Looking forward to it :)
 

cephyr

Dabbler
Joined
Sep 29, 2014
Messages
23
@cephyr

FYI, it looks like this container does let you run without interactive mode if you already have a world created. Take a look here:


View attachment 51856

I may actually try this myself this weekend. Perhaps run docker locally on your laptop / desktop one-time to generate a world file. Move that to the TrueNAS system and then use the '-e world=<world_file_name>' option to specify the world file.

Thanks for the hint but I already tried it with a preexisting world - it gives the same error.


I'm having the TrueNAS team look into this. This isn't the first, and probably wont be the last container that requires this option...

thats super cool - thanks for that :)
 

truecharts

Guru
Joined
Aug 19, 2021
Messages
788
We just added TTY and STDIN support as an expert/advanced option to all our Apps :)
 
Top