[GH-ISSUE #2005] Updated LGSM. Now seeing "numfmt: invalid number: 'K'". #1574

Closed
opened 2026-02-27 02:57:53 +03:00 by kerem · 38 comments
Owner

Originally created by @jrmain on GitHub (Sep 9, 2018).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2005

Originally assigned to: @dgibbs64 on GitHub.

Describe the bug
Since updating LGSM on September 8 (using update-lgsm), some LGSM commands are showing numfmt: invalid number: 'K'. Servers seem to be running fine otherwise. LGSM version shows as 170305. Tried installing UT99server from scratch and that's also showing the same error. Updated my other server (UT2K4) using update-lgsm and it's showing the same error.

To Reproduce
Steps to reproduce the behaviour:

  1. Update LGSM with update-lgsm.
  2. Issue an LGSM command, such as DETAILS.
  3. Examine the results.
  4. See error: "numfmt: invalid number: 'K'" in the results.

Expected behaviour
No error messages.

** Minimum Information **
The game server I am running: UT99 (also UT2K4, also affected).
The link from ./gameserver postdetails command: postdetails did not work. Manual attempt to use hastebin also failed. Server details pasted below (first is before LGSM updates, second is after clean re-install of LGSM and UT99 server).

Additional context
Excerpt of command output showing error in context:

ut99server@foghorn:~$ ./ut99server details
[ INFO ] Details ut99server: Check IP: 192.168.0.196
numfmt: invalid number: 'K'

Distro Details
==============================================================================================================================

Distro:    Ubuntu 14.04.5 LTS

Original server details (ANSI removed):

Distro Details
==============================================================================================================================
Distro:    Ubuntu 14.04.5 LTS
Arch:      x86_64
Kernel:    3.13.0-135-generic
Hostname:  foghorn
tmux:      tmux 2.0
GLIBC:     2.19

Performance
Uptime:    15d, 23h, 15m
Avg Load:  0.27, 0.46, 0.54

Mem:       total   used   free     cached
Physical:  7.5G    7.1G   430M     5.1G
Swap:      7.7G    836M   6.9G

Storage
==============================================================================================================================
Filesystem:      /dev/sda1
Total:           451G
Used:            106G
Available:       323G
LinuxGSM Total:  737M
Serverfiles:     613M

Unreal Tournament 99 Server Details
==============================================================================================================================
Server name:      JDRGaming UT99 Co-op
Server IP:        192.168.0.196:7777
Internet IP:      24.80.59.72:7777
Server password:  
Admin password:   redacted
Status:           ONLINE

ut99server Script Details
==============================================================================================================================
Service name:           ut99-server
ut99server version:     170305
User:                   ut99server
GLIBC required:         2.1
Discord alert:          on
Email alert:            on
Pushbullet alert:       off
IFTTT alert:            
Mailgun (email) alert:  
Pushover alert:         
Telegram alert:         
Location:               /home/ut99server
Config file:            /home/ut99server/serverfiles/System/ut99-server.ini

Backups
==============================================================================================================================
No Backups created

Command-line Parameters
==============================================================================================================================
./ucc-bin server AS-Hispeed.unr ini=/home/ut99server/serverfiles/System/ut99-server.ini

Ports
==============================================================================================================================
Change ports by editing the parameters in:
/home/ut99server/serverfiles/System/ut99-server.ini

Useful port diagnostic command:
netstat -atunp | grep ucc-bin

DESCRIPTION              DIRECTION  PORT         PROTOCOL  INI VARIABLE
> Game                   INBOUND    7777         udp       Port=7777
> Query                  INBOUND    7778         udp
< UdpLink Port (random)  OUTBOUND   +            udp
< Master server          OUTBOUND   28900/28902  tcp/udp
> WebAdmin               INBOUND    8076         tcp       ListenPort=8076

JDRGaming UT99 Co-op
 WebAdmin
==============================================================================================================================
WebAdmin enabled:   True
WebAdmin url:       http://192.168.0.196:8076
WebAdmin username:  redacted
WebAdmin password:  redacted

Status:	ONLINE


command_details.sh exiting with code: 0

After clean re-install:

[ .... ] Details ut99server: Check IP
[ INFO ] Details ut99server: Check IP: 192.168.0.196

Distro Details
==============================================================================================================================
Distro:    Ubuntu 14.04.5 LTS
Arch:      x86_64
Kernel:    3.13.0-157-generic
Hostname:  foghorn
tmux:      tmux 2.0
GLIBC:     2.19

Performance
Uptime:    14d, 21h, 51m
Avg Load:  0.83, 0.77, 0.80

Mem:       total  used   free      cached  available
Physical:  7.5GB   2.0GB  4.3GB     
Swap:      7.7GB   420MB  7.3GB

Storage
==============================================================================================================================
Filesystem:      /dev/sda1
Total:           451G
Used:            110G
Available:       319G
LinuxGSM Total:  1.6G
Serverfiles:     287M

Unreal Tournament 99 Server Details
==============================================================================================================================
Server name:      LinuxGSM
Server IP:        192.168.0.196:7777
Server password:  NOT SET
Admin password:   redacted
Default Map:      DM-Deck16][
Status:           OFFLINE

ut99server Script Details
==============================================================================================================================
Service name:           ut99server
ut99server version:     180908
User:                   ut99server
GLIBC required:         2.1
Discord alert:          off
Email alert:            off
Pushbullet alert:       off
IFTTT alert:            off
Mailgun (email) alert:  off
Pushover alert:         off
Telegram alert:         off
Location:               /home/ut99server
Config file:            /home/ut99server/serverfiles/System/ut99server.ini

Backups
==============================================================================================================================
No Backups created

Command-line Parameters
==============================================================================================================================
./ucc-bin server DM-Deck16][.unr ini=/home/ut99server/serverfiles/System/ut99server.ini

Ports
==============================================================================================================================
Change ports by editing the parameters in:
/home/ut99server/serverfiles/System/ut99server.ini

Useful port diagnostic command:
netstat -atunp | grep ucc-bin

DESCRIPTION              DIRECTION  PORT         PROTOCOL  INI VARIABLE
> Game                   INBOUND    7777         udp       Port=7777
> Query                  INBOUND    7778         udp
< UdpLink Port (random)  OUTBOUND   +            udp
< Master server          OUTBOUND   28900/28902  tcp/udp
> WebAdmin               INBOUND    8076         tcp       ListenPort=8076

LinuxGSM WebAdmin
==============================================================================================================================
WebAdmin enabled:   True
WebAdmin url:       http://192.168.0.196:8076
WebAdmin username:  redacted
WebAdmin password:  redacted

Status:	OFFLINE


command_details.sh exiting with code: 0
Originally created by @jrmain on GitHub (Sep 9, 2018). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2005 Originally assigned to: @dgibbs64 on GitHub. **Describe the bug** Since updating LGSM on September 8 (using update-lgsm), some LGSM commands are showing `numfmt: invalid number: 'K'`. Servers seem to be running fine otherwise. LGSM version shows as 170305. Tried installing UT99server from scratch and that's also showing the same error. Updated my other server (UT2K4) using update-lgsm and it's showing the same error. **To Reproduce** Steps to reproduce the behaviour: 1. Update LGSM with update-lgsm. 2. Issue an LGSM command, such as DETAILS. 3. Examine the results. 4. See error: "numfmt: invalid number: 'K'" in the results. **Expected behaviour** No error messages. ** Minimum Information ** The game server I am running: UT99 (also UT2K4, also affected). The link from `./gameserver postdetails` command: postdetails did not work. Manual attempt to use hastebin also failed. Server details pasted below (first is before LGSM updates, second is after clean re-install of LGSM and UT99 server). **Additional context** Excerpt of command output showing error in context: ``` ut99server@foghorn:~$ ./ut99server details [ INFO ] Details ut99server: Check IP: 192.168.0.196 numfmt: invalid number: 'K' Distro Details ============================================================================================================================== Distro: Ubuntu 14.04.5 LTS ``` Original server details (ANSI removed): ``` Distro Details ============================================================================================================================== Distro: Ubuntu 14.04.5 LTS Arch: x86_64 Kernel: 3.13.0-135-generic Hostname: foghorn tmux: tmux 2.0 GLIBC: 2.19 Performance Uptime: 15d, 23h, 15m Avg Load: 0.27, 0.46, 0.54 Mem: total used free cached Physical: 7.5G 7.1G 430M 5.1G Swap: 7.7G 836M 6.9G Storage ============================================================================================================================== Filesystem: /dev/sda1 Total: 451G Used: 106G Available: 323G LinuxGSM Total: 737M Serverfiles: 613M Unreal Tournament 99 Server Details ============================================================================================================================== Server name: JDRGaming UT99 Co-op Server IP: 192.168.0.196:7777 Internet IP: 24.80.59.72:7777 Server password: Admin password: redacted Status: ONLINE ut99server Script Details ============================================================================================================================== Service name: ut99-server ut99server version: 170305 User: ut99server GLIBC required: 2.1 Discord alert: on Email alert: on Pushbullet alert: off IFTTT alert: Mailgun (email) alert: Pushover alert: Telegram alert: Location: /home/ut99server Config file: /home/ut99server/serverfiles/System/ut99-server.ini Backups ============================================================================================================================== No Backups created Command-line Parameters ============================================================================================================================== ./ucc-bin server AS-Hispeed.unr ini=/home/ut99server/serverfiles/System/ut99-server.ini Ports ============================================================================================================================== Change ports by editing the parameters in: /home/ut99server/serverfiles/System/ut99-server.ini Useful port diagnostic command: netstat -atunp | grep ucc-bin DESCRIPTION DIRECTION PORT PROTOCOL INI VARIABLE > Game INBOUND 7777 udp Port=7777 > Query INBOUND 7778 udp < UdpLink Port (random) OUTBOUND + udp < Master server OUTBOUND 28900/28902 tcp/udp > WebAdmin INBOUND 8076 tcp ListenPort=8076 JDRGaming UT99 Co-op WebAdmin ============================================================================================================================== WebAdmin enabled: True WebAdmin url: http://192.168.0.196:8076 WebAdmin username: redacted WebAdmin password: redacted Status: ONLINE command_details.sh exiting with code: 0 ``` After clean re-install: ``` [ .... ] Details ut99server: Check IP [ INFO ] Details ut99server: Check IP: 192.168.0.196 Distro Details ============================================================================================================================== Distro: Ubuntu 14.04.5 LTS Arch: x86_64 Kernel: 3.13.0-157-generic Hostname: foghorn tmux: tmux 2.0 GLIBC: 2.19 Performance Uptime: 14d, 21h, 51m Avg Load: 0.83, 0.77, 0.80 Mem: total used free cached available Physical: 7.5GB 2.0GB 4.3GB  Swap: 7.7GB 420MB 7.3GB Storage ============================================================================================================================== Filesystem: /dev/sda1 Total: 451G Used: 110G Available: 319G LinuxGSM Total: 1.6G Serverfiles: 287M Unreal Tournament 99 Server Details ============================================================================================================================== Server name: LinuxGSM Server IP: 192.168.0.196:7777 Server password: NOT SET Admin password: redacted Default Map: DM-Deck16][ Status: OFFLINE ut99server Script Details ============================================================================================================================== Service name: ut99server ut99server version: 180908 User: ut99server GLIBC required: 2.1 Discord alert: off Email alert: off Pushbullet alert: off IFTTT alert: off Mailgun (email) alert: off Pushover alert: off Telegram alert: off Location: /home/ut99server Config file: /home/ut99server/serverfiles/System/ut99server.ini Backups ============================================================================================================================== No Backups created Command-line Parameters ============================================================================================================================== ./ucc-bin server DM-Deck16][.unr ini=/home/ut99server/serverfiles/System/ut99server.ini Ports ============================================================================================================================== Change ports by editing the parameters in: /home/ut99server/serverfiles/System/ut99server.ini Useful port diagnostic command: netstat -atunp | grep ucc-bin DESCRIPTION DIRECTION PORT PROTOCOL INI VARIABLE > Game INBOUND 7777 udp Port=7777 > Query INBOUND 7778 udp < UdpLink Port (random) OUTBOUND + udp < Master server OUTBOUND 28900/28902 tcp/udp > WebAdmin INBOUND 8076 tcp ListenPort=8076 LinuxGSM WebAdmin ============================================================================================================================== WebAdmin enabled: True WebAdmin url: http://192.168.0.196:8076 WebAdmin username: redacted WebAdmin password: redacted Status: OFFLINE command_details.sh exiting with code: 0 ```
Author
Owner

@jrmain commented on GitHub (Sep 9, 2018):

It's kind of a long shot, but I think the problem may be related to the new 'ansi' option. I've disabled ansi in my ut99 server config, and it had no effect: ANSI colours are still appearing everywhere. And some of the ANSI codes include 'K'.

<!-- gh-comment-id:419727403 --> @jrmain commented on GitHub (Sep 9, 2018): It's kind of a long shot, but I think the problem may be related to the new 'ansi' option. I've disabled ansi in my ut99 server config, and it had no effect: ANSI colours are still appearing everywhere. And some of the ANSI codes include 'K'.
Author
Owner

@dgibbs64 commented on GitHub (Sep 9, 2018):

I think I know where the issue is but I'm on my phone so can't bring it up currently

<!-- gh-comment-id:419742090 --> @dgibbs64 commented on GitHub (Sep 9, 2018): I think I know where the issue is but I'm on my phone so can't bring it up currently
Author
Owner

@jrmain commented on GitHub (Sep 9, 2018):

I just reinstalled my UT2004 server from scratch and it's doing the same thing.

<!-- gh-comment-id:419745620 --> @jrmain commented on GitHub (Sep 9, 2018): I just reinstalled my UT2004 server from scratch and it's doing the same thing.
Author
Owner

@dgibbs64 commented on GitHub (Sep 10, 2018):

I think its related to this https://github.com/GameServerManagers/LinuxGSM/pull/1971

<!-- gh-comment-id:419885432 --> @dgibbs64 commented on GitHub (Sep 10, 2018): I think its related to this https://github.com/GameServerManagers/LinuxGSM/pull/1971
Author
Owner

@xxngle commented on GitHub (Sep 19, 2018):

Same for CS:GO server.

<!-- gh-comment-id:422791254 --> @xxngle commented on GitHub (Sep 19, 2018): Same for CS:GO server.
Author
Owner

@Venopsis commented on GitHub (Sep 30, 2018):

Hi,
Having same issue since update LGSM for Project Zomboid Server to last version (180908).
image

<!-- gh-comment-id:425731267 --> @Venopsis commented on GitHub (Sep 30, 2018): Hi, Having same issue since update LGSM for Project Zomboid Server to last version (180908). ![image](https://user-images.githubusercontent.com/949573/46259537-0e347180-c4db-11e8-8c5e-7cf753efedd3.png)
Author
Owner

@Troopie commented on GitHub (Sep 30, 2018):

I have same issue at insurgency and KF2 server

<!-- gh-comment-id:425745440 --> @Troopie commented on GitHub (Sep 30, 2018): I have same issue at insurgency and KF2 server
Author
Owner

@dgibbs64 commented on GitHub (Sep 30, 2018):

I am aware of this issue. Should be fixed in next release. It doesnt break anything important :)

<!-- gh-comment-id:425747073 --> @dgibbs64 commented on GitHub (Sep 30, 2018): I am aware of this issue. Should be fixed in next release. It doesnt break anything important :)
Author
Owner

