LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

csgoserver: Path Errors

Open DreamDemon opened this issue 12 years ago • 7 comments

On following your cron jobs, they fire off but do not work. The problem is within the path variable.

cgaclan@ubuntu14lts-node0:/srv/steam$ /srv/steam/csgoserver start [ .... ] Starting csgo-server: --CGA--War3 CS:GO Test Server/srv/steam/csgoserver: line 616: /rv/steam/csgoserver.lock: No such file or directory [ OK ] Starting csgo-server: --CGA--War3 CS:GO Test Server

As you can see, the pathing gets chopped. The lockfile also doesn't get created if using the command from cron.

DreamDemon avatar Jul 26 '14 19:07 DreamDemon

As an additional note, this behavior can be seen both on Ubuntu x86_64 & CentOS 7.x x86_64. For specifics on CentOS, I followed the directions to the letter. http://danielgibbs.co.uk/scripts/csgoserver/#Automation

Direct Example: [csgoserver@192-168-0-146 ~]$ /home/csgoserver/csgoserver monitor [ INFO ] Monitoring csgo-server: No lock file found: Monitor disabled [csgoserver@192-168-0-146 ~]$ ./csgoserver monitor [ OK ] Monitoring csgo-server: Checking session: OK [ OK ] Monitoring csgo-server: Querying port: 192.168.0.146:27015: OK [csgoserver@192-168-0-146 ~]$

DreamDemon avatar Jul 27 '14 02:07 DreamDemon

Seems really odd. All the script foes is create a file when you run ./csgoserver start and remove it when you run ./csgoserver stop. If this file is not present monitor will not run. Its really basic. My guess is that for some reason the lockfile is not being created when the server is started.

dgibbs64 avatar Jul 27 '14 08:07 dgibbs64

The lockfile gets created when run within the directory ( ./csgoserver) but when you do a full path it doesn't ( /srv/steam/csgserver). I suspect it has something to do with the way the variable is set for the directory information.

DreamDemon avatar Jul 27 '14 14:07 DreamDemon

Thanks for the info. I will check this out

dgibbs64 avatar Jul 27 '14 14:07 dgibbs64

I have a fix for this issue and will be in the next release. Thanks for reporting this :D

dgibbs64 avatar Aug 01 '14 21:08 dgibbs64

I have additional information that may help you. After your close of this I still saw the pathing problem where it wouldnt work with cron ( ubuntu 14 x86_64). I got a request from an admin to install another server which I did under CentOS 6 x86_64. Under CentOS, it works fine under cron.

DreamDemon avatar Aug 08 '14 12:08 DreamDemon

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.

lock[bot] avatar Jul 20 '18 03:07 lock[bot]