timvisee / lazymc

💤 Put your Minecraft server to rest when idle.
GNU General Public License v3.0
579 stars 16 forks source link

lazymc can't start papermc 1.20.4-350 #61

Closed bold-gman closed 6 months ago

bold-gman commented 9 months ago

I upgraded papermc from 1.20.2 (which was running perfectly fine) to 1.20.4 and now connecting via lazymc won't work.

The server is started correctly:

INFO lazymc > Proxying public 0.0.0.0:25565 to server 127.0.0.1:25566 INFO lazymc > Starting server... Starting org.bukkit.craftbukkit.Main System Info: Java 21 (OpenJDK 64-Bit Server VM 21.0.1+12-LTS) Host: Linux 5.15.0-91-generic (amd64) Loading libraries, please wait... [21:06:44 INFO]: Environment: Environment[sessionHost=https://sessionserver.mojang.com, servicesHost=https://api.minecraftservices.com, name=PROD] [21:06:47 INFO]: Loaded 1174 recipes [21:06:47 INFO]: Loaded 1275 advancements [21:06:48 INFO]: Starting minecraft server version 1.20.4 [21:06:48 INFO]: Loading properties [21:06:48 INFO]: This server is running Paper version git-Paper-350 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: 0d6a0c3) [21:06:49 INFO]: Server Ping Player Sample Count: 12 [21:06:49 INFO]: Using 4 threads for Netty based IO [21:06:50 WARN]: [!] The timings profiler has been enabled but has been scheduled for removal from Paper in the future. We recommend installing the spark profiler as a replacement: https://spark.lucko.me/ For more information please visit: https://github.com/PaperMC/Paper/issues/8948 [21:06:50 INFO]: [ChunkTaskScheduler] Chunk system is using 1 I/O threads, 1 worker threads, and gen parallelism of 1 threads [21:06:50 INFO]: Default game type: SURVIVAL [21:06:50 INFO]: Generating keypair [21:06:50 INFO]: Starting Minecraft server on 127.0.0.1:25566 [21:06:50 INFO]: Using epoll channel type [21:06:51 INFO]: Paper: Using libdeflate (Linux x86_64) compression from Velocity. [21:06:51 INFO]: Paper: Using OpenSSL 3.0.x (Linux x86_64) cipher from Velocity. [21:06:51 INFO]: [BlueMap] Loading server plugin BlueMap v3.20 [21:06:51 INFO]: [BKCommonLib] Loading server plugin BKCommonLib v1.20.4-v1 [21:06:55 WARN]: [org.bukkit.craftbukkit.v1_20_R3.legacy.CraftLegacy] Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug! [21:07:01 INFO]: [BlueMapDeathMarkers] Loading server plugin BlueMapDeathMarkers v1.3 [21:07:01 INFO]: [BlueMapOfflinePlayerMarkers] Loading server plugin BlueMapOfflinePlayerMarkers v2.9 [21:07:01 INFO]: [LightCleaner] Loading server plugin LightCleaner v1.19.3-v1 [21:07:01 INFO]: Server permissions file permissions.yml is empty, ignoring it [21:07:01 INFO]: [BKCommonLib] Enabling BKCommonLib v1.20.4-v1 [21:07:01 INFO]: [BKCommonLib] BKCommonLib is running on Paper (git-Paper-350) : v1_20_R3 (Minecraft 1.20.4) [21:07:01 INFO]: [BKCommonLib.Network] Now using a PlayerConnection hook to provide Packet Listener and Monitor support [21:07:02 INFO]: [BKCommonLib] If you need syntax help visit javadocs.a.b.v1_2_3.net [21:07:02 INFO]: [BKCommonLib] BKCommonLib version 1.20.4-v1 (build: 1663) enabled! (1.035s) [21:07:02 INFO]: Preparing level "karte2" [21:07:03 INFO]: Preparing start region for dimension minecraft:overworld [21:07:03 INFO]: Time elapsed: 297 ms [21:07:03 INFO]: Preparing start region for dimension minecraft:the_nether 21:07:04 INFO: Time elapsed: 221 ms 21:07:04 INFO: Preparing start region for dimension minecraft:the_end 21:07:04 INFO: Time elapsed: 98 ms 21:07:04 INFO: [BlueMap] Enabling BlueMap v3.20 21:07:04 INFO: [BlueMap] Loading... 21:07:04 INFO: [BlueMapDeathMarkers] Enabling BlueMapDeathMarkers v1.3 21:07:04 INFO: [BlueMapOfflinePlayerMarkers] Enabling BlueMapOfflinePlayerMarkers v2.9 21:07:04 INFO: [LightCleaner] Enabling LightCleaner v1.19.3-v1 21:07:04 INFO: [LightCleaner] LightCleaner version 1.19.3-v1 (build: 149) enabled! (0.136s) 21:07:04 INFO: Running delayed init tasks

21:07:04 INFO: Timings Reset 21:07:04 INFO: [BlueMap] Loading resources... [21:07:07 INFO]: [BlueMap] Loading textures... [21:07:11 INFO]: [BlueMap] Baking resources... [21:07:12 INFO]: [BlueMap] Resources loaded. [21:07:12 INFO]: [BlueMap] Loading world '0f9a898d-f766-4b7d-9e3e-24e913327c16' (/opt/papermc/karte2_the_end/DIM1)... [21:07:12 INFO]: [BlueMap] Initializing Storage: 'file' (Type: FILE) [21:07:12 INFO]: [BlueMap] Loading map 'karte2_the_end'... [21:07:12 INFO]: [BlueMap] Loading world '3e0d4c00-400b-4688-8ab6-04d7a18d9177' (/opt/papermc/karte2_nether/DIM-1)... [21:07:12 INFO]: [BlueMap] Loading map 'karte2_nether'... [21:07:12 INFO]: [BlueMap] Loading world 'c6384456-bbcb-47f1-b2c6-25abcc9a4ecc' (/opt/papermc/karte2)... [21:07:12 INFO]: [BlueMap] Loading map 'karte2'... [21:07:12 INFO]: [BlueMap] WebServer bound to all network interfaces on port 8100 [21:07:12 INFO]: [BlueMap] WebServer started. [21:07:13 INFO]: [BlueMapDeathMarkers] BlueMapDeathMarkers has been enabled! [21:07:13 INFO]: [BlueMapOfflinePlayerMarkers] API Ready! BlueMap Offline Player Markers plugin enabled! [21:07:13 INFO]: [BlueMap] Loaded!

At this stage, the process is running, but the client is stuck with "Server is starting". To me, it looks as if lazymc does not recognise that the server is running. After reaching the start_timeout, lazymc tries to kill the server, but fails:

WARN lazymc > Held client reached timeout of 25s ERROR lazymc::montior > Force killing server, took too long to start or stop WARN lazymc > Server process stopped with error code (signal: 9 (SIGKILL)) ERROR lazymc::montior > Force killing server, took too long to start or stop WARN lazymc > Failed to force kill server INFO lazymc::monitor > Server is now sleeping ERROR lazymc::probe > Server stopped while trying to probe, skipping WARN lazymc::probe > Couldn't probe server, failed to wait for server to come online ERROR lazymc::probe > Failed to probe server, this may limit lazymc features

When I run the startup command manually, I can connect as intended.

bold-gman commented 9 months ago

This is basically the same issue as #57, just with papermc instead of vanilla servers.

timvisee commented 6 months ago

I've just released lazymc 0.2.11 which support Minecraft 1.20.3 and up. It should also support this PaperMC version.

Please feel free to open this issue again if issues persist with this new version.