@dgibbs64 commented on GitHub (Oct 4, 2018):

connects to #1971

<!-- gh-comment-id:427119423 --> @dgibbs64 commented on GitHub (Oct 4, 2018): connects to #1971
Author
Owner

@dgibbs64 commented on GitHub (Oct 14, 2018):

I am not getting this issue. I think its related older distros like Ubuntu 14.04

<!-- gh-comment-id:429672092 --> @dgibbs64 commented on GitHub (Oct 14, 2018): I am not getting this issue. I think its related older distros like Ubuntu 14.04
Author
Owner

@Venopsis commented on GitHub (Oct 14, 2018):

I am not getting this issue. I think its related older distros like Ubuntu 14.04

Hello Daniel,

Here is the details of my server:

Distro:   CentOS Linux release 7.5.1804 (Core)
Arch:   x86_64
Kernel:   2.6.32-042stab120.18 (production) and 3.10.0-862.14.4.el7.x86_64 (testing server)

Let me know if you need more details to troubleshoot.

<!-- gh-comment-id:429672483 --> @Venopsis commented on GitHub (Oct 14, 2018): > I am not getting this issue. I think its related older distros like Ubuntu 14.04 Hello Daniel, Here is the details of my server: ``` Distro: CentOS Linux release 7.5.1804 (Core) Arch: x86_64 Kernel: 2.6.32-042stab120.18 (production) and 3.10.0-862.14.4.el7.x86_64 (testing server) ``` Let me know if you need more details to troubleshoot.
Author
Owner

