Site icon BDWEBIT Blog

How to Update a Valheim Dedicated Server on Linux: A Step-by-Step Guide

How to Update Valheim Dedicated Server Linux

How to update a Valheim dedicated server on Linux?  Valheim, the popular Viking-themed survival game, has taken the gaming community by storm. For those hosting their own dedicated servers on Linux, keeping the server up to date is crucial for ensuring compatibility with the latest game features, bug fixes, and security patches. This guide will walk you through the steps required to update your Valheim dedicated server on a Linux system, ensuring a smooth gaming experience for you and your fellow Vikings.

1. Preparing Your Server for Update

Before diving into the update process, it’s essential to take some preparatory steps to avoid potential issues.

a. Backup Your Server Data

Copy code
~/.config/unity3d/IronGate/Valheim

b. Notify Players

2. Stop the Valheim Server

Copy code
sudo systemctl stop valheimserver.service
perl   Copy code
ps aux | grep valheim
kill <PID>

3. Updating SteamCMD

SteamCMD is the tool used to download and update Valheim on your Linux server. To ensure a smooth update, first, update SteamCMD itself.

a. Navigate to Your SteamCMD Directory

bash   Copy code
cd ~/steamcmd

b. Update SteamCMD

bash   Copy code
./steamcmd.sh

4. Updating the Valheim Server

Now that SteamCMD is updated, you can proceed with updating your Valheim dedicated server.

a. Log in to SteamCMD

Copy code
login anonymous

b. Set the Installation Directory

arduino   Copy code
force_install_dir /home/user/valheim

c. Update the Valheim Server

Copy code
app_update 896660 validate

5. Start the Valheim Server

With the update complete, it’s time to start your Valheim server again.

a. Start the Server Using systemd

SQL   Copy code
sudo systemctl start valheimserver.service
lua   Copy code
sudo systemctl status valheimserver.service

b. Manual Start

bash   Copy code
cd /home/user/valheim
./start_server.sh

6. Verifying the Update

It’s essential to verify that your server is running the latest version to ensure compatibility with the updated game client.

a. Check the Server Log

bash   Copy code
tail -f /home/user/valheim/valheimserver.log

b. Test the Server

Connect to your Valheim server using the game client to ensure everything is working correctly. Make sure all players can connect without issues and that no errors are present.

7. Inform Your Players

8. Troubleshooting Common Issues

Even with the best preparation, issues can sometimes arise. Here are some common problems & their solutions:

a. Server Not Starting After Update

b. Players Unable to Connect

c. Rollback to Previous Version

PHP   Copy code
app_update 896660 -beta <version> validate

Conclusion

Updating your Valheim dedicated server on Linux is a straightforward process, but it requires careful attention to detail to avoid disrupting your server’s operation. By following this guide, you can ensure that your server remains up to date, providing a seamless and enjoyable experience for all players. Remember to back up your data regularly, keep your software up to date, and stay informed about the latest changes in Valheim to maintain a thriving Viking world.

Exit mobile version