News:

SMF - Just Installed!

Main Menu

Ubuntu server lts 22.04 setting up valheim server

Started by mahesh, Aug 31, 2023, 08:01 AM

Previous topic - Next topic

mahesh

Hi, not sure if this is exactly the right place.

I am very new to ubuntu so the whole architecture seems very foreign to me but i am slowly learning and adjusting.

The issue i am having currently is i can't get my Valheim server to work through systemd. the server is currently running fine i have friend playing on it but i can't do anything through the terminal and i currently have to remote SSH in to do anything.

This is my systemd file.

     Code:
[Unit]
Description=Valheim service
Wants=network.target
After=syslog.target network-online.target


[Service]
Type=simple
Restart=on-failure
RestartSec=10
User=adam
WorkingDirectory= /home/adam/Valheim
ExecStart= /home/adam/valheim/start_valheim.sh


[Install]
WantedBy=multi-user.target

This is what jounal logs is outputting

    Code:
May 21 17:13:43 homeserver systemd[1]: Started Valheim service.
May 21 17:13:43 homeserver systemd[50202]: valheim.service: Failed to locate executable /home/adam/Valheim/start_valheim.sh: No such file or directory
May 21 17:13:43 homeserver systemd[50202]: valheim.service: Failed at step EXEC spawning /home/adam/Valheim/start_valheim.sh: No such file or directory
May 21 17:13:43 homeserver systemd[1]: valheim.service: Main process exited, code=exited, status=203/EXEC
May 21 17:13:43 homeserver systemd[1]: valheim.service: Failed with result 'exit-code'.
May 21 17:13:53 homeserver systemd[1]: valheim.service: Scheduled restart job, restart counter is at 11.
May 21 17:13:53 homeserver systemd[1]: Stopped Valheim service.
May 21 17:13:53 homeserver systemd[1]: Started Valheim service.
May 21 17:13:53 homeserver systemd[50410]: valheim.service: Failed to locate executable /home/adam/Valheim/start_valheim.sh: No such file or directory
May 21 17:13:53 homeserver systemd[50410]: valheim.service: Failed at step EXEC spawning /home/adam/Valheim/start_valheim.sh: No such file or directory
May 21 17:13:53 homeserver systemd[1]: valheim.service: Main process exited, code=exited, status=203/EXEC
May 21 17:13:53 homeserver systemd[1]: valheim.service: Failed with result 'exit-code'.
May 21 17:14:03 homeserver systemd[1]: valheim.service: Scheduled restart job, restart counter is at 12.
May 21 17:14:03 homeserver systemd[1]: Stopped Valheim service.

No such file or directory.
Please help!