Jump to content

Hey, I'm working on unturned server on ubuntu 18.04 and I wanted to make my server starting automatically after reboot but I have a problem. When I tried make service's script I get error and I have no idea how to fix it. I have idea, maybe directory is the problem but I don't know. Here my logs.

 

 

 

 

PS. When I tried run /home/steam/Steam/unturned/ServerHelper.sh -ThreadedConsole +InternetServer/sandyrp - it says "
cp: cannot stat 'linux64/steamclient.so': No such file or directory
/home/steam/Steam/unturned/ServerHelper.sh: line 34: ./Unturned_Headless.x86_64: No such file or directory
" but i know there it is

 

 

obraz_2021-06-05_125928.png

Link to comment
https://linustechtips.com/topic/1344834-systemd-service-error/
Share on other sites

Link to post
Share on other sites

Looking at it I would guess you made a typo and missed a . from the steam directory. On Linux the steam folder is normally ~/.steam (~ just means from the current users home dir).

 

What happens if you do ...

 

cd /home/steam/Steam/unturned/

 

... Does it sucessfully switch directory?

 

Edit: Actually does the system have a user called steam?

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
https://linustechtips.com/topic/1344834-systemd-service-error/#findComment-14784417
Share on other sites

Link to post
Share on other sites

Systemd is simply telling you that the service exited with an error. So that screenshot isn't really helpful. You need to look at the logs or output of the script you're trying to start.

 

The other message

cp: cannot stat 'linux64/steamclient.so': No such file or directory

seems to be the real issue here. This is a relative directory, so whichever directory you're in right now, it expects the "linux64/steamclient.so" file to be located relative to that, which it probably isn't.

Remember to either quote or @mention others, so they are notified of your reply

Link to comment
https://linustechtips.com/topic/1344834-systemd-service-error/#findComment-14784419
Share on other sites

Link to post
Share on other sites

1 minute ago, Eigenvektor said:

Systemd is simply telling you that the service exited with an error. So that screenshot isn't really helpful. You need to look at the logs or output of the script you're trying to start.

 

The other message


cp: cannot stat 'linux64/steamclient.so': No such file or directory

seems to be the real issue here. This is a relative directory, so whichever directory you're in right now, it expects the "linux64/steamclient.so" file to be located relative to that, which it probably isn't.

I guess whatever unturned is, its expecting a copy of the client binary to be in its folder at run time.

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
https://linustechtips.com/topic/1344834-systemd-service-error/#findComment-14784425
Share on other sites

Link to post
Share on other sites

So Unturned is just a game dedicated server. In that case you're WAAAAAY overcomplicating this.

 

There are 3 easier ways to do it, fist write a really simple shell script with the launch arguments then either

 

1) Create a crontab entry to either run the script at boot or run it every minute

2) Place the script in the /etc folder and it will run at every boot

3) Edit the rc file (note I don't recommend this method)

 

You can automate everything with Pufferpanel or Pterodactyl Panel, they're open source server control panels you can host yourself with a nice web based GUI to install, update & control game servers. Both are available to manually host (using LAMP or LEMP) or both have (unofficial) docker images.

Main Rig:-

Ryzen 7 3800X | Asus ROG Strix X570-F Gaming | 16GB Team Group Dark Pro 3600Mhz | Corsair MP600 1TB PCIe Gen 4 | Sapphire 5700 XT Pulse | Corsair H115i Platinum | WD Black 1TB | WD Green 4TB | EVGA SuperNOVA G3 650W | Asus TUF GT501 | Samsung C27HG70 1440p 144hz HDR FreeSync 2 | Ubuntu 20.04.2 LTS |

 

Server:-

Intel NUC running Server 2019 + Synology DSM218+ with 2 x 4TB Toshiba NAS Ready HDDs (RAID0)

Link to comment
https://linustechtips.com/topic/1344834-systemd-service-error/#findComment-14784440
Share on other sites

Link to post
Share on other sites

1 hour ago, Master Disaster said:

So Unturned is just a game dedicated server. In that case you're WAAAAAY overcomplicating this.

 

There are 3 easier ways to do it, fist write a really simple shell script with the launch arguments then either

 

1) Create a crontab entry to either run the script at boot or run it every minute

2) Place the script in the /etc folder and it will run at every boot

3) Edit the rc file (note I don't recommend this method)

 

You can automate everything with Pufferpanel or Pterodactyl Panel, they're open source server control panels you can host yourself with a nice web based GUI to install, update & control game servers. Both are available to manually host (using LAMP or LEMP) or both have (unofficial) docker images.

so I can modify crontab to run my script, but path isn't still relative?

Link to comment
https://linustechtips.com/topic/1344834-systemd-service-error/#findComment-14784539
Share on other sites

Link to post
Share on other sites

1 hour ago, cezarsky said:

so I can modify crontab to run my script, but path isn't still relative?

The path will be relative to the current working Directory regardless of how you call it. The script needs to either have the full path or you need to set the Current Working Directory in the script or whatever is launching it.

Link to comment
https://linustechtips.com/topic/1344834-systemd-service-error/#findComment-14784695
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×