[GH-ISSUE #1674] Discord alerts failing for ut99server #1301

Closed
opened 2026-02-27 02:56:22 +03:00 by kerem · 17 comments
Owner

Originally created by @jrmain on GitHub (Oct 28, 2017).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1674

Originally assigned to: @dgibbs64 on GitHub.

When I use test-alert to check Discord alert functionality, I get this: [ FAIL ] Alert ut99-server: Sending Discord alert: {"code": 50006, "message": "Cannot send an empty message"}

I followed the instructions at https://github.com/GameServerManagers/LinuxGSM/wiki/Discord to create the Webhook and updated the server script to enable Discord alerts, but it's not working as expected.

Any ideas?

Originally created by @jrmain on GitHub (Oct 28, 2017). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/1674 Originally assigned to: @dgibbs64 on GitHub. When I use test-alert to check Discord alert functionality, I get this: ```[ FAIL ] Alert ut99-server: Sending Discord alert: {"code": 50006, "message": "Cannot send an empty message"}``` I followed the instructions at https://github.com/GameServerManagers/LinuxGSM/wiki/Discord to create the Webhook and updated the server script to enable Discord alerts, but it's not working as expected. Any ideas?
Author
Owner

@gamersalpha commented on GitHub (Nov 6, 2017):

Hello yes
try this :

edit this files :

nano lgsm/config-lgsm/arkserver/common.cfg

adding this line :

servername="ark-server-ubuntu"

like this :
https://gist.github.com/gamersalpha/f27370566023c21af16bf6cebfad434a

and now the that"s works :)

[ OK ] Alert arkserver: Sending Discord alert

i have the same error and i fix it like this
https://github.com/GameServerManagers/LinuxGSM/issues/1680

<!-- gh-comment-id:342275031 --> @gamersalpha commented on GitHub (Nov 6, 2017): Hello yes try this : edit this files : `nano lgsm/config-lgsm/arkserver/common.cfg` adding this line : `servername="ark-server-ubuntu"` like this : https://gist.github.com/gamersalpha/f27370566023c21af16bf6cebfad434a and now the that"s works :) `[ OK ] Alert arkserver: Sending Discord alert` i have the same error and i fix it like this https://github.com/GameServerManagers/LinuxGSM/issues/1680
Author
Owner

@jrmain commented on GitHub (Nov 6, 2017):

@gamersalpha I tried something similar for the UT99 server, but it didn't seem to help. For your server, where did the value for servername come from?

<!-- gh-comment-id:342298580 --> @jrmain commented on GitHub (Nov 6, 2017): @gamersalpha I tried something similar for the UT99 server, but it didn't seem to help. For your server, where did the value for servername come from?
Author
Owner

@abortizjr commented on GitHub (Nov 22, 2017):

I'm getting the same message. I put the servername in the common.cfg and it still didn't work.

<!-- gh-comment-id:346369566 --> @abortizjr commented on GitHub (Nov 22, 2017): I'm getting the same message. I put the servername in the common.cfg and it still didn't work.
Author
Owner

@abortizjr commented on GitHub (Nov 22, 2017):

For the record, I have a UT2k4 server running on the same box and it sends Discord alerts just fine.

I also have a KF2 server on a separate box that sends Discord alerts just fine.

So there seems to be something different with the UT99 implementation.

<!-- gh-comment-id:346369834 --> @abortizjr commented on GitHub (Nov 22, 2017): For the record, I have a UT2k4 server running on the same box and it sends Discord alerts just fine. I also have a KF2 server on a separate box that sends Discord alerts just fine. So there seems to be something different with the UT99 implementation.
Author
Owner

@jrmain commented on GitHub (Nov 22, 2017):

Confirmed that Discord alerts work fine with my UT2K4 server on the same box. Still not working for the UT99 server.

<!-- gh-comment-id:346375915 --> @jrmain commented on GitHub (Nov 22, 2017): Confirmed that Discord alerts work fine with my UT2K4 server on the same box. Still not working for the UT99 server.
Author
Owner

@UltimateByte commented on GitHub (Nov 22, 2017):

Please, follow the minimum requirements to report an issue.
https://github.com/GameServerManagers/LinuxGSM/wiki/Support

<!-- gh-comment-id:346416743 --> @UltimateByte commented on GitHub (Nov 22, 2017): Please, follow the minimum requirements to report an issue. https://github.com/GameServerManagers/LinuxGSM/wiki/Support
Author
Owner

@jrmain commented on GitHub (Nov 22, 2017):

Game server: UT99

Postdetails produces this:

touch: cannot touch ‘’: No such file or directory
[ FAIL ] Postdetails ut99-server: Unable to create temporary file .
command_postdetails.sh exiting with code: 0

Context: trying to get Discord alerts working. Followed the instructions at https://github.com/GameServerManagers/LinuxGSM/wiki/Discord, which worked fine for UT2K4. Running the test-alert command produces this:

[ FAIL ] Alert ut99-server: Sending Discord alert: {"code": 50006, "message": "Cannot send an empty message"}
[  OK  ] Alert ut99-server: Sending Email alert: operator@jrc-core.com
[ WARN ] Alert ut99-server: IFTTT alerts not enabled
[ WARN ] Alert ut99-server: Mailgun alerts not enabled
[ WARN ] Alert ut99-server: Pushbullet alerts not enabled
[ WARN ] Alert ut99-server: Pushover alerts not enabled
[ WARN ] Alert ut99-server: Telegram Messages not enabled
command_test_alert.sh exiting with code: 3

Linux distro/version: Ubuntu Linux 14.04.5

Kernel info: Linux foghorn 3.13.0-135-generic #184-Ubuntu SMP Wed Oct 18 11:55:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Glibc version: ldd (Ubuntu EGLIBC 2.19-0ubuntu6.13) 2.19

TMux version: tmux 2.0

Log excerpts: none that seem relevant

Screenshot: n/a

Server hardware:
CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz, 8 cores
RAM: 8 GB
Storage: 450 GB
Bandwidth: 25 Mbps down; 5 Mbps up

Tests tried: I tried the fix suggested by gamersalpha above, but it didn't help.

<!-- gh-comment-id:346451594 --> @jrmain commented on GitHub (Nov 22, 2017): **Game server:** UT99 **Postdetails** produces this: ```fetching command_postdetails.sh...OK touch: cannot touch ‘’: No such file or directory [ FAIL ] Postdetails ut99-server: Unable to create temporary file . command_postdetails.sh exiting with code: 0 ``` **Context:** trying to get Discord alerts working. Followed the instructions at https://github.com/GameServerManagers/LinuxGSM/wiki/Discord, which worked fine for UT2K4. Running the test-alert command produces this: ```[ WARN ] Alert ut99-server: More Info not enabled [ FAIL ] Alert ut99-server: Sending Discord alert: {"code": 50006, "message": "Cannot send an empty message"} [ OK ] Alert ut99-server: Sending Email alert: operator@jrc-core.com [ WARN ] Alert ut99-server: IFTTT alerts not enabled [ WARN ] Alert ut99-server: Mailgun alerts not enabled [ WARN ] Alert ut99-server: Pushbullet alerts not enabled [ WARN ] Alert ut99-server: Pushover alerts not enabled [ WARN ] Alert ut99-server: Telegram Messages not enabled command_test_alert.sh exiting with code: 3 ``` **Linux distro/version:** Ubuntu Linux 14.04.5 **Kernel info:** Linux foghorn 3.13.0-135-generic #184-Ubuntu SMP Wed Oct 18 11:55:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux **Glibc version:** ldd (Ubuntu EGLIBC 2.19-0ubuntu6.13) 2.19 **TMux version:** tmux 2.0 **Log excerpts:** none that seem relevant **Screenshot:** n/a **Server hardware:** CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz, 8 cores RAM: 8 GB Storage: 450 GB Bandwidth: 25 Mbps down; 5 Mbps up **Tests tried:** I tried the fix suggested by gamersalpha above, but it didn't help.
Author
Owner

@UltimateByte commented on GitHub (Nov 22, 2017):

Thanks
"Unable to create temporary file" > Permission issue? Directory with spaces issues?
Can you please make sure that you eliminated these two possible sources of issues and try postdetails again?

<!-- gh-comment-id:346490098 --> @UltimateByte commented on GitHub (Nov 22, 2017): Thanks "Unable to create temporary file" > Permission issue? Directory with spaces issues? Can you please make sure that you eliminated these two possible sources of issues and try postdetails again?
Author
Owner

@jrmain commented on GitHub (Nov 23, 2017):

No directories with spaces in them. All the files are in /home/ut99server, everything runs as ut99server, and that user appears to have full permissions over all its files.

The 'details' command works fine, but I guess you would prefer a link to the postdetails output.

The tmp directory (/tmp/user/1010) is writeable.

It seems like maybe I'm missing some functionality related to posting information on the web. Or possibly the ut99server user needs additional permissions.

<!-- gh-comment-id:346530747 --> @jrmain commented on GitHub (Nov 23, 2017): No directories with spaces in them. All the files are in /home/ut99server, everything runs as ut99server, and that user appears to have full permissions over all its files. The 'details' command works fine, but I guess you would prefer a link to the postdetails output. The tmp directory (/tmp/user/1010) is writeable. It seems like maybe I'm missing some functionality related to posting information on the web. Or possibly the ut99server user needs additional permissions.
Author
Owner

@jrmain commented on GitHub (Nov 23, 2017):

The postdetails.sh script seems to be expecting postdetailslog to have a value, but I don't see it being set anywhere. My UT2K4 server's postdetails command does the same thing, by the way.

<!-- gh-comment-id:346531699 --> @jrmain commented on GitHub (Nov 23, 2017): The postdetails.sh script seems to be expecting postdetailslog to have a value, but I don't see it being set anywhere. My UT2K4 server's postdetails command does the same thing, by the way.
Author
Owner

@UltimateByte commented on GitHub (Nov 23, 2017):

Oh, maybe there is a bogus here, where a variable is missing for ut99, we need to check that out.

Awaiting for that, you can use the details command and manually post it to hastebin while masking off sensitive information, if any.

<!-- gh-comment-id:346642367 --> @UltimateByte commented on GitHub (Nov 23, 2017): Oh, maybe there is a bogus here, where a variable is missing for ut99, we need to check that out. Awaiting for that, you can use the details command and manually post it to hastebin while masking off sensitive information, if any.
Author
Owner

@jrmain commented on GitHub (Nov 23, 2017):

https://hastebin.com/tapaqefube.sql

<!-- gh-comment-id:346654274 --> @jrmain commented on GitHub (Nov 23, 2017): https://hastebin.com/tapaqefube.sql
Author
Owner

@UltimateByte commented on GitHub (Nov 23, 2017):

Wondering... Is there any firewall?

<!-- gh-comment-id:346676868 --> @UltimateByte commented on GitHub (Nov 23, 2017): Wondering... Is there any firewall?
Author
Owner

@jrmain commented on GitHub (Nov 23, 2017):

There are various firewalls and other security measures in place on the server and elsewhere. I suppose the Linux server's firewall could be configured to block traffic going from the server to Discord's API, but doesn't that traffic just look like web traffic? In any case, the UT2K4 server on the same machine doesn't have the same problem with Discord alerts. I get the feeling that there's a setting missing or misconfigured for the UT99 server.

<!-- gh-comment-id:346687036 --> @jrmain commented on GitHub (Nov 23, 2017): There are various firewalls and other security measures in place on the server and elsewhere. I suppose the Linux server's firewall could be configured to block traffic going from the server to Discord's API, but doesn't that traffic just look like web traffic? In any case, the UT2K4 server on the same machine doesn't have the same problem with Discord alerts. I get the feeling that there's a setting missing or misconfigured for the UT99 server.
Author
Owner

@dgibbs64 commented on GitHub (Jun 13, 2018):

Made some fixes to both gamedig and also this 496ace3d0e

The issue should be fixed on next release

<!-- gh-comment-id:397045790 --> @dgibbs64 commented on GitHub (Jun 13, 2018): Made some fixes to both gamedig and also this 496ace3d0e992814473b1847414c31ef631001a0 The issue should be fixed on next release
Author
Owner

@jrmain commented on GitHub (Jul 19, 2018):

Confirmed fixed.

<!-- gh-comment-id:406297133 --> @jrmain commented on GitHub (Jul 19, 2018): Confirmed fixed.
Author
Owner

@lock[bot] commented on GitHub (Nov 18, 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:555013762 --> @lock[bot] commented on GitHub (Nov 18, 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#1301
No description provided.