Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Not Starting - Check this first #151

Open
Nimdy opened this issue Mar 9, 2021 · 2 comments
Open

Server Not Starting - Check this first #151

Nimdy opened this issue Mar 9, 2021 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@Nimdy
Copy link
Owner

Nimdy commented Mar 9, 2021

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

@Nimdy Nimdy added the documentation Improvements or additions to documentation label Mar 9, 2021
@Nimdy
Copy link
Owner Author

Nimdy commented Mar 25, 2021

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

@Nimdy
Copy link
Owner Author

Nimdy commented Mar 25, 2021

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/

image

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/

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant