arkmanager / ark-server-tools

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

Cluster Up- and Download not working #1196

Closed lhalb closed 3 years ago

lhalb commented 3 years ago

I set up a server cluster of two instances under Ubuntu 20.04. I have set all the ports and can access both servers individually. Ingame I see the Travel to another Server Button and I also see the respective other server (tested on both instances).

I can upload a tamed creature, but there is no chance to upload a survivor, which indicates, the directory of the cluster is not writeable.

The structure of my instances looks like this (everything is installed under the user "ark" and all servers run with this user):

/home/ark/ARK --> directory of instance "TI" /home/ark/SE --> directory of instance "SE" /home/ark/ARK-Cluster --> directory where the Cluster data should be stored

I use a global arkmanager.cfg which looks like this:

# Cluster Settings
arkopt_clusterid=${ClusterID}
arkflag_NoTransferFromFiltering=True
arkopt_ClusterDirOverride=/home/ark/ARK-Cluster

# configfiles for seperate instances
configfile_TI="/etc/arkmanager/instances/TI.cfg"
configfile_SE="/etc/arkmanager/instances/SE.cfg"

So I created an config-file under instances for The Island, that looks like this:

arkserverroot="/home/ark/ARK"
serverMap="TheIsland"

# Cluster Settings
arkopt_clusterid=${ClusterID}

And respectively an config file for Scorched Earth, that looks like this

arkserverroot="/home/ark/SE"
serverMap="ScorchedEarth_P"

# Cluster Settings
arkopt_clusterid=${ClusterID}

I ran ls -l on the /home/ark/ folder, which gave the following Output

drwxrwxr-x  8 ark ark 4096 Jul 29 07:40 ARK
drwxrwxr-x  4 ark ark 4096 Jul 29 07:26 ARK-Cluster
drwxrwxr-x  7 ark ark 4096 Jul 29 07:40 SE

So i assume, that the user ark should have permissions to write to ARK-Cluster

What am I missing here?

CaspyBXL commented 3 years ago

Hello,

Just to help you out

Could you try to write the configs as well in TI.cfg and SE.cfg above the clusterid as follows :

Cluster Settings

arkopt_ClusterDirOverride="/home/ark/ARK-Cluster" arkopt_clusterid=${ClusterID}

I think in some cases the quotes matter.

As far as permissions go the folder need to be owned by the same user that launches your arkmanager start commands. (to be sure I have always in the past set mine to 0775)

Here is an example of my latest testing setup where I test mods I develop

drwxr-xr-x caspybxl caspybxl Jul 30 07:50 GENESIS drwxrwxr-x caspybxl caspybxl Jul 30 07:10 GENESIS2 drwxrwxr-x caspybxl caspybxl Jul 28 17:46 EXTINCTION drwxrwxr-x caspybxl caspybxl Jul 30 12:25 ARK-BACKUPS drwxrwxr-x caspybxl caspybxl Jul 30 00:05 ARK-STAGING drwxr-xr-x caspybxl caspybxl Jul 30 21:45 STEAMCMD drwxr-xr-x caspybxl caspybxl Jul 30 21:45 CACHE drwxrwxr-x caspybxl caspybxl Jul 18 23:54 CLUSTERSHARE

Also quick tip :

Also I made sure to include this in my GameUserSettings.ini to make sure all was allowed as cluster action !

PreventDownloadSurvivors=False PreventDownloadItems=False PreventDownloadDinos=False PreventUploadSurvivors=False PreventUploadItems=False PreventUploadDinos=False TributeItemExpirationSeconds=3144960 TributeDinoExpirationSeconds=3144960 TributeCharacterExpirationSeconds=3144960

lhalb commented 3 years ago

Thank you so much. The dashes did the trick. I still don't know, why some arkopts need dashes and others don't, but at least it works now.

CaspyBXL commented 3 years ago

Glad to have been helpful to you ! Have fun !