mirror of
https://github.com/GameServerManagers/LinuxGSM.git
synced 2026-04-25 06:05:57 +03:00
[GH-ISSUE #3729] [BUG] Cron emails contain garbage characters #2461
Labels
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
No due date set.
Dependencies
No dependencies set.
Reference
starred/LinuxGSM#2461
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jrmain on GitHub (Jan 1, 2022).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3729
User Story
As a LinuxGSM server operator, I want the garbage characters (apparently spurious ANSI sequences) removed from LinuxGSM Cron emails, so that those emails are easier to read and parse.
Basic info
Further Information
When some LinuxGSM Cron functions run, they generate email. For example, I receive a daily email for each LGSM server when the scheduled update-lgsm function runs for each server.
These emails contain what appears to be ANSI formatting strings. Here are some highlights from this morning's update email:
[K[ .... ] Updating LinuxGSM vhserver: [K[ .... ] Updating LinuxGSM vhserver: Selecting repo [K[ OK ] Updating LinuxGSM vhserver: Selecting repo: GitHub
fetching GitHub linuxgsm.sh...OK [2K checking vhserver...UPDATE
fetching GitHub _default.cfg...OK [2K [K[ .... ] Updating LinuxGSM vhserver: Sending Email alert: [redacted] [K[ OK ] Updating LinuxGSM vhserver: Sending Email alert: [redacted]
fetching GitHub ubuntu-18.04.csv...OK [2K checking GitHub module alert_email.sh...OK
fetching GitHub check_deps.sh...OK [2K checking GitHub module check_executable.sh...OK
fetching GitHub core_dl.sh...OK [2K checking GitHub module core_exit.sh...OK
fetching GitHub core_functions.sh...OK [2K checking GitHub module core_getopt.sh...OK
fetching GitHub fix_steamcmd.sh...OK [2K checking GitHub module fix_vh.sh...UPDATE
fetching GitHub fix_vh.sh...OK [2K checking GitHub module info_distro.sh...UPDATE
fetching GitHub info_distro.sh...OK [2K checking GitHub module info_game.sh...UPDATE
fetching GitHub info_game.sh...OK [2K checking GitHub module info_messages.sh...UPDATE
fetching GitHub info_messages.sh...OK [2K checking GitHub module install_complete.sh...OK
fetching GitHub install_config.sh...OK [2K checking GitHub module install_header.sh...OK
fetching GitHub install_server_files.sh...OK [2K checking GitHub module install_stats.sh...OK
[K[ OK ] Updating LinuxGSM vhserver: Updating functions
(Those are all the lines that contain the garbage characters from the email. All the other lines look fine.)
The garbage characters make reading and parsing the email more difficult, and they don't add anything useful, so if they could be removed, that would be great.
Related settings:
emailalert="on"
ansi="off"
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
No garbage characters in the email generated by update-lgsm.
@jrmain commented on GitHub (Oct 6, 2022):
UPDATE: this is actually getting worse. Today's update emails look like this:
[K[ .... ] Updating LinuxGSM ut2k4server:
[K[ .... ] Updating LinuxGSM ut2k4server: Selecting repo
[K[ OK ] Updating LinuxGSM ut2k4server: Selecting repo: GitHub
checking GitHub linuxgsm.sh...UPDATE
fetching GitHub linuxgsm.sh...OK [2K
checking ut2k4server...UPDATE
backup ut2k4server...OK
backup location /home/ut2k4server/lgsm/backup/script/ut2k4server-10_06_2022_00.bak
copying ut2k4server...OK
checking GitHub config _default.cfg...OK
checking GitHub config ubuntu-18.04.csv...UPDATE
fetching GitHub ubuntu-18.04.csv...OK [2K
checking GitHub module alert_discord.sh...UPDATE
fetching GitHub alert_discord.sh...OK [2K
checking GitHub module alert.sh...UPDATE
fetching GitHub alert.sh...OK [2K
checking GitHub module check_config.sh...UPDATE
fetching GitHub check_config.sh...OK [2K
checking GitHub module check_deps.sh...UPDATE
fetching GitHub check_deps.sh...OK [2K
checking GitHub module check_executable.sh...OK
checking GitHub module check_glibc.sh...OK
checking GitHub module check_ip.sh...UPDATE
fetching GitHub check_ip.sh...OK [2K
checking GitHub module check_logs.sh...UPDATE
fetching GitHub check_logs.sh...OK [2K
checking GitHub module check_permissions.sh...UPDATE
fetching GitHub check_permissions.sh...OK [2K
checking GitHub module check_root.sh...OK
checking GitHub module check.sh...UPDATE
fetching GitHub check.sh...OK [2K
checking GitHub module check_status.sh...UPDATE
fetching GitHub check_status.sh...OK [2K
checking GitHub module check_system_dir.sh...OK
checking GitHub module check_system_requirements.sh...UPDATE
fetching GitHub check_system_requirements.sh...OK [2K
checking GitHub module check_tmuxception.sh...UPDATE
fetching GitHub check_tmuxception.sh...OK [2K
checking GitHub module check_version.sh...UPDATE
fetching GitHub check_version.sh...OK [2K
checking GitHub module command_console.sh...OK
checking GitHub module command_details.sh...UPDATE
fetching GitHub command_details.sh...OK [2K
checking GitHub module command_install.sh...OK
checking GitHub module command_monitor.sh...UPDATE
fetching GitHub command_monitor.sh...OK [2K
checking GitHub module command_postdetails.sh...UPDATE
fetching GitHub command_postdetails.sh...OK [2K
checking GitHub module command_restart.sh...OK
checking GitHub module command_start.sh...UPDATE
fetching GitHub command_start.sh...OK [2K
checking GitHub module command_stop.sh...UPDATE
fetching GitHub command_stop.sh...OK [2K
checking GitHub module command_update_linuxgsm.sh...UPDATE
fetching GitHub command_update_linuxgsm.sh...OK [2K
checking GitHub module core_dl.sh...UPDATE
fetching GitHub core_dl.sh...OK [2K
checking GitHub module core_exit.sh...UPDATE
fetching GitHub core_exit.sh...OK [2K
checking GitHub module core_functions.sh...UPDATE
fetching GitHub core_functions.sh...OK [2K
checking GitHub module core_getopt.sh...UPDATE
fetching GitHub core_getopt.sh...OK [2K
checking GitHub module core_legacy.sh...UPDATE
fetching GitHub core_legacy.sh...OK [2K
checking GitHub module core_logs.sh...UPDATE
fetching GitHub core_logs.sh...OK [2K
checking GitHub module core_messages.sh...UPDATE
fetching GitHub core_messages.sh...OK [2K
checking GitHub module core_trap.sh...UPDATE
fetching GitHub core_trap.sh...OK [2K
checking GitHub module fix.sh...UPDATE
fetching GitHub fix.sh...OK [2K
checking GitHub module fix_ut2k4.sh...OK
checking GitHub module info_distro.sh...UPDATE
fetching GitHub info_distro.sh...OK [2K
checking GitHub module info_game.sh...UPDATE
fetching GitHub info_game.sh...OK [2K
checking GitHub module info_messages.sh...UPDATE
fetching GitHub info_messages.sh...OK [2K
checking GitHub module install_complete.sh...OK
checking GitHub module install_config.sh...UPDATE
fetching GitHub install_config.sh...OK [2K
checking GitHub module install_header.sh...OK
checking GitHub module install_logs.sh...UPDATE
fetching GitHub install_logs.sh...OK [2K
checking GitHub module install_server_dir.sh...OK
checking GitHub module install_server_files.sh...UPDATE
fetching GitHub install_server_files.sh...OK [2K
checking GitHub module install_ut2k4_key.sh...OK
checking GitHub module query_gamedig.sh...UPDATE
fetching GitHub query_gamedig.sh...OK [2K
checking GitHub module query_gsquery.py...UPDATE
fetching GitHub query_gsquery.py...OK [2K
checking GitHub module update_steamcmd.sh...OK
[K[ OK ] Updating LinuxGSM ut2k4server: Updating functions
@h3o66 commented on GitHub (Oct 6, 2022):
to disable the colors you can try to add the following to the config:
ansi="off"hope this helps
@jrmain commented on GitHub (Oct 6, 2022):
Thanks. As noted in my original report, that setting is already off.
@jrmain commented on GitHub (Oct 31, 2023):
This issue was apparently resolved in v23.6.0, presumably in relation to #4352. I'm not seeing stray ANSI sequences in alert emails any more. Thanks!
@dgibbs64 commented on GitHub (Oct 31, 2023):
Brilliant. I will get this linked and closed :)
@github-actions[bot] commented on GitHub (Nov 11, 2024):
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.