arkmanager / ark-server-tools

Set of server tools used to manage ARK: Survival Evolved servers on Linux
MIT License
680 stars 144 forks source link

Permission errors, tried fresh, stuck after a few commands #718

Open fredrikscode opened 7 years ago

fredrikscode commented 7 years ago

I'm using ubuntu server. I received permission errors whenever I ran "arkmanager start/stop" so I removed /etc/arkmanager and /var/logs/arktools (also removed the folders in /home/) and thought it was a new beginning. I start out as root running the following command (from https://developer.valvesoftware.com/wiki/SteamCMD#Linux):

useradd -m steam

I already have "lib32gcc1" so I continue with:

su - steam

Creating the directory and entering it as mentioned in the steamcmd guide:

mkdir ~/Steam && cd ~/Steam

Downloading and extracting:

curl -sqL 'https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz' | tar zxvf -

Since I'm already in "~/Steam" I run:

./steamcmd.sh

And receive the following output:

Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[  0%] Checking for available update...
[  0%] Downloading update (0 of 10,173 KB)...
[  0%] Downloading update (3,770 of 10,173 KB)...
[ 37%] Downloading update (5,909 of 10,173 KB)...
[ 58%] Downloading update (8,027 of 10,173 KB)...
[ 78%] Downloading update (10,148 of 10,173 KB)...
[ 99%] Downloading update (10,173 of 10,173 KB)...
[100%] Download Complete.
[----] Applying update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching...
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Downloading update (0 of 7,058 KB)...
[  0%] Downloading update (2,054 of 7,058 KB)...
[ 29%] Downloading update (3,527 of 7,058 KB)...
[ 49%] Downloading update (4,799 of 7,058 KB)...
[ 67%] Downloading update (6,195 of 7,058 KB)...
[ 87%] Downloading update (7,058 of 7,058 KB)...
[100%] Download complete.
[----] Installing update...
[----] Extracting package...
[----] Extracting package...
[----] Extracting package...
[----] Installing update...
[----] Installing update...
[----] Installing update...
[----] Cleaning up...
[----] Update complete, launching Steamcmd...
Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
[  0%] Checking for available updates...
[----] Verifying installation...
Steam Console Client (c) Valve Corporation
-- type 'quit' to exit --
Loading Steam API...Created shared memory when not owner SteamController_Shared_mem
OK.

Now I run:

steam>login anonymous

And receive the following output:

Connecting anonymously to Steam Public...Logged in OK
Waiting for license info...OK

Yeah looks good so I exit:

exit

and then I run your command

curl -sL http://git.io/vtf5N | sudo bash -s steam

It then wants me to login to the user "steam" which I have no password set for. I would really appreciate anyone's assistance getting this to work, it's the best script out there!

klightspeed commented 7 years ago

and then I run your command

curl -sL http://git.io/vtf5N | sudo bash -s steam

It then wants me to login to the user "steam" which I have no password set for

One option would be to allow the steam user to run commands using sudo without requiring a password:

The other option would be to run the install command and any later upgrade commands as root, which will not require sudo

A third option would be to perform a user-install of arkmanager, which does not require root privileges:

curl -sL http://git.io/vtf5N | bash -s -- --me
fredrikscode commented 7 years ago

Thank you for such a quick reply! I added "steam" to sudoers like you said and then ran "arkmanager install" and ran into errors about steamcmd not found.

I then understood that it matters which folder you're in when you run the "arkmanager install" command. Nothing about that in the guide :P

I now manage to run the server without any issues because I went out of the steam folder and ran the install command in /home/. No problems now. Damn :P