[GH-ISSUE #4861] [Bug]: server status always STOPPED if connected via ssh with ghostty or kitty terminal emulators #3011

Open
opened 2026-02-27 03:06:44 +03:00 by kerem · 0 comments
Owner

Originally created by @silasjmatson on GitHub (Dec 1, 2025).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4861

User story

As a server manager, I want the details command to show when the server is running so that I am not misinformed

Game

Minecraft

Linux distro

Ubuntu 24.04

Command

command: details

Further information

When connected to a server via ssh on a new terminal emulator (such as ghossty or kitty), calls to tmux will fail with 'unsupported terminal' errors.

These errors are not surfaced by non-interactive scripts, e.g. ./mcserver details, so they result in either silent failures or don't work at all.

./mcserver details on my server shows 0% CPU, 0% Memory, and STOPPED for the server status when the server is actually running. This was because the tmux commands to get this info failed.

I am able to manually resolve by running infocmp -x xterm-kitty | ssh root@myserver -- tic -x - OR by setting TERM=xterm-256color in my ssh config, but that shouldn't be necessary.

Relevant log output

╭─ ~ ··································································· ✔  10:16:51 AM ─╮
╰─ echo $TERM                                                                              ─╯
xterm-ghostty

╭─ ~ ··································································· ✔  10:16:55 AM ─╮
╰─ ssh root@myserver
Welcome to Ubuntu 24.04.3 LTS (GNU/Linux 6.8.0-88-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Mon Dec  1 18:17:11 UTC 2025

  System load:  0.37               Processes:             125
  Usage of /:   5.0% of 115.20GB   Users logged in:       1
  Memory usage: 26%                IPv4 address for eth0: REDACTED
  Swap usage:   0%                 IPv4 address for eth0: REDACTED

Expanded Security Maintenance for Aplications is not enabled.

33 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status


Last login: Mon Dec  1 18:15:59 2025 from REDACTED
root@myserver:~# su - mcserver
mcserver@myserver:~$ ./mcserver details

Distro Details
==============================================================================================
Date:         Mon Dec  1 18:17:30 UTC 2025
Distro:       Ubuntu 24.04.3 LTS
Arch:         x86_64
Kernel:       6.8.0-88-generic
Hostname:     myserver
Environment:  kvm
Uptime:       4d, 0h, 1m
tmux:         3.4
glibc:        2.39
Java:         openjdk version "21.0.9" 2025-10-21

Server Resource
==============================================================================================
CPU
Model:      DO-Premium-Intel
Cores:      2
Frequency:  1999.997MHz
Avg Load:   0.27, 0.20, 0.11

Memory
Mem:       total  used   free   cached  available
Physical:  3.9GB  985MB  2.7GB  2.0GB   2.7GB
Swap:      0B     0B     0B

Storage
Filesystem:  /dev/vda1
Total:       116G
Used:        5.8G
Available:   110G

Network
IP:           REDACTED
Internet IP:  REDACTED

Minecraft Resource Usage
==============================================================================================
CPU Used:  0%
Mem Used:  0%  0MB

Storage
Total:        3.0G
Serverfiles:  751M
Backups:      2.3G

Minecraft Server Details
==============================================================================================
Server name:    REDACTED
Branch:         release
Server IP:      REDACTED
Internet IP:    REDACTED
Query enabled:  true
RCON password:  REDACTED
Maxplayers:     20
Game mode:      survival
Status:         STOPPED
Query Check:    REDACTED

mcserver Script Details
==============================================================================================
Script name:       mcserver
LinuxGSM version:  v25.2.0
Discord alert:     on
IFTTT alert:       off
Update on start:   off
User:              mcserver
Location:          /home/mcserver
Config file:       /home/mcserver/serverfiles/server.properties

Backups
==============================================================================================
No. of backups:  5
Latest backup:
    date:        Mon Dec  1 18:09:16 UTC 2025 (less than 1 day ago)
    file:        /home/mcserver/lgsm/backup/mcserver-2025-12-01-180904.tar.zst
    size:        585M

Command-line Parameters
==============================================================================================
java -Xmx3072M -jar ./fabric_server.jar nogui

Ports
==============================================================================================
Change ports by editing the parameters in:
/home/mcserver/serverfiles/server.properties

Useful port diagnostic command:
ss -tuplwn | grep java

DESCRIPTION  PORT   PROTOCOL  LISTEN
Game         REDACTED  tcp       1
Query        REDACTED  udp       1
RCON         REDACTED  tcp       0

Status: STOPPED

mcserver@myserver:~$ echo $TERM
xterm-ghostty




WITH xterm-256color

╭─ ~ ·························································· ✔  4m 48s  10:21:57 AM ─╮
╰─ export TERM=xterm-256color                                                              ─╯

╭─ ~ ··································································· ✔  10:22:09 AM ─╮
╰─ ssh root@myserver
Welcome to Ubuntu 24.04.3 LTS (GNU/Linux 6.8.0-88-generic x86_64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/pro

 System information as of Mon Dec  1 18:22:14 UTC 2025

  System load:  0.19               Processes:             118
  Usage of /:   5.0% of 115.20GB   Users logged in:       1
  Memory usage: 26%                IPv4 address for eth0: REDACTED
  Swap usage:   0%                 IPv4 address for eth0: REDACTED

Expanded Security Maintenance for Applications is not enabled.

33 updates can be applied immediately.
To see these additional updates run: apt list --upgradable

Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status


Last login: Mon Dec  1 18:17:12 2025 from REDACTED
root@myserver:~# su - mcserver
mcserver@myserver:~$ ./mcserver details

Distro Details
==============================================================================================
Date:         Mon Dec  1 18:22:56 UTC 2025
Distro:       Ubuntu 24.04.3 LTS
Arch:         x86_64
Kernel:       6.8.0-88-generic
Hostname:     myserver
Environment:  kvm
Uptime:       4d, 0h, 6m
tmux:         3.4
glibc:        2.39
Java:         openjdk version "21.0.9" 2025-10-21

Server Resource
==============================================================================================
CPU
Model:      DO-Premium-Intel
Cores:      2
Frequency:  1999.997MHz
Avg Load:   0.10, 0.14, 0.10

Memory
Mem:       total  used   free   cached  available
Physical:  3.9GB  995MB  2.7GB  2.0GB   2.7GB
Swap:      0B     0B     0B

Storage
Filesystem:  /dev/vda1
Total:       116G
Used:        5.8G
Available:   110G

Network       REDACTED
IP:           REDACTED

Internet IP:  REDACTED
Minecraft Resource Usage
==============================================================================================
CPU Used:  7.1%
Mem Used:  21%   823MB

Storage
Total:        3.0G
Serverfiles:  751M
Backups:      2.3G

Minecraft Server Details
==============================================================================================
Server name:    REDACTED
Branch:         release
Server IP:      REDACTED
Internet IP:    REDACTED
Query enabled:  true
RCON password:  REDACTED
Maxplayers:     20
Game mode:      survival
Status:         STARTED
Query Check:    REDACTED

mcserver Script Details
==============================================================================================
Script name:       mcserver
LinuxGSM version:  v25.2.0
Discord alert:     on
IFTTT alert:       off
Update on start:   off
User:              mcserver
Location:          /home/mcserver
Config file:       /home/mcserver/serverfiles/server.properties

Backups
==============================================================================================
No. of backups:  5
Latest backup:
    date:        Mon Dec  1 18:09:16 UTC 2025 (less than 1 day ago)
    file:        /home/mcserver/lgsm/backup/mcserver-2025-12-01-180904.tar.zst
    size:        585M

Command-line Parameters
==============================================================================================
java -Xmx3072M -jar ./fabric_server.jar nogui

Ports
==============================================================================================
Change ports by editing the parameters in:
/home/mcserver/serverfiles/server.properties

Useful port diagnostic command:
ss -tuplwn | grep java

DESCRIPTION  PORT   PROTOCOL  LISTEN
Game         REDACTED  tcp       1
Query        REDACTED  udp       1
RCON         REDACTED  tcp       0

Status: STARTED

mcserver@myserver:~$ echo $TERM
xterm-256color

Steps to reproduce

  1. Run a server (e.g a Minecraft server)
  2. Run TERM=xterm-kitty ./mcserver details and observe that the status says "STOPPED" even when the server is running
  3. Run TERM=xterm-kitty ./mcserver console to see the tmux error
Originally created by @silasjmatson on GitHub (Dec 1, 2025). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/4861 ### User story As a server manager, I want the details command to show when the server is running so that I am not misinformed ### Game Minecraft ### Linux distro Ubuntu 24.04 ### Command command: details ### Further information When connected to a server via ssh on a new terminal emulator (such as ghossty or kitty), calls to tmux will fail with 'unsupported terminal' errors. These errors are not surfaced by non-interactive scripts, e.g. `./mcserver details`, so they result in either silent failures or don't work at all. `./mcserver details` on my server shows 0% CPU, 0% Memory, and STOPPED for the server status when the server is actually running. This was because the tmux commands to get this info failed. I am able to manually resolve by running `infocmp -x xterm-kitty | ssh root@myserver -- tic -x -` **OR** by setting `TERM=xterm-256color` in my ssh config, but that shouldn't be necessary. ### Relevant log output ```shell ╭─ ~ ··································································· ✔  10:16:51 AM ─╮ ╰─ echo $TERM ─╯ xterm-ghostty ╭─ ~ ··································································· ✔  10:16:55 AM ─╮ ╰─ ssh root@myserver Welcome to Ubuntu 24.04.3 LTS (GNU/Linux 6.8.0-88-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/pro System information as of Mon Dec 1 18:17:11 UTC 2025 System load: 0.37 Processes: 125 Usage of /: 5.0% of 115.20GB Users logged in: 1 Memory usage: 26% IPv4 address for eth0: REDACTED Swap usage: 0% IPv4 address for eth0: REDACTED Expanded Security Maintenance for Aplications is not enabled. 33 updates can be applied immediately. To see these additional updates run: apt list --upgradable Enable ESM Apps to receive additional future security updates. See https://ubuntu.com/esm or run: sudo pro status Last login: Mon Dec 1 18:15:59 2025 from REDACTED root@myserver:~# su - mcserver mcserver@myserver:~$ ./mcserver details Distro Details ============================================================================================== Date: Mon Dec 1 18:17:30 UTC 2025 Distro: Ubuntu 24.04.3 LTS Arch: x86_64 Kernel: 6.8.0-88-generic Hostname: myserver Environment: kvm Uptime: 4d, 0h, 1m tmux: 3.4 glibc: 2.39 Java: openjdk version "21.0.9" 2025-10-21 Server Resource ============================================================================================== CPU Model: DO-Premium-Intel Cores: 2 Frequency: 1999.997MHz Avg Load: 0.27, 0.20, 0.11 Memory Mem: total used free cached available Physical: 3.9GB 985MB 2.7GB 2.0GB 2.7GB Swap: 0B 0B 0B Storage Filesystem: /dev/vda1 Total: 116G Used: 5.8G Available: 110G Network IP: REDACTED Internet IP: REDACTED Minecraft Resource Usage ============================================================================================== CPU Used: 0% Mem Used: 0% 0MB Storage Total: 3.0G Serverfiles: 751M Backups: 2.3G Minecraft Server Details ============================================================================================== Server name: REDACTED Branch: release Server IP: REDACTED Internet IP: REDACTED Query enabled: true RCON password: REDACTED Maxplayers: 20 Game mode: survival Status: STOPPED Query Check: REDACTED mcserver Script Details ============================================================================================== Script name: mcserver LinuxGSM version: v25.2.0 Discord alert: on IFTTT alert: off Update on start: off User: mcserver Location: /home/mcserver Config file: /home/mcserver/serverfiles/server.properties Backups ============================================================================================== No. of backups: 5 Latest backup: date: Mon Dec 1 18:09:16 UTC 2025 (less than 1 day ago) file: /home/mcserver/lgsm/backup/mcserver-2025-12-01-180904.tar.zst size: 585M Command-line Parameters ============================================================================================== java -Xmx3072M -jar ./fabric_server.jar nogui Ports ============================================================================================== Change ports by editing the parameters in: /home/mcserver/serverfiles/server.properties Useful port diagnostic command: ss -tuplwn | grep java DESCRIPTION PORT PROTOCOL LISTEN Game REDACTED tcp 1 Query REDACTED udp 1 RCON REDACTED tcp 0 Status: STOPPED mcserver@myserver:~$ echo $TERM xterm-ghostty WITH xterm-256color ╭─ ~ ·························································· ✔  4m 48s  10:21:57 AM ─╮ ╰─ export TERM=xterm-256color ─╯ ╭─ ~ ··································································· ✔  10:22:09 AM ─╮ ╰─ ssh root@myserver Welcome to Ubuntu 24.04.3 LTS (GNU/Linux 6.8.0-88-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/pro System information as of Mon Dec 1 18:22:14 UTC 2025 System load: 0.19 Processes: 118 Usage of /: 5.0% of 115.20GB Users logged in: 1 Memory usage: 26% IPv4 address for eth0: REDACTED Swap usage: 0% IPv4 address for eth0: REDACTED Expanded Security Maintenance for Applications is not enabled. 33 updates can be applied immediately. To see these additional updates run: apt list --upgradable Enable ESM Apps to receive additional future security updates. See https://ubuntu.com/esm or run: sudo pro status Last login: Mon Dec 1 18:17:12 2025 from REDACTED root@myserver:~# su - mcserver mcserver@myserver:~$ ./mcserver details Distro Details ============================================================================================== Date: Mon Dec 1 18:22:56 UTC 2025 Distro: Ubuntu 24.04.3 LTS Arch: x86_64 Kernel: 6.8.0-88-generic Hostname: myserver Environment: kvm Uptime: 4d, 0h, 6m tmux: 3.4 glibc: 2.39 Java: openjdk version "21.0.9" 2025-10-21 Server Resource ============================================================================================== CPU Model: DO-Premium-Intel Cores: 2 Frequency: 1999.997MHz Avg Load: 0.10, 0.14, 0.10 Memory Mem: total used free cached available Physical: 3.9GB 995MB 2.7GB 2.0GB 2.7GB Swap: 0B 0B 0B Storage Filesystem: /dev/vda1 Total: 116G Used: 5.8G Available: 110G Network REDACTED IP: REDACTED Internet IP: REDACTED Minecraft Resource Usage ============================================================================================== CPU Used: 7.1% Mem Used: 21% 823MB Storage Total: 3.0G Serverfiles: 751M Backups: 2.3G Minecraft Server Details ============================================================================================== Server name: REDACTED Branch: release Server IP: REDACTED Internet IP: REDACTED Query enabled: true RCON password: REDACTED Maxplayers: 20 Game mode: survival Status: STARTED Query Check: REDACTED mcserver Script Details ============================================================================================== Script name: mcserver LinuxGSM version: v25.2.0 Discord alert: on IFTTT alert: off Update on start: off User: mcserver Location: /home/mcserver Config file: /home/mcserver/serverfiles/server.properties Backups ============================================================================================== No. of backups: 5 Latest backup: date: Mon Dec 1 18:09:16 UTC 2025 (less than 1 day ago) file: /home/mcserver/lgsm/backup/mcserver-2025-12-01-180904.tar.zst size: 585M Command-line Parameters ============================================================================================== java -Xmx3072M -jar ./fabric_server.jar nogui Ports ============================================================================================== Change ports by editing the parameters in: /home/mcserver/serverfiles/server.properties Useful port diagnostic command: ss -tuplwn | grep java DESCRIPTION PORT PROTOCOL LISTEN Game REDACTED tcp 1 Query REDACTED udp 1 RCON REDACTED tcp 0 Status: STARTED mcserver@myserver:~$ echo $TERM xterm-256color ``` ### Steps to reproduce 1. Run a server (e.g a Minecraft server) 2. Run `TERM=xterm-kitty ./mcserver details` and observe that the status says "STOPPED" even when the server is running 3. Run `TERM=xterm-kitty ./mcserver console` to see the tmux error
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#3011
No description provided.