@dgibbs64 commented on GitHub (Oct 14, 2018):

Odd I just tested the issue on CentOS 7 and the issue didn't occur

[root@li655-230 ~]# numfmt --to=iec --from=iec --suffix=B "$(grep ^MemTotal /proc/meminfo | awk '{print $2}')K"
3.8GB
<!-- gh-comment-id:429672548 --> @dgibbs64 commented on GitHub (Oct 14, 2018): Odd I just tested the issue on CentOS 7 and the issue didn't occur ``` [root@li655-230 ~]# numfmt --to=iec --from=iec --suffix=B "$(grep ^MemTotal /proc/meminfo | awk '{print $2}')K" 3.8GB ```
Author
Owner

@dgibbs64 commented on GitHub (Oct 14, 2018):

Here are my details

Distro:    CentOS Linux 7 (Core)
Arch:      x86_64
Kernel:    3.10.0-862.11.6.el7.x86_64
Hostname:  li655-230.members.linode.com
tmux:      tmux 1.8
GLIBC:     2.17

Looks like you are only running kernel 2.6 which is really old

<!-- gh-comment-id:429672651 --> @dgibbs64 commented on GitHub (Oct 14, 2018): Here are my details ``` Distro: CentOS Linux 7 (Core) Arch: x86_64 Kernel: 3.10.0-862.11.6.el7.x86_64 Hostname: li655-230.members.linode.com tmux: tmux 1.8 GLIBC: 2.17 ``` Looks like you are only running kernel 2.6 which is really old
Author
Owner

