pterodactyl / panel

Pterodactyl® is a free, open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
https://pterodactyl.io
Other
6.31k stars 1.55k forks source link

Redundant greater-than sign (u003e) in console output #2862

Closed Orhideous closed 3 years ago

Orhideous commented 3 years ago

Background:

Describe the bug When I start the Minecraft server all new lines are interspersed with the symbol >. Screenshot_20201212_145724 It is not seen in latest.log. It is also absent when launching the process from the console. Screenshot_20201212_150410 Interestingly, when refreshing the page old lines in the log are displayed correctly - extra symbol > is displayed only after the new ones: Screenshot_20201212_145820

The problem doesn't seem to be with the panel — it just renders what comes from the wings side. I looked inside the websocket channel and saw messages like

{"event":"console output","args":["\u003e"]}
parkervcp commented 3 years ago

Which minecraft egg is this? This is a java issue so far as I know and it's likely the dline terminal bug again, or something similar.

Orhideous commented 3 years ago

@parkervcp Custom minecraft egg and docker image, JRE based on bellsoft/liberica-openjdk-debian:8u275-1

Egg bootstrap script
# SpongeForge Installation Script
#
# Server Files: /mnt/server
cd /mnt/server
mkdir logs mods
echo -e "\nDownloading Forge Version $FORGE_VERSION\n"
wget -q http://files.minecraftforge.net/maven/net/minecraftforge/forge/$FORGE_VERSION/forge-$FORGE_VERSION-installer.jar -O installer.jar
echo -e "\nInstalling forge server usint the installer jar file.\n"
java -jar installer.jar --installServer
echo -e "\nDownloading SpongeForge Version $SPONGE_FORGE_VERSION\n"
wget -q https://repo.spongepowered.org/maven/org/spongepowered/spongeforge/$SPONGE_FORGE_VERSION/spongeforge-$SPONGE_FORGE_VERSION.jar -O mods/spongeforge-$SPONGE_FORGE_VERSION.jar
echo -e "\nRename server jar to desired name\n"
mv forge-$FORGE_VERSION-universal.jar $SERVER_JARFILE
echo -e "\nDeleting installer jar file and logs.\n"
rm -rf installer.jar installer.jar.log
Image with JRE runtime
FROM        bellsoft/liberica-openjdk-debian:8u275-1
LABEL       author="Andriy Kushnir (Orhideous)" maintainer="me@orhideous.name"
RUN apt-get update -y \
 && apt-get install -y curl ca-certificates openssl git tar sqlite fontconfig tzdata iproute2 \
 && rm -rf /var/lib/apt/lists/* \
 && useradd -d /home/container -m container
USER        container
ENV         USER=container HOME=/home/container
WORKDIR     /home/container
COPY        ./entrypoint.sh /entrypoint.sh
CMD         ["/bin/bash", "/entrypoint.sh"]

If similar problems have occurred before, please advise where to read about their troubleshooting and/or debugging? P.S. I found only https://github.com/pterodactyl/panel/issues/1651, but no commit with fix.

Orhideous commented 3 years ago

As suggested in https://github.com/pterodactyl/panel/issues/2597#issuecomment-716207801, adding -Dterminal.jline=false fixes this problem, but the colors in the console disappear.

matthewpi commented 3 years ago

As suggested in #2597 (comment), adding -Dterminal.jline=false fixes this problem, but the colors in the console disappear.

Try -Dterminal.jline=false -Dterminal.ansi=true

Orhideous commented 3 years ago

It works. Thanks!