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.89k stars 269 forks source link

Unable to log in. FAILS to connect. No password prompt. #655

Closed wesgould closed 5 months ago

wesgould commented 5 months ago

As the title says. IT's been rock solid until I tried to play again for the first time in a few weeks/months, but I can't connect (neither can any of my friends). It just says fails to connect and never even prompts for the password.

The container is healthy and running fine. There are not obvious issues in the logs.

https://geekstrom.de/valheim/check/ shows the server online. When you are in the server browser in valheim it shows up.

It just hangs on connection.

fiver22 commented 5 months ago

this is not real solution but I was experiencing the same. After an unrelated reboot of the server I was able to log in. It's possible, if not likely, that restarting the container/stack would have worked as well.

wesgould commented 5 months ago

So I fixed it. I dont know what the actual root cause is, but after launching the container, I logged into the container and cleared the contents of /opt/valheim

Then restarted the container and it let me connect immediately. OBviously that deleted my world, but I shut it down, copied over the world files from backups, relaunched and its back working again.

I am not sure exactly what happened--possibly a weird update failure, but if anyone else runs into this issue, thats what I did to fix it.