@Venopsis commented on GitHub (Oct 14, 2018):

If I try the same command than your previous message, I don't have error:
image

But when using start command, I got error:
image

Suppose not related but no more able to run my server on CentOS since last update as Glibcxx 3.4.21 not found. Post open on Official game forum to check as nothing fix this.

<!-- gh-comment-id:429672851 --> @Venopsis commented on GitHub (Oct 14, 2018): If I try the same command than your previous message, I don't have error: ![image](https://user-images.githubusercontent.com/949573/46923596-0ff14f80-d01a-11e8-80ce-ea35c54fc786.png) But when using start command, I got error: ![image](https://user-images.githubusercontent.com/949573/46923603-3616ef80-d01a-11e8-8c39-bd8a8d260a72.png) Suppose not related but no more able to run my server on CentOS since last update as Glibcxx 3.4.21 not found. Post open on Official game forum to check as nothing fix this.
Author
Owner

@Venopsis commented on GitHub (Oct 14, 2018):

Here are my details

=
Distro:    CentOS Linux 7 (Core)
Arch:      x86_64
Kernel:    3.10.0-862.11.6.el7.x86_64
Hostname:  li655-230.members.linode.com
tmux:      tmux 1.8
GLIBC:     2.17

Looks like you are only running kernel 2.6 which is really old

