mcsleepingserverstarter icon indicating copy to clipboard operation
mcsleepingserverstarter copied to clipboard

Get "Invalid Signature" When using this with Paper 1.19.2

Open DebugDax opened this issue 3 years ago • 1 comments

Hello,

I use paper-1.19.2 and my server runs fine when started normally. When I use this tool (in the same folder as the server JAR), I can see the server sleeping in server list in-game, but when I join, it throws an "Invalid Signature for profile public key".

This only happens when using your utility and trying to join the sleeping server to wake it up. If I just join my server normally this error does not appear. I have restarted my client as the error displays and it does not resolve when using the sleeping starter.

Via various searching online I saw that changing "enforce-secure-profile=false" in server.properties, but that did not resolve this issue.

sleepingSettings.yml

serverName: Frozen Comet, waiting to thaw...

serverPort: 25565

bedrockPort:

maxPlayers: 5

loginMessage: ...Heating up the Comet, Check back in a minute...

serverOnlineMode: true

webPort: 0

webStopOnStart: false

startMinecraft: true

minecraftCommand: java -Xms6G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper-1.19.2-213.jar --nogui

--

Console message when trying to wake up server on join: image

in-game message: image

DebugDax avatar Oct 20 '22 17:10 DebugDax

Hi ! Thanks for the well documented issue. Unfortunately the library on which this app is based is not yet compatible with MC 1.19.2 : https://github.com/PrismarineJS/node-minecraft-protocol https://github.com/vincss/mcsleepingserverstarter/issues/119

vincss avatar Oct 21 '22 05:10 vincss

With this error we should be able to trigger the wake for the server right? Sure the error is ugly but the script is detecting player activity.

Rysanlos avatar Nov 21 '22 21:11 Rysanlos

Unfortunately, it's an internal error in the minecraft-protocol library, and don't have any notifications or events for this one. :(

vincss avatar Nov 22 '22 09:11 vincss

Unfortunately, it's an internal error in the minecraft-protocol library, and don't have any notifications or events for this one. :(

On the latest Release 1.36.2 that came out today, they added ''Throw error on minecraft-data protocol version mismatch'' This could do the trick?

Rysanlos avatar Nov 29 '22 06:11 Rysanlos

Hi ! Support for 1.19.2 is out (no 1.19.3 yet) : https://github.com/vincss/mcsleepingserverstarter/releases/tag/v1.2.4

vincss avatar Jan 15 '23 07:01 vincss

Attempting to run v1.2.4 and I'm getting a syntax error after running npm start. Not sure if this should be a separate issue thread... syntaxerror

alt162 avatar Jan 16 '23 21:01 alt162

Did you do a 'npm ci' before running start ? Otherwise, you can always use the binary, it's easier.

vincss avatar Jan 16 '23 22:01 vincss

Ran the binary without issue. A bit new to this. Thanks for this tool!

alt162 avatar Jan 17 '23 16:01 alt162