[Bug]: server status always STOPPED if connected via ssh with ghostty or kitty terminal emulators
Los mantenedores suelen responder en 1 día
Ya se ha fusionado un pull request relacionado.
- #4860 de @silasjmatson — fusionado
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- bash, linux, shell
- Área
- cli, operating-systems
Línea de trabajo
Empieza reproduciendo el problema con TERM=xterm-kitty ./mcserver details y ./mcserver console; después, sigue las llamadas a tmux que utiliza el comando details. La tarea estará terminada cuando los fallos de tmux de Ghostty o Kitty ya no hagan que un servidor en ejecución aparezca como STOPPED, mientras la salida de estado existente siga siendo correcta.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Run a server (e.g a Minecraft server)
- Run
TERM=xterm-kitty ./mcserver detailsand observe that the status says "STOPPED" even when the server is running - Run
TERM=xterm-kitty ./mcserver consoleto see the tmux error
- Lenguaje dominante
- Shell
- Estrellas
- 4.9k
- Forks
- 871
- Merge medio
- 1 d 7 h
- PR fusionados (30 d)
- 133
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de GameServerManagers/LinuxGSM
-
[Bug]: csserver metamod fails to load amxmodx after ubuntu 26.04 base imagePosiblemente ocupada @dgibbs64 la tomó hace 2 días. Abiertocommand: mods command: start distro: Ubuntu regression: yes reproducible: always severity: medium status: fixed in develop type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
GameServerManagers/LinuxGSM#5114 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Bug]: cs2server ignores the GSLT entered during installPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertocommand: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
GameServerManagers/LinuxGSM#5106 ·
Los mantenedores suelen responder en 1 día
-
command: install command: update distro: Ubuntu engine: quake game: Quake World priority: low scope: single game type: feature
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
GameServerManagers/LinuxGSM#5143 ·
Los mantenedores suelen responder en 1 día
-
command: monitor command: start distro: Ubuntu engine: goldsrc game: Counter-Strike: WON2 game: Half-Life: WON2 info: docker info: query reproducible: always severity: medium type: bug
Dificultad 4/5 Más de una semana Aptitud para principiantes 18/100
GameServerManagers/LinuxGSM#5142 ·
Los mantenedores suelen responder en 1 día
-
command: monitor command: start distro: Ubuntu engine: goldsrc game: Action Half-Life reproducible: always severity: medium type: bug
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
GameServerManagers/LinuxGSM#5141 ·
Los mantenedores suelen responder en 1 día
Todos los issues de GameServerManagers/LinuxGSM
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
openSUSE/rpm-config-SUSE#98 ·
-
Update llmfit to 1.1.20Abiertopackage-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
ISKME/Open-Metadata-Exchange#425 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
suitenumerique/find#205 ·
Los mantenedores suelen responder en 2 días