Closed discept closed 3 years ago
That suggests that numPlayersConnected
is printing 0
twice - like:
$ echo $(( $(printf '0\n0') + 0 ))
bash: 0
0 + 0 : syntax error in expression (error token is "0 + 0 ")
Could you please try the following:
bash
. /usr/local/bin/arkmanager
useConfig main
numPlayersConnected
echo $(( $(numPlayersConnected) + 0 ))
From your symptoms, that should look like:
ark@cl-ts01:~$ bash
ark@cl-ts01:~$ . /usr/local/bin/arkmanager
ark@cl-ts01:~$ useConfig main
ark@cl-ts01:~$ numPlayersConnected
0
0ark@cl-ts01:~$ echo $(( $(numPlayersConnected) + 0 ))
bash: 0
0 + 0 : syntax error in expression (error token is "0 + 0 ")
ark@cl-ts01:~$
I'm guessing you set your server up for crossplay or epic? There was a bug in numPlayersConnected
when crossplay or epiconly were enabled. This should be fixed by 5cda461
You guessed correctly - its configured for crossplay with epic. Thanks for the fast answer and the fix. I skipped the first steps you described and tested the new version of the arkmanager script immediately. Everything worked fine now so I left you a small gift in hope youll keep up the good work as long as possbile.
Stay healthy and best regards.
Greetings,
I am experiencing some problems updating arkmanager by using --ifempty and/or --warn parameter. OS: Ubuntu 18.04.5 LTS arkstTag='v1.6.56'
Crontab entry:
*/30 * * * * /usr/local/bin/arkmanager update --warn --saveworld --backup --update-mods @scourgedearth
Output Crontab:
It continues til shutdown:
After that the update installed successfully.
The issue ist reproducable executing the command manually, but it only occurs if there are updates to install. I can trigger it by executing stop command with --warn parameter as well.
I already examined the "binary" /usr/local/bin/arkmanager. It seems like every time it checks the amount of online players theres a problem adding 0 to the numplayers variable, so happening while using --ifempty variable:![arkmanager_error_2112](https://user-images.githubusercontent.com/74410038/99071062-b6213200-25b1-11eb-81f7-1622948a938e.jpg)
Thanks in advance