I have two servers as mentioned (prod and testing). The testing one use recent Kernel (more recent than yours).

Prod is openVZ server based.

Just tried on testing and not having the issue at all.

Could be Kernel related? Not an expert.

<!-- gh-comment-id:429673025 --> @Venopsis commented on GitHub (Oct 14, 2018): > Here are my details > > ``` > = > Distro: CentOS Linux 7 (Core) > Arch: x86_64 > Kernel: 3.10.0-862.11.6.el7.x86_64 > Hostname: li655-230.members.linode.com > tmux: tmux 1.8 > GLIBC: 2.17 > ``` > Looks like you are only running kernel 2.6 which is really old I have two servers as mentioned (prod and testing). The testing one use recent Kernel (more recent than yours). Prod is openVZ server based. Just tried on testing and not having the issue at all. Could be Kernel related? Not an expert.
Author
Owner

@dgibbs64 commented on GitHub (Oct 14, 2018):

Whats the kernel version of your testing server?

<!-- gh-comment-id:429673267 --> @dgibbs64 commented on GitHub (Oct 14, 2018): Whats the kernel version of your testing server?
Author
Owner

@dgibbs64 commented on GitHub (Oct 14, 2018):

It is my guess that kernel 2.6 does not have numfmt or a very old version of it

<!-- gh-comment-id:429673857 --> @dgibbs64 commented on GitHub (Oct 14, 2018): It is my guess that kernel 2.6 does not have numfmt or a very old version of it
Author
Owner

