Page 1 of 1

Failed INSERT INTO Server_Stats

Posted: Thu Mar 21, 2024 8:42 am
by Anna.N
Since a few days my log is filled with the following message every minute.

Failed INSERT INTO Server_Stats (ServerId, TimeStamp, CpuLoad, CpuUserPercent, CpuNicePercent, CpuSystemPercent, CpuIdlePercent, CpuUsagePercent, TotalMem, FreeMem, TotalSwap, FreeSwap) VALUES ('',NOW(),?,?,?,?,?,?,?,?,?,?) :Data truncated for column 'CpuLoad' at row 1

I have no clue where to look for. For the time being I just commented the lines out in zmstats.pl

(1.37.56~20240320.53-bookworm amd64)

Re: Failed INSERT INTO Server_Stats

Posted: Thu Mar 21, 2024 10:10 am
by Detlef Paschke
t's the same here under Debian12, since today's update (1.37.56~20240320.53-bookworm) via (1.37.55~20240315.181-bookworm).

Best regards
Detlef Paschke

Re: Failed INSERT INTO Server_Stats

Posted: Thu Mar 21, 2024 11:14 am
by Anna.N
Remark: it only happens on debian bookworm on a amd64 PC. Even on a clean install. No problem on armhf and arm64 with bookworm.

Re: Failed INSERT INTO Server_Stats

Posted: Fri Mar 22, 2024 1:51 pm
by Anna.N
After further investigation changing system locale from de_DE to en_US seem to have solved the problem.
Obviously the different decimal separator used in Germany caused the problem.

Re: Failed INSERT INTO Server_Stats

Posted: Fri Mar 22, 2024 1:52 pm
by iconnor
Turn on debug logging, it should log the values being sent.

Re: Failed INSERT INTO Server_Stats

Posted: Fri Mar 22, 2024 5:23 pm
by Anna.N
As Expected:
de_DE Cpuload: 0,88 0,60 0,27
en_US Cpuload: 0.92 0.71 0.37

Re: Failed INSERT INTO Server_Stats

Posted: Mon Mar 25, 2024 12:46 pm
by iconnor
Current builds should have this fixed.