Home Gaming How to set up a Valheim dedicated server on the Raspberry Pi

How to set up a Valheim dedicated server on the Raspberry Pi

by Tony G
Published: Last Updated on
valheim server on your raspberry pi

You may also like

10 comments

Griffon April 29, 2022 - 6:46 pm

Breaks at step 4.
E: Failed to fetch http://us-sanjose-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://us-sanjose-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal-updates/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://us-sanjose-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal-backports/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.

Reply
Griffon April 29, 2022 - 6:49 pm

Ign:36 http://us-sanjose-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports focal-backports/universe i386 Packages
Fetched 343 kB in 3s (109 kB/s)
Reading package lists… Done
E: Failed to fetch http://us-sanjose-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://us-sanjose-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal-updates/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Failed to fetch http://us-sanjose-1-ad-1.clouds.ports.ubuntu.com/ubuntu-ports/dists/focal-backports/main/binary-i386/Packages 404 Not Found [IP: 185.125.190.36 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
ubuntu@Foundry:~$ sudo apt install gcc-arm-linux-gnueabihf libc6:armhf libncurses5:armhf libstdc++6:armhf
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libc6:armhf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libdb1-compat libcrypt1

Package libstdc++6:armhf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package ‘libc6:armhf’ has no installation candidate
E: Unable to locate package libncurses5:armhf
E: Package ‘libstdc++6:armhf’ has no installation candidate

Reply
Josef May 25, 2022 - 8:07 am

Cannot start the server because of this: start_server.sh: line 11: ./valheim_server.x86_64: cannot execute binary file: Exec format error
i installed everything like you said

Reply
Josef May 25, 2022 - 8:25 am

I fixed it but now i get the segmentation fault error

Reply
Vaako July 20, 2022 - 2:41 pm

how did you fix the error?

Reply
Jose July 19, 2022 - 9:48 am

Had a problem at step 7 of “Install Box86”:

/usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: CMakeFiles/box86.dir/src/libtools/threads.c.o: in function `my__pthread_cleanup_push_defer’:
/home/jj/docker/valheim-pi/box86/src/libtools/threads.c:631: undefined reference to `_pthread_cleanup_push_defer’
/usr/lib/gcc-cross/arm-linux-gnueabihf/11/../../../../arm-linux-gnueabihf/bin/ld: CMakeFiles/box86.dir/src/libtools/threads.c.o: in function `my__pthread_cleanup_pop_restore’:
/home/jj/docker/valheim-pi/box86/src/libtools/threads.c:641: undefined reference to `_pthread_cleanup_pop_restore’
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/box86.dir/build.make:3195: box86] Error 1
make[1]: *** [CMakeFiles/Makefile2:312: CMakeFiles/box86.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Anybody had this error?

Reply
Krerion August 19, 2022 - 6:39 am

How you fix cannot execute binary file: Exec format error ?

Reply
Jan October 30, 2022 - 8:04 am

Hi you have to delete and reinstall box64
cd box64

delete the build folder

mkdir build
cd build
cmake .. -DRPI4ARM64=1 -DCMAKE_BUILD_TYPE=RelWithDebInfo

and after that.

make -j4
sudo make install

lib.so.2 get lost sometimes then you make an update.

Reply
Jan October 30, 2022 - 8:45 am

i mean x86 😉

Reply
Andreas January 5, 2023 - 7:16 am

Got everything working, but on starting up the server several errors occur. Maybe the most are not significant. But at the end the server stops with an Segmentation fault.

At the start:
Error: Symbol pa_stream_connect_playback not found, cannot apply R_X86_64_JUMP_SLOT @0x7fa3fea880 (0x9726d6) in /home/evilscytheman/valheim_server/valheim_server_Data/Plugins/libpa

This shouldn’t even be an issue, because it is started with “-nographics”
ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)

Probably also not important:
Couldn’t create a Convex Mesh from source mesh “default” within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.

Then several of these occur:
MethodAccessException: Method `System.Collections.HashHelpers.GetPrime(int)’ is inaccessible from method `System.Collections.Generic.HashSet`1[UnityEngine.UI.MaskableGraphic].Initialize(int)’

Then several “background job” “syscall errors” at the box64:
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

Then a SIGSEGV
Got a SIGSEGV while executing native code. This usually indicates a fatal error in the mono runtime or one of the native libraries used by your application.

Then it cannot load some libs
Error loading needed lib libSDL2-2.0.so.0

Then it cannot place some special locations, like:
Failed to place all TarPit2, placed 21 out of 100

After it is done with generating locations, it sais that some Shaders and Imageeffects are not supported – again, this is a nographics server?!

But then it sais:
01/05/2023 12:57:26: Game – OnApplicationQuit
01/05/2023 12:57:26: Shuting down
01/05/2023 12:57:26: ZNet Shutdown
01/05/2023 12:57:26: clone 37

After that it will make an autobackup. After this is done:
01/05/2023 12:57:27: Sending disconnect msg
01/05/2023 12:57:27: Disposing socket
01/05/2023 12:57:27: Stopping listening socket
01/05/2023 12:57:27: Last socket, unregistering callback
01/05/2023 12:57:27: ZSteamSocket UnregisterGlobalCallbacks, existing sockets:0
Thread 0x7f4540e000 may have been prematurely finalized
Setting up 2 worker threads for Enlighten.
Thread -> id: 7efa7fc000 -> priority: 1
Thread -> id: 7ef9cfb000 -> priority: 1
01/05/2023 12:57:39: ZNet OnDestroy
01/05/2023 12:57:39: Net scene destroyed
01/05/2023 12:57:39: Steam manager on destroy

Then it ends with a SIGSEGV with several HEX numbers and:
./start_server.sh: line 11: 1021 Segmentation fault ./valheim_server.x86_64 -nographics -batchmode -public 0 -name “Servername” -port 2456 -world “Testworld” -password “secret” -savedir “/home/pi/valheim_data”

So what is the problem? Can someone help? Thanks in advance!

Reply

Leave a Reply to Krerion Cancel Reply

* By using this form you agree with the storage and handling of your data by this website.