panel icon indicating copy to clipboard operation
panel copied to clipboard

Container adding extra symbols to MOTD server.properties on server start

Open lpjn opened this issue 6 years ago • 17 comments

Server version: 1.16.1 Paper (git-Paper-117) Pterodactyl version: 1.0.0-beta.4 (upgraded to 1.0.0-beta.6, issue still prevalent) Wings version: 1.0.0-beta.5

Server offline, MOTD set as "motd=\u00A76BBQ - [Main]"

Server started, MOTD switches to "motd=§6BBQ - [Main]" briefly (this is fine, symbol is valid) and then "\u00C2\u00A76BBQ - [Main]" when fully started. It is possible the forced conversion of the MOTD is interpreting § as \u00C2 - which is causing the phantom A character to appear. This issue is not prevalent on the main build of pterodactyl, or when run locally on my desktop. No variables have been setup to modify the MOTD.

Produces the following results in the client: image

lpjn avatar Jul 28 '20 05:07 lpjn

My workarround is to remove all "Configuration Files" variables from the egg.

The huge drawback is, it wont apply those variables anymore upon startup, for example setting the correct port.

Oberfail avatar Jul 28 '20 05:07 Oberfail

My workarround is to remove all "Configuration Files" variables from the egg.

The huge drawback is, it wont apply those variables anymore upon startup, for example setting the correct port.

Correct, removing all JSON reference of the server properties fixes it, with the obvious drawbacks.

lpjn avatar Jul 28 '20 06:07 lpjn

You should also update your beta versions. You are quite far behind and a new version night fix that.

parkervcp avatar Jul 28 '20 10:07 parkervcp

Hey Parker! Thanks for the suggestion. I just upgraded and sadly see the issue still using paper & vanilla minecraft eggs.

lpjn avatar Jul 28 '20 13:07 lpjn

Indeed the issue still occurs on panel 1.0.0-beta.6 with wings v1.0.0 Beta Release 8.

Yendric avatar Jul 28 '20 15:07 Yendric

Can you please attach a configuration file that gets messed up by the parser so I can test against it?

edit: Sorry just realized you included the line in the main report. 🤦

DaneEveritt avatar Jul 28 '20 15:07 DaneEveritt

Indeed the issue still occurs on panel 1.0.0-beta.6 with wings v1.0.0 Beta Release 8.

Yep. happens here too. Its confirmed to be a known issue now I guess.

ghost avatar Jul 30 '20 20:07 ghost

After further digging, this is not a bug in Pterodactyl. Even completely disabling the parser still results in the file being modified like that.

And digging into the parser even more, it was working correctly and saving the file as expected but then the server process would trigger a change to that MOTD.

DaneEveritt avatar Aug 07 '20 04:08 DaneEveritt

Thanks @DaneEveritt , however I'm a bit puzzled here.

Any JSON configuration to the server properties file causes the MOTD issue from past experience. Removing all of said configuration fixes it. This has been reported by various people who are using the same workaround. Are we missing something?

lpjn avatar Aug 07 '20 09:08 lpjn

Personally, I think the issue might be occuring due to the java version used in the containers and how it reads the § symbol in the properties file. It could be possible to re-create this issue outside of a container if the correct java version is installed.

I might be completely wrong, if I am, please correct me.

ghost avatar Aug 07 '20 10:08 ghost

Off the back of that though, why is § potentially being used even when it is not specified in the properties, but rather the actual MOTD codes as highlighted in the top post?

This would avoid any potential errors that could be caused by utilising that symbol.

lpjn avatar Aug 07 '20 10:08 lpjn

It could also be that the § symbol is the same as the motd code, but is being read incorrectly, it tries to fix it, and just makes it worse. There's a lot of things possible that might not even be related to wings itself, just the java version or incorrect code in the jar file itself.

ghost avatar Aug 07 '20 10:08 ghost

I think this is getting slightly side tracked. The base issue is that the same MC server using the same java version works on a local machine using the same MOTD code which pterodactyl proceeds to display incorrectly in the server browser with the properties JSON configuration populated. If this is not a bug with pterodactyl, then what can users do to help fix this without outright removing the JSON?

lpjn avatar Aug 07 '20 10:08 lpjn

The easiest way right now to avoid the issue for now is to use a MOTD plugin like ServerListPlus or something else.

ghost avatar Aug 07 '20 10:08 ghost

Thanks @DaneEveritt , however I'm a bit puzzled here.

Any JSON configuration to the server properties file causes the MOTD issue from past experience. Removing all of said configuration fixes it. This has been reported by various people who are using the same workaround. Are we missing something?

I agree with Ipjn. Even if Pterodactyl is not the issue here, would you be able to point people in the direction you think could be causing the problem?

kiweezi avatar Aug 07 '20 11:08 kiweezi

I don't play Minecraft, so I don't know.

All I can tell you is that I completely disabled configuration file edits and it still happened once the process was running, so it's out of my control.

DaneEveritt avatar Aug 07 '20 14:08 DaneEveritt

closed by https://github.com/pterodactyl/wings/pull/56

DaneEveritt avatar Sep 07 '20 22:09 DaneEveritt