Linuxgsm: syntax error: operand expected (error token is "-")

Created on 30 Jun 2016  路  19Comments  路  Source: GameServerManagers/LinuxGSM

Hi, if i restart my Server i get this error:

[ .... ] Stopping ark-server: Arc
[ .... ] Stopping ark-server: Arc
[ .... ] Stopping ark-server: Process still bound. Awaiting graceful exit: 0
[ .... ] Stopping ark-server: Process still bound. Awaiting graceful exit: 1
[ .... ] Stopping ark-server: Process still bound. Awaiting graceful exit: 2/home/steam/lgsm/functions/command_stop.sh: line 183: let: -: syntax error: operand expected (error token is "-")
/home/steam/lgsm/functions/command_stop.sh: line 185: [[: -: syntax error: operand expected (error token is "-")


[  OK  ] Stopping ark-server: Arc

[ .... ] Log Manager ark-server: Starting
[  OK  ] Log Manager ark-server: Starting

[ INFO ] Log Manager ark-server: Removing logs older than 7 days

[  OK  ] Log Manager ark-server: Removed 2 log files

[ .... ] Starting ark-server: Arc
[  OK  ] Starting ark-server: Arc
bug

Most helpful comment

The good news is that the issue is benign. The message does not effect the restart behavior.

Pull request #909 will solve the issue and squash the error in the event the process id vanishes when queried (which is a GOOD thing).

All 19 comments

Thanks for the head's up. Checking.

The good news is that the issue is benign. The message does not effect the restart behavior.

Pull request #909 will solve the issue and squash the error in the event the process id vanishes when queried (which is a GOOD thing).

Closed with #909 integration.

run
./arkserver uf
to get the update ;)

@UltimateByte thanks, i have already added the updated part manually

Hi, Please note this issue is still happening as the command_stop.sh hasnt been updated with pid=${pid//[!0-9]/}

@kbgvirus
What ?
Is this not enough ?
https://github.com/GameServerManagers/LinuxGSM/pull/909/files

./arkserver uf is required to get the update.

@UltimateByte i have added the line to the script and now getting another error, i will comment the error as i receive it.

Don't do that, run the update-functiions command as asked. Since it's another error, and this one is probably solved, i'm re-closing this.
I dont know if you're trolling or what, but this issue is solved.

@UltimateByte I am not trolling, if you read my first comment that new line had not been added to the stop script and therefore the error was still there

Well if you read the commit 909, you can see that the line has been added to command_stop.sh.
So that's why i don't get why you're still saying that.
Once again : https://github.com/GameServerManagers/LinuxGSM/pull/909/files

Edit : Been merged to Development branche, that's why you're saying that. lol.

Awaiting for merge to master then.

Thank you, there is no reason to troll a good cause

Sorry about my lack of trust, i don't know you & i assumed it had been merged to master directly.
Well, let's put it to under dev until merge.
And yeah, you can definitely add this manually until the merge then.

Thank You

@cedarlug I dont know why but im not sure this went in correctly. Please can you check the master repo and fix if missing. Thank you

@kbgvirus - please update functions and verify that commit https://github.com/GameServerManagers/LinuxGSM/commit/b8c82acbe8f2aa99cfd669b54d8c3ec274aedea3 cleans up the issue.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

UltimateByte picture UltimateByte  路  4Comments

pavelhoral picture pavelhoral  路  3Comments

KuJoe picture KuJoe  路  3Comments

Bourne-ID picture Bourne-ID  路  3Comments

MicLieg picture MicLieg  路  3Comments