[GH-ISSUE #3229] Valheim server crash on startup #2247

Closed
opened 2026-02-27 03:01:44 +03:00 by kerem · 19 comments
Owner

Originally created by @dementedusa on GitHub (Feb 9, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3229

The server crashes almost instantly upon start.
console log: https://pastebin.com/5hdDypEC
post details: https://termbin.com/yfex
I have tried just starting it with stock configs. my system is up to date. this one is stumping me.

Originally created by @dementedusa on GitHub (Feb 9, 2021). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3229 The server crashes almost instantly upon start. console log: https://pastebin.com/5hdDypEC post details: https://termbin.com/yfex I have tried just starting it with stock configs. my system is up to date. this one is stumping me.
kerem 2026-02-27 03:01:44 +03:00
Author
Owner

@SebPikPik commented on GitHub (Feb 9, 2021):

Same here :(

<!-- gh-comment-id:776070065 --> @SebPikPik commented on GitHub (Feb 9, 2021): Same here :(
Author
Owner

@thegreatstorm commented on GitHub (Feb 9, 2021):

What OS/distro you are using?

<!-- gh-comment-id:776078332 --> @thegreatstorm commented on GitHub (Feb 9, 2021): What OS/distro you are using?
Author
Owner

@thegreatstorm commented on GitHub (Feb 9, 2021):

I attempted to replicate with a fresh install of ubuntu 20 and encountered no issues.

<!-- gh-comment-id:776092882 --> @thegreatstorm commented on GitHub (Feb 9, 2021): I attempted to replicate with a fresh install of ubuntu 20 and encountered no issues.
Author
Owner

@dementedusa commented on GitHub (Feb 9, 2021):

I am using unbuntu 18.04

<!-- gh-comment-id:776151445 --> @dementedusa commented on GitHub (Feb 9, 2021): I am using unbuntu 18.04
Author
Owner

@Novido commented on GitHub (Feb 9, 2021):

Got the same issue on Ubuntu Server 20.04.2 LTS

EDIT: Tried 20.10 also with no success.

<!-- gh-comment-id:776220701 --> @Novido commented on GitHub (Feb 9, 2021): Got the same issue on Ubuntu Server 20.04.2 LTS EDIT: Tried 20.10 also with no success.
Author
Owner

@SebPikPik commented on GitHub (Feb 9, 2021):

I got the problem and it worked by giving a 5+ character password

<!-- gh-comment-id:776231635 --> @SebPikPik commented on GitHub (Feb 9, 2021): I got the problem and it worked by giving a 5+ character password
Author
Owner

@geoff10e commented on GitHub (Feb 9, 2021):

This issue is caused by the 32bit version of steamclient.so being used in the install. Thankfully the 64bit version of steamclient.so is also included. I resolved this issue for my install by performing the following commands to put the correct version of the file in server files:

cp ~/valheim/serverfiles/steamclient.so ~/valheim/serverfiles/steamclient.bak
cp ~/valheim/serverfiles/linux64/steamclient.so ~/valheim/serverfiles/steamclient.so

<!-- gh-comment-id:776251331 --> @geoff10e commented on GitHub (Feb 9, 2021): This issue is caused by the 32bit version of steamclient.so being used in the install. Thankfully the 64bit version of steamclient.so is also included. I resolved this issue for my install by performing the following commands to put the correct version of the file in server files: cp ~/valheim/serverfiles/steamclient.so ~/valheim/serverfiles/steamclient.bak cp ~/valheim/serverfiles/linux64/steamclient.so ~/valheim/serverfiles/steamclient.so
Author
Owner

@gbschenkel commented on GitHub (Feb 9, 2021):

This issue is caused by the 32bit version of steamclient.so being used in the install. Thankfully the 64bit version of steamclient.so is also included. I resolved this issue for my install by performing the following commands to put the correct version of the file in server files:

cp ~/valheim/serverfiles/steamclient.so ~/valheim/serverfiles/steamclient.bak
cp ~/valheim/serverfiles/linux64/steamclient.so ~/valheim/serverfiles/steamclient.so

Didn't work for me.

<!-- gh-comment-id:776309132 --> @gbschenkel commented on GitHub (Feb 9, 2021): > This issue is caused by the 32bit version of steamclient.so being used in the install. Thankfully the 64bit version of steamclient.so is also included. I resolved this issue for my install by performing the following commands to put the correct version of the file in server files: > > cp ~/valheim/serverfiles/steamclient.so ~/valheim/serverfiles/steamclient.bak > cp ~/valheim/serverfiles/linux64/steamclient.so ~/valheim/serverfiles/steamclient.so Didn't work for me.
Author
Owner

@geoff10e commented on GitHub (Feb 9, 2021):

@gbschenkel The error present in the OP, that's preventing the server from starting is the following segment:

dlopen failed trying to load:
steamclient.so
with error:
steamclient.so: wrong ELF class: ELFCLASS32
[S_API FAIL] SteamAPI_Init(): Sys_LoadModule failed to load: steamclient.so
[S_API FAIL] SteamAPI_Init() failed
[Steamworks.NET] GameServer.Init() failed.
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)

My proposed fix will only work for users getting the same error as @dementedusa, the creator of this specific issue report.

<!-- gh-comment-id:776311255 --> @geoff10e commented on GitHub (Feb 9, 2021): @gbschenkel The error present in the OP, that's preventing the server from starting is the following segment: > dlopen failed trying to load: > steamclient.so > with error: > steamclient.so: wrong ELF class: ELFCLASS32 > [S_API FAIL] SteamAPI_Init(): Sys_LoadModule failed to load: steamclient.so > [S_API FAIL] SteamAPI_Init() failed > [Steamworks.NET] GameServer.Init() failed. > (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35) My proposed fix will only work for users getting the same error as @dementedusa, the creator of this specific issue report.
Author
Owner

@gbschenkel commented on GitHub (Feb 9, 2021):

Well I found it needs at least use 2GB RAM, since I am running inside a container, the server was breaking while allocating memory. Now is up and running.

image

<!-- gh-comment-id:776317978 --> @gbschenkel commented on GitHub (Feb 9, 2021): Well I found it needs at least use 2GB RAM, since I am running inside a container, the server was breaking while allocating memory. Now is up and running. ![image](https://user-images.githubusercontent.com/1715069/107442783-656c9700-6b16-11eb-9ff7-d40cd9f83de2.png)
Author
Owner

@Novido commented on GitHub (Feb 10, 2021):

Well I found it needs at least use 2GB RAM, since I am running inside a container, the server was breaking while allocating memory. Now is up and running.

image

Yeah I bumped mine up to 4Gb RAM and 2 CPU for it to start.

<!-- gh-comment-id:776510604 --> @Novido commented on GitHub (Feb 10, 2021): > Well I found it needs at least use 2GB RAM, since I am running inside a container, the server was breaking while allocating memory. Now is up and running. > > ![image](https://user-images.githubusercontent.com/1715069/107442783-656c9700-6b16-11eb-9ff7-d40cd9f83de2.png) Yeah I bumped mine up to 4Gb RAM and 2 CPU for it to start.
Author
Owner

@thegreatstorm commented on GitHub (Feb 10, 2021):

Valheim

  • normal 2.3gb - 2.9gb
  • high pop(8-10) 3.2gb - 3.9gb
<!-- gh-comment-id:776941963 --> @thegreatstorm commented on GitHub (Feb 10, 2021): Valheim * normal `2.3gb - 2.9gb` * high pop(8-10) `3.2gb - 3.9gb`
Author
Owner

@jonneymendoza commented on GitHub (Feb 10, 2021):

hi, how did u get logs?

<!-- gh-comment-id:777057184 --> @jonneymendoza commented on GitHub (Feb 10, 2021): hi, how did u get logs?
Author
Owner

@geoff10e commented on GitHub (Feb 10, 2021):

hi, how did u get logs?

Logs should be located here:

~/valheim/log/console

<!-- gh-comment-id:777064900 --> @geoff10e commented on GitHub (Feb 10, 2021): > > > hi, how did u get logs? Logs should be located here: ~/valheim/log/console
Author
Owner

@geoff10e commented on GitHub (Feb 10, 2021):

@gbschenkel @Novido
Can you confirm whether you were receiving the same error in the logs, as the reporter of this issue in the console, or were you getting another error?

<!-- gh-comment-id:777065814 --> @geoff10e commented on GitHub (Feb 10, 2021): @gbschenkel @Novido Can you confirm whether you were receiving the same error in the logs, as the reporter of this issue in the console, or were you getting another error?
Author
Owner

@Azengar commented on GitHub (Feb 11, 2021):

I got the problem and it worked by giving a 5+ character password

You absolute mad lad! This is so stupid though...

<!-- gh-comment-id:777134796 --> @Azengar commented on GitHub (Feb 11, 2021): > I got the problem and it worked by giving a 5+ character password You absolute mad lad! This is so stupid though...
Author
Owner

@dementedusa commented on GitHub (Feb 11, 2021):

This issue is caused by the 32bit version of steamclient.so being used in the install. Thankfully the 64bit version of steamclient.so is also included. I resolved this issue for my install by performing the following commands to put the correct version of the file in server files:

cp ~/valheim/serverfiles/steamclient.so ~/valheim/serverfiles/steamclient.bak
cp ~/valheim/serverfiles/linux64/steamclient.so ~/valheim/serverfiles/steamclient.so

@geoff10e that worked perfectly. thank you very much.

<!-- gh-comment-id:777138838 --> @dementedusa commented on GitHub (Feb 11, 2021): > This issue is caused by the 32bit version of steamclient.so being used in the install. Thankfully the 64bit version of steamclient.so is also included. I resolved this issue for my install by performing the following commands to put the correct version of the file in server files: > > cp ~/valheim/serverfiles/steamclient.so ~/valheim/serverfiles/steamclient.bak > cp ~/valheim/serverfiles/linux64/steamclient.so ~/valheim/serverfiles/steamclient.so @geoff10e that worked perfectly. thank you very much.
Author
Owner

@wp1g19 commented on GitHub (Feb 12, 2021):

Same issue, but on windows, any tailored fix?

<!-- gh-comment-id:777977867 --> @wp1g19 commented on GitHub (Feb 12, 2021): Same issue, but on windows, any tailored fix?
Author
Owner

@gOOvER commented on GitHub (Feb 12, 2021):

The server NEEDS a Password to start

<!-- gh-comment-id:777979376 --> @gOOvER commented on GitHub (Feb 12, 2021): The server NEEDS a Password to start
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2247
No description provided.