@dgibbs64 commented on GitHub (Oct 14, 2018):

what is the output of numfmt --version of the server that has the issue?

the oldest version I have available is

numfmt (GNU coreutils) 8.21
<!-- gh-comment-id:429674257 --> @dgibbs64 commented on GitHub (Oct 14, 2018): what is the output of `numfmt --version` of the server that has the issue? the oldest version I have available is ``` numfmt (GNU coreutils) 8.21 ```
Author
Owner

@jrmain commented on GitHub (Oct 15, 2018):

Not sure if you were asking me, but anyway: numfmt (GNU coreutils) 8.21.

<!-- gh-comment-id:429694754 --> @jrmain commented on GitHub (Oct 15, 2018): Not sure if you were asking me, but anyway: numfmt (GNU coreutils) 8.21.
Author
Owner

@dgibbs64 commented on GitHub (Oct 15, 2018):

@jrmain odd I can't replicate the issue myself. I am unsure of what is causing the issue but it seems limited to old distros

<!-- gh-comment-id:429984520 --> @dgibbs64 commented on GitHub (Oct 15, 2018): @jrmain odd I can't replicate the issue myself. I am unsure of what is causing the issue but it seems limited to old distros
Author
Owner

@Venopsis commented on GitHub (Oct 15, 2018):

Whats the kernel version of your testing server?

Hi!

Kernel:

  • Production (having issue) : 2.6.32-042stab120.18
  • Testing (not having issue) : 3.10.0-862.14.4.el7.x86_64

The production server is OpenVZ "VM" while testing is hosted on VMware Workstation pro.

numfmt (GNU coreutils)

  • Production : 8.22
  • Testing : 8.22
<!-- gh-comment-id:430000090 --> @Venopsis commented on GitHub (Oct 15, 2018): > Whats the kernel version of your testing server? Hi! **Kernel:** - Production (having issue) : 2.6.32-042stab120.18 - Testing (not having issue) : 3.10.0-862.14.4.el7.x86_64 The production server is OpenVZ "VM" while testing is hosted on VMware Workstation pro. **numfmt (GNU coreutils)** - Production : 8.22 - Testing : 8.22
Author
Owner

@jrmain commented on GitHub (Oct 15, 2018):

@jrmain odd I can't replicate the issue myself. I am unsure of what is causing the issue but it seems limited to old distros

I can look at the code. Can you provide any hints as to what I'm looking for?

<!-- gh-comment-id:430043742 --> @jrmain commented on GitHub (Oct 15, 2018): > > > @jrmain odd I can't replicate the issue myself. I am unsure of what is causing the issue but it seems limited to old distros I can look at the code. Can you provide any hints as to what I'm looking for?
Author
Owner

@dgibbs64 commented on GitHub (Oct 15, 2018):

info_distro.sh

https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/info_distro.sh#L96

<!-- gh-comment-id:430044149 --> @dgibbs64 commented on GitHub (Oct 15, 2018): `info_distro.sh` https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/functions/info_distro.sh#L96
Author
Owner

@jrmain commented on GitHub (Oct 15, 2018):

There's no MemAvailable in /proc/meminfo. If I change 'MemAvailable' in that command (run from the CLI) to 'nonsense' the same thing happens.

<!-- gh-comment-id:430048228 --> @jrmain commented on GitHub (Oct 15, 2018): There's no MemAvailable in /proc/meminfo. If I change 'MemAvailable' in that command (run from the CLI) to 'nonsense' the same thing happens.
Author
Owner

@jrmain commented on GitHub (Oct 16, 2018):

Looks like MemAvailable was added to the Linux kernel relatively recently, in 3.14. I'm running 3.13.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773
Also http://manpages.ubuntu.com/manpages/bionic/man1/free.1.html

<!-- gh-comment-id:430213675 --> @jrmain commented on GitHub (Oct 16, 2018): Looks like MemAvailable was added to the Linux kernel relatively recently, in 3.14. I'm running 3.13. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773 Also http://manpages.ubuntu.com/manpages/bionic/man1/free.1.html
Author
Owner

@OxECI commented on GitHub (Oct 20, 2018):

Same here.

My distro:

Distro:    Ubuntu 16.04.5 LTS
Arch:      x86_64
Kernel:    4.4.0-042stab133.2
tmux:      tmux 2.1
GLIBC:     2.23

If additional information is needed, let me know.

<!-- gh-comment-id:431549732 --> @OxECI commented on GitHub (Oct 20, 2018): Same here. My distro: ``` Distro: Ubuntu 16.04.5 LTS Arch: x86_64 Kernel: 4.4.0-042stab133.2 tmux: tmux 2.1 GLIBC: 2.23 ``` If additional information is needed, let me know.
Author
Owner

@marvinlehmann commented on GitHub (Oct 22, 2018):

Same with Debian 9.5 on Windows (WSL):

Kernel: 4.4.0-17134-Microsoft
numfmt version: 8.26

<!-- gh-comment-id:431941926 --> @marvinlehmann commented on GitHub (Oct 22, 2018): Same with Debian 9.5 on Windows (WSL): Kernel: 4.4.0-17134-Microsoft numfmt version: 8.26
Author
Owner

@TuXEKRO commented on GitHub (Oct 24, 2018):

Same with:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
NAME="Ubuntu"
VERSION="18.04.1 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.1 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

