lloesche / valheim-server-docker

Valheim dedicated gameserver with automatic update, World backup, BepInEx and ValheimPlus mod support
https://hub.docker.com/r/lloesche/valheim-server
Apache License 2.0
1.92k stars 269 forks source link

Log spam "Waiting for server to listen on UDP port 2456" when using crossplay #515

Open Elk8324 opened 1 year ago

Elk8324 commented 1 year ago

When crossplay is enabled (via adding "-crossplay" to SERVER_ARGS), the server process will not listen on the SERVER_PORT and will instead accept connections via PlayFab.

However the server listening check at https://github.com/lloesche/valheim-server-docker/blob/c94f0a50ea3b31a954a06642eca9db383c637723/valheim-server#L119 runs regardless, writing the above log message every 5 seconds.

Any suggestions for a clean fix?

SammyIsra commented 1 year ago

I am also seeing this. Is this just a logging issue or a symptom of a larger game connection issue?

Elk8324 commented 1 year ago

I am also seeing this. Is this just a logging issue or a symptom of a larger game connection issue?

In the crossplay scenario I outlined above just logging: Connectivity is fine (there's different connectivity problems with the PlayFab backend, but that isn't related to this container).

For non-crossplay deployment it should eventually detect the bound port though. See https://github.com/lloesche/valheim-server-docker/blob/c94f0a50ea3b31a954a06642eca9db383c637723/valheim-server#L87

hancbrya commented 1 year ago
Screenshot 2023-03-14 at 4 55 15 PM

I have the same issue, removing the -e SERVER_ARGS="-crossplay" arg resolves the issue. But unable to open port with cross play enabled.