Dedicated_Valheim_Server_Script
Dedicated_Valheim_Server_Script copied to clipboard
Server Not Starting - Check this first
If you server is not starting check the following this.
/home/steam/valheimserver
cat /home/steam/valheimserver/start_valheim.sh
If your configuration file is jacked up, then you can fix it with:
vi /home/steam/valheimserver/start_valheim.sh
or
nano /home/steam/valheimserver/start_valheim.sh
Will not work: ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AwesomeServer -password awesomeserver -public 1 ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AwesomeServer -password 1234 -public 1 ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AwesomeServer -password 123 -public 1 ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AwesomeServer -password 12 -public 1 ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AwesomeServer -password 1 -public 1 ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AwesomeServer -password 1 -public 1 ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AwesomeServer -password (NO FREAKING PASSWORD!!!!) -public 1
Will work ./valheim_server.x86_64 -name "My Awesome Server" -port 2456 -nographics -batchmode -world AweWorldServer -password SuperDuperPass12 -public 1
Check your resources for your VM:
You must have 2CPUs and 4GB RAM (you might get it to work with less but it will not last very long)
Check our other troubleshooting steps:
https://github.com/Nimdy/Dedicated_Valheim_Server_Script/wiki/Top-10-Reason-your-Server-is-not-working-and-how-to-fix
Check your logs for errors:
cat /var/log/syslog* | grep error
Look for items such as: Password too short Unable to locate file Permission denied on file
Check your logs in general:
cat /var/log/syslog* | grep Info
Check your permissions within the folder structure. Some times root is the owner and you really need steam as the owner. (I have extra files because I test Valheim+ and BepInEx)
Below are examples of correct settings for a baseline install
ls -lisa /home/steam/valheimserver/
Check the permissions on your world data files:
If you files and folders do not have steam as the owner, you will have issues because your world data will not be saving correctly. If you reboot your server, you will lose everything. Validate your permissions. :)
ls -lisa /home/steam/.config/unity3d/IronGate/Valheim/worlds/