Skip to content

Problem connecting when running with podman; works with docker #131

@mlandalv

Description

@mlandalv

Not sure if this is a bug or simply my lack of skills with podman, but the server works fine with docker, but not with podman. With podman it starts but it is not possible to connect. I have the same problem with both terraria:latest and terraria:vanilla-latest.

Docker

With docker the server starts fine and it's possible to connect.

docker run -it -p 7777:7777 --rm -v /opt/terraria-server/worlds:/root/.local/share/Terraria/Worlds -e WORLD_FILENAME=World.wld -v /opt/terraria-server/config:/config docker.io/ryshe/terraria:vanilla-latest

[...]

Terraria Server v1.4.4.4

Listening on port 7777
Type 'help' for a list of commands.

: Server started
192.168.1.117:39940 is connecting...
gpath.c:115: assertion 'filename != NULL' failed

gpath.c:115: assertion 'filename != NULL' failed

[nickname] has joined.
[nickname] has left.

Ports.

lsof -i -P -n
docker-pr 7460            root    4u  IPv4 174547      0t0  TCP *:7777 (LISTEN)
docker-pr 7467            root    4u  IPv6 174549      0t0  TCP *:7777 (LISTEN)

Podman

The exact same run command but with podman. The server starts but it's not possible to connect. Stuck at "Connecting to 192.168.1.66:7777".

podman run -it -p 7777:7777 --rm -v /opt/terraria-server/worlds:/root/.local/share/Terraria/Worlds -e WORLD_FILENAME=World.wld -v /opt/terraria-server/config:/config docker.io/ryshe/terraria:vanilla-latest

[...]

Terraria Server v1.4.4.4

Listening on port 7777
Type 'help' for a list of commands.

: Server started

Ports.

lsof -i -P -n
conmon    7314            root    5u  IPv4 173141      0t0  TCP *:7777 (LISTEN)

I'm using Netavark. I'm guessing this might have something to do with it.

podman info --format {{.Host.NetworkBackend}}
netavark

There's no firewall on the server and iptables is not enabled. I've tried with upnp=0 and upnp=1 in serversettings.txt.

Any help to get this to work with podman is highly appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions