mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 14:15:59 +03:00
[GH-ISSUE #4149] [Bug]: Valheim bepinex: ERROR: ld.so: object 'libdoorstop_x64.so' from LD_PRELOAD cannot be preloaded #2639
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2639
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Ren108 on GitHub (Mar 25, 2023).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4149
User story
Just want to start the server with bepinex installed by lgsm.
Game
Valheim
Linux distro
Ubuntu 22.04
Command
command: start, command: mods-install
Further information
Just switched from manual installed bepinex to lgsm installed bepinex (first removed all files from manual copy to serverfiles directory and then issued mi bepinexvh).
With manual install everthing was ok but now if i launch the server i get the message
ERROR: ld.so: object 'libdoorstop_x64.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
a couple of times in console and then the server is starting correctly. Its not showing up in logs.
Relevant log output
Steps to reproduce
No response
@Ren108 commented on GitHub (Mar 25, 2023):
tag game: Ark: Survival Evolved could be removed :D
@ghstwhl commented on GitHub (Mar 26, 2023):
I am also experiencing this error, with a fresh install of LinuxGSM, Valheim, and the bepinexvh mod.
@ghstwhl commented on GitHub (Mar 26, 2023):
I was able to clear this message by editing
./lgsm/functions/fix_vh.shand updating LD_LIBRARY_PATH to include the path to the instance's copy of doorstop_libs@dgibbs64 commented on GitHub (Mar 26, 2023):
@ghstwhl could you paste your code changes please. I am currently looking at a fix
@ghstwhl commented on GitHub (Mar 27, 2023):
I just forked the repo so I could submit a proper PR. :)
@ghstwhl commented on GitHub (Mar 27, 2023):
@dgibbs64
Erk... I started a PR, but there are a lot of steps in the process I don't have time to complete before my lunch is over. Here's my corrected line 9 in lgsm/functions/fix_vh.sh
export LD_LIBRARY_PATH="$(pwd)/serverfiles/BepInExPack_Valheim/doorstop_libs:$(pwd)/serverfiles/linux64:./linux64:${LD_LIBRARY_PATH}"This gets rid of the warning, but my server isn't starting at the moment so I can't confirm it's a complete fix.
@Zeekin commented on GitHub (Apr 23, 2023):
+1 to this issue, experiencing the exact same thing.
The issue doesn't prevent the server from starting up, however it does mean mod injection is not happening; most mods being client side mean I can mostly get by without a fix, though it does break functionality of a few like epic-loot that would be good to get this working for.
I tried @ghstwhl fix however that just resulted in a different error:
Might have to look into manual install or something
@Ilotoxy commented on GitHub (Jul 6, 2023):
Hi, any update on this? Tried with a fresh install on Ubuntu 22.04. Installing the bepinexvh mod is just currently broken and does not work. I've tried modifying the fix_vh.sh import without success.
@m33ts4k0z commented on GitHub (Jul 12, 2023):
Hello.
This is still an issue. The mod doesn't work at all at the moment.
@dgibbs64 commented on GitHub (Aug 31, 2023):
Reading the docs it appears that the downloads should come from github now. I think this needs to bew reviewed
@natrius commented on GitHub (Sep 24, 2023):
You mean reading https://docs.bepinex.dev/articles/user_guide/installation/index.html?tabs=tabid-nix and downloading the latest *nix from https://github.com/BepInEx/BepInEx/releases directly?
Installed it right now through linuxgsm and run into this error.
@ghstwhl commented on GitHub (Sep 24, 2023):
Unfortunately, Valheim doesn't work out of the box with the github BepInEx package. You need it bundled with unstripped Unity DLLs.
https://valheim.thunderstore.io/package/denikson/BepInExPack_Valheim/
@axe312ger commented on GitHub (Oct 24, 2023):
Also have no luck getting it working on my debian VM. Adjusted the paths in LD_LIBRARY_PATH - it can find the lib now.. but goes crazy on on dlopen and dlsym:
Any ideas? :(
Edit:
Got it working manually on the very same (virtual) machine:
Server runs fine, could add my mods, could connect with my modded client.
Retried it in LGSM environment, but still running into these strange errors from above
@GrubbyZebra commented on GitHub (Oct 27, 2023):
Having the same issue, going to give this a try....
@smietanka commented on GitHub (Nov 1, 2023):
Any update? Unfortunetly I have the same errors.. Can't play with mods because of this. I tried two different VPS machines and on both the same behavior :|
@gOOvER commented on GitHub (Nov 1, 2023):
thats a problem with the libs
@admontminy commented on GitHub (Nov 4, 2023):
I tried this and still am having issues. I unzip the zip file and copy all the contents in BepInExPack_Valheim to /home/steam/Valheim. I edited the paths and start command to match the existing one and still received errrors. Could you post what your directory looks like a well we as your start_server_bepinex.sh script looks like?
@DSDV commented on GitHub (Nov 5, 2023):
i have a fresh install where i encountered the same error.
but i used the
./vhserver mods-installcommand to install valheim plus and assumed i needed bepinex as well?or is it enough to only install valheim plus since it comes with its own bepinex?
@gOOvER commented on GitHub (Nov 5, 2023):
please read this:
Startup must be rewritten ;)
@DSDV commented on GitHub (Nov 5, 2023):
how does one do it?
sorry i am no dev :/
is it ok to just install v+ when you have other mods which require bepinex?
@gOOvER commented on GitHub (Nov 5, 2023):
v+ is dead. Search for the fork
@DSDV commented on GitHub (Nov 5, 2023):
https://www.nexusmods.com/valheim/mods/2323 this one?
Does it work with lgsm and do i need to install beinex seperatly to use it for xportal?
is there a tutorial somewhere how to use it with lgsm? (sorry i am just a user not a dev ^^)
@DSDV commented on GitHub (Nov 5, 2023):
apparently you have to:
If you are using [LGSM](https://linuxgsm.com/), go inside your instance config file and change executable to ./start_server_bepinex.sh to load the mod and your server arguments. More on LGSM config files can be found on [their homepage](https://docs.linuxgsm.com/configuration/linuxgsm-config).but the /lgsm/config-lgsm/vhserver/vhserver.cfg is empty and i have no clue how to put
./start_server_bepinex.shinto there@dgibbs64 commented on GitHub (Nov 7, 2023):
Can someone who has a bit of understanding on this give me some guidance on what we need to do to fix this. I have zero knowledge about VH mods so any help would be welcome.
@DSDV commented on GitHub (Nov 7, 2023):
From what i understand https://github.com/Grantapher/ValheimPlus is the new fork.
With the update from today that broke due to an old BepInEx version.
But the game needs to be started with a modified startscript.
i added this to the lgsm/config-lgsm/vhserver/vhserver.cfg
executable="./start_server_bepinex.sh"that worked yesterday but the lgsm script gave an error that the server pw was not set even tho it was in the script.
(also i did not yet figure out how to change server parameters like listing the server etc).
Sadly today the game update broke sth: https://github.com/Grantapher/ValheimPlus/issues/36
i still trying to figure out if the workaround works on the server side
@chris3081 commented on GitHub (Nov 7, 2023):
I've been meaning to put a pull request in to fix this for the last week and I will try to in the next couple of days (just hadn't had time to test fully) . In the mean time this should fix the issue
look in lgsm/modules for a file called mods-list.sh, if it doesn't exist run ./vhserver mods-install which will copy it down, but ctrl+c out instead of installing valheim-plus
now find the file and edit it replacing the old repo "https://github.com/valheimPlus/ValheimPlus" with "https://github.com/Grantapher/ValheimPlus.git"
mod_info_valheimplus=(MOD "valheimplus" "Valheim PLUS" "${valeimpluslatestlink}" "ValheimPlus.tar.gz" "0" "LowercaseOff" "${systemdir}" "OVERWRITE" "ENGINES" "Valheim;" "NOTGAMES" "https://github.com/valheimPlus/ValheimPlus" "Mod to improve Valheim gameplay")
I've got this far before work, I'l try find some time tonight to test it a bit better. I don't believe there are any other changes required.
@DSDV commented on GitHub (Nov 7, 2023):
no rush (:
sleep/health recovery is more important than a mod fix (:
i got our server running the manual way again (:
today's valheim update requires a bepinex update to the latest version (not currently shipped with V+).
there alternativly ther is a workaorund: https://github.com/Grantapher/ValheimPlus/issues/36#issuecomment-1798683440
maybe its a good idea to wait for V+ to release an updated version?
@chris3081 commented on GitHub (Nov 8, 2023):
Ahh thanks I will add that to the fix_vh.sh file
@chris3081 commented on GitHub (Nov 8, 2023):
Normally I would agree, but given its an open source project with no fixed deadlines, the new version isn't really set in stone. I'm thinking we can fix it today and when we understand what the new release looks like we will know if there are any issues then and we can raise a new issue if required.
@DSDV commented on GitHub (Nov 12, 2023):
https://github.com/Grantapher/ValheimPlus/issues/36#issuecomment-1806933410
An update got released by Grantapher <3
Here is the release: https://github.com/Grantapher/ValheimPlus/releases
It should even include an up to date BeInEx version (:
@Xruptor commented on GitHub (Nov 14, 2023):
You need to update the following line as well, otherwise it will just pull the old repo:
valeimpluslatestlink=$(curl --connect-timeout 10 -sL https://api.github.com/repos/valheimPlus/ValheimPlus/releases/latest | jq -r '.assets[]|select(.browser_download_url | contains("UnixServer.tar.gz")) | .browser_download_url')it should be
@gigafunk commented on GitHub (Nov 19, 2023):
just fyi, val+ got all the attention here but the original issue this was opened for still exists.
this fix did not affect the mods-install of bepinexvh launching, it is still broken in the same way. bepinexvh is the base mod package install for valheim plus, and in affected in the same way, not launching and injecting mods because of this same error that might have just been fixed with val+
valheim plus is a mod pack which was supported first, and bepinexvh is the api framework mod that all mods are made within, and it looks like the the lgsm crew added support for a blank install of this(for custom mod mixes) when Val+ was unmaintained.
anyhow, thanks for everyone that works on this, i feel like an ass posting, but i feel like its an easy thing now while its fresh! its the same fix for val+ i think(minus the url change, bepinexvh installs just fine)
@DSDV commented on GitHub (Nov 19, 2023):
V+ got the fix integrated later since the fix was an updated version of BepInEx ;)
Or to say it the other way around the BepInEX update enabled a fixed version of V+
Also V+ (original) is deprecated and only a fork is updated since than (:
if you need a fix just copy paste & replace your server files with the latest bepinex version (:
@gigafunk commented on GitHub (Nov 19, 2023):
The bepinex for v+ was fixed, but the non v+ bepinex install did not get the bepinex fix that the v+ install just got. I am just calling attention to the fact there is another fix needed for the NON V+ bepinexvh installed with ./vhserver mods-install bepinexvh.
The version of bepinex installed with mods-install bepinexvh is current and works, its just the vhserver start does not start bepinex correctly, it fails in the way this original issue was opened for. When i move the files into the right places, i am able to start manually with the lgsm bepinexvh provided script (start_bepinex_server.sh or something).
@chris3081 commented on GitHub (Nov 20, 2023):
No worries, I shall have a look into that over the next few days unless someone beats me to it.
@carlosgvaso commented on GitHub (Feb 7, 2024):
@chris3081, was this issue resolved? I can still see the error "ERROR: ld.so: object 'libdoorstop_x64.so' from LD_PRELOAD cannot be preloaded" when using the bepinexvh mod version. The server starts, but none of the mods for BepInEx are working.
@carlosgvaso commented on GitHub (Feb 7, 2024):
@gigafunk , I'm running into the same issue. What files do I need to move to the right places? Could you explain what you did to get it running? Thanks in advance!
@DSDV commented on GitHub (Feb 7, 2024):
V+ got updates
https://github.com/Grantapher/ValheimPlus/releases
maybe some update broke compatibility
@gigafunk commented on GitHub (Feb 7, 2024):
apologies, but i forget, i was running without lgsm and moved to it, so I had a known good filesystem to copy the structure of. Now its on pause until the new land update.
i think what happens is the lgsm contributors update bepinex on the val+ version, and close the ticket and everyone thinks its done , until people with the custom mod version make new tickets and someone gets time to circle back and affect the change in the custom mod version. The amazing contributors dont know all the games they fix the lgsm for and they dont know bepinex needs to be updated in two places for valheim, due to the val+ support and generic mod support options.
@joshschools commented on GitHub (Apr 28, 2024):
Does anyone have the fix for this even if it is manual? @gigafunk
@VisMotrix commented on GitHub (May 27, 2024):
Hi, quick update if some ppl have the same issue again (at least I did have problems)
1.1 Go to https://github.com/BepInEx/BepInEx - releases - downland newest BepInEx_linux_x64_XXX.zip
1.2 Replace /home/gameuser/gameserver/serverfiles/BepInExPack_Valheim/doorstop_libs/libdoorstop_x64.so - with the downloaded libdoorstop.so (name it back to libdoorstop_x64.so!)
2 Fix the fix_vh.sh
2.1 Navigate to /home/gameuser/gameserver/lgsm/modules/fix_vh.sh
2.2 replace line 9
with
[opt Restart your server]
Hope this works for you
@Melidane commented on GitHub (Jun 1, 2024):
VisMotrix your fix resolve a previous error that give me a segmentation fault but and prevent the server to starting, but the first error "ERROR: ld.so: object [..]" still and my server loading without mods (but with BepInEx enable it seem).
@mikencyber commented on GitHub (Dec 16, 2024):
Is there any fix for this in standalone BepInEx? Tried setting up a fresh LGSM Valheim server, initially installed bepinex via ./vhserver mods-install and got a bunch of "ERROR: ld.so: object 'libdoorstop_x64.so' from LD_PRELOAD cannot be preloaded"
Fixes shared by @VisMotrix unfortunately didn't work in my case, ended up doubling the errors received
@seriosbrad commented on GitHub (Feb 13, 2025):
Did you make any progress fixing this? Same issues as you .
@Kovakin commented on GitHub (Mar 7, 2025):
On attempting this fix for the Valheim client, modifying it somewhat to update the r2modman profiles with the manually updated BepInEx version, I continue to crash with no error reported in the console, but I do get these .blob files to generate.
There are three listed here in this directory.
https://gofile.io/d/hitVAO
@smietanka commented on GitHub (Mar 7, 2025):
@seriosbrad @Kovakin @mikencyber
This repo is dead.. guys..
https://www.nexusmods.com/valheim/mods/2323
https://github.com/Grantapher/ValheimPlus/tree/main
There is a fork from grantapher, where everything works perfectly
@triuk commented on GitHub (Sep 16, 2025):
LGSM mod handling is unreliable. A more effective method for setting up and maintaining a Valheim server with mods (as of September 2025) is available here: https://github.com/triuk/Valheim-Mod-Manager/tree/main