<!-- gh-comment-id:432780685 --> @TuXEKRO commented on GitHub (Oct 24, 2018): Same with: DISTRIB_ID=Ubuntu DISTRIB_RELEASE=18.04 DISTRIB_CODENAME=bionic DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS" NAME="Ubuntu" VERSION="18.04.1 LTS (Bionic Beaver)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 18.04.1 LTS" VERSION_ID="18.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy" VERSION_CODENAME=bionic UBUNTU_CODENAME=bionic
Author
Owner

@dgibbs64 commented on GitHub (Oct 24, 2018):

I can't see a pattern to this issue currently

<!-- gh-comment-id:432811828 --> @dgibbs64 commented on GitHub (Oct 24, 2018): I can't see a pattern to this issue currently
Author
Owner

@jrmain commented on GitHub (Oct 24, 2018):

Maybe just stop using MemAvailable?

<!-- gh-comment-id:432832093 --> @jrmain commented on GitHub (Oct 24, 2018): Maybe just stop using MemAvailable?
Author
Owner

@dgibbs64 commented on GitHub (Oct 24, 2018):

Yes that may be the only choice

<!-- gh-comment-id:432832572 --> @dgibbs64 commented on GitHub (Oct 24, 2018): Yes that may be the only choice
Author
Owner

@Venopsis commented on GitHub (Oct 24, 2018):

Replace with output from vmstat -s command?

<!-- gh-comment-id:432833840 --> @Venopsis commented on GitHub (Oct 24, 2018): Replace with output from vmstat -s command?
Author
Owner

@Bourne-ID commented on GitHub (Oct 24, 2018):

Could always do a check - if it exists then use it, otherwise we can estimate it. The full calculation is documented here but do we need to be exact, or can we say 'if the linux kernel doesn't include MemoryAvailable then we estimate with the next best thing on the list?'

<!-- gh-comment-id:432839288 --> @Bourne-ID commented on GitHub (Oct 24, 2018): Could always do a check - if it exists then use it, otherwise we can estimate it. The full calculation is documented [here](https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773) but do we need to be exact, or can we say 'if the linux kernel doesn't include MemoryAvailable then we estimate with the next best thing on the list?'
Author
Owner

@Bourne-ID commented on GitHub (Oct 24, 2018):

To add, elastic does a check for MemAvailable - and if it exists uses it, otherwise calculates it from Free, Buffers and Cache (link)

<!-- gh-comment-id:432841751 --> @Bourne-ID commented on GitHub (Oct 24, 2018): To add, elastic does a check for MemAvailable - and if it exists uses it, otherwise calculates it from Free, Buffers and Cache ([link](https://github.com/elastic/gosigar/commit/33b3bbdc1464fb5c452434b755952ea54b1312ef#diff-85678a06a1a7795f712b7ee92c01b608R122))
Author
Owner

@Bourne-ID commented on GitHub (Oct 27, 2018):

Currently merged to dev, tested on all current OS and Ubuntu kernel 3.12. feel free to help test and report back :)

<!-- gh-comment-id:433606332 --> @Bourne-ID commented on GitHub (Oct 27, 2018): Currently merged to dev, tested on all current OS and Ubuntu kernel 3.12. feel free to help test and report back :)
Author
Owner

@dgibbs64 commented on GitHub (Oct 27, 2018):

https://github.com/GameServerManagers/LinuxGSM/pull/2058

<!-- gh-comment-id:433657732 --> @dgibbs64 commented on GitHub (Oct 27, 2018): https://github.com/GameServerManagers/LinuxGSM/pull/2058
Author
Owner

@jrmain commented on GitHub (Oct 28, 2018):

Confirmed fixed with version 181027.

<!-- gh-comment-id:433715718 --> @jrmain commented on GitHub (Oct 28, 2018): Confirmed fixed with version 181027.
Author
Owner

@lock[bot] commented on GitHub (Oct 28, 2019):

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.

<!-- gh-comment-id:547006205 --> @lock[bot] commented on GitHub (Oct 28, 2019): 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.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#1574
No description provided.