LinuxGSM: Updated LGSM. Now seeing "numfmt: invalid number: 'K'".

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

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 38 (19 by maintainers)

Commits related to this issue

Most upvoted comments

Confirmed fixed with version 181027.

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?’

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