CloudNetService / CloudNet

A modern application that can dynamically and easily deliver Minecraft oriented software
https://cloudnetservice.eu
Apache License 2.0
369 stars 115 forks source link

Server doesn't start automatically, even tho minServiceCount is 1 #1386

Closed ChickenSkyOfficial closed 3 months ago

ChickenSkyOfficial commented 3 months ago

Stacktrace

Paste your paste link or the raw stack trace here. DO NOT REMOVE THE BACKTICKS!

Actions to reproduce

I have a Minecraft Network and on it are various Servers (statics and templates). Now I've set the minServiceCount for each to 1, but only 3 out of 5 Servers automatically start (excluding the Proxy), there is also nothing shown about it in the console and there's enough RAM. I've tried changing the config.yml for the templates/statics, the config.yml for CloudNet and the group configs. I've tried adding another node, which also doesn't work.

CloudNet version

[10.04 14:27:37.696] INFORMATION: [10.04 14:27:37.697] INFORMATION: CloudNet Blizzard 4.0.0-RC11-SNAPSHOT 94ca88dd [10.04 14:27:37.697] INFORMATION: Discord: https://discord.cloudnetservice.eu/ [10.04 14:27:37.699] INFORMATION: [10.04 14:27:37.699] INFORMATION: ClusterId: 9903e1da--4c0f--1f486c1e9377 [10.04 14:27:37.700] INFORMATION: NodeId: Node-1 [10.04 14:27:37.701] INFORMATION: Head-NodeId: Node-1 [10.04 14:27:37.701] INFORMATION: CPU usage: (P/S) .4/9.64/100% [10.04 14:27:37.701] INFORMATION: Node services memory allocation (U/R/M): 5376/5376/24000 MB [10.04 14:27:37.702] INFORMATION: Threads: 47 [10.04 14:27:37.702] INFORMATION: Heap usage: 58/256MB [10.04 14:27:37.702] INFORMATION: JVM: Debian 17 (OpenJDK 64-Bit Server VM 17.0.9+9-Debian-1deb11u1) [10.04 14:27:37.703] INFORMATION: Update Repo: CloudNetService/launchermeta, Update Branch: nightly [10.04 14:27:37.703] INFORMATION:

Other

No response

Issue uniqueness

0utplay commented 3 months ago

Please provide the output of ser list and the output of tasks task <one of the tasks>

ChickenSkyOfficial commented 3 months ago

ser list -> [10.04 17:19:42.666] INFORMATION: | Name | Lifecycle | Address | Node | State [10.04 17:19:42.666] INFORMATION: —————————————————————————————————————————————————————— [10.04 17:19:42.666] INFORMATION: | Lobby-1 | RUNNING | 127.0.0.1:44955 | Node-1 | Connected [10.04 17:19:42.667] INFORMATION: | Proxy-1 | RUNNING | 45.132.88.35:25565 | Node-1 | Connected [10.04 17:19:42.667] INFORMATION: | QSG-1 | RUNNING | 127.0.0.1:44957 | Node-1 | Connected [10.04 17:19:42.667] INFORMATION: | SWFFA-1 | RUNNING | 127.0.0.1:44956 | Node-1 | Connected [10.04 17:19:42.667] INFORMATION: => Showing 4 service(s)

tasks task BWFFA -> [10.04 17:20:19.985] INFORMATION: Name: BWFFA [10.04 17:20:19.995] INFORMATION: Runtime: jvm [10.04 17:20:19.996] INFORMATION: Host address: 127.0.0.1 [10.04 17:20:19.997] INFORMATION: Splitter: - [10.04 17:20:19.998] INFORMATION: Groups: [BWFFA] [10.04 17:20:19.999] INFORMATION: Max heap memory: 1024 [10.04 17:20:19.999] INFORMATION: Maintenance: true [10.04 17:20:20.000] INFORMATION: Nodes:[Node-1, Node-2] [10.04 17:20:20.019] INFORMATION: Minimal Services: 1 [10.04 17:20:20.020] INFORMATION: Java Command: java [10.04 17:20:20.021] INFORMATION: Start Port: 44955 [10.04 17:20:20.022] INFORMATION: Static services: true [10.04 17:20:20.023] INFORMATION: Auto delete on stop: true [10.04 17:20:20.024] INFORMATION: Deleted files after stop: [] [10.04 17:20:20.025] INFORMATION: Environment: MINECRAFT_SERVER [10.04 17:20:20.027] INFORMATION: [10.04 17:20:20.028] INFORMATION: Includes: [10.04 17:20:20.029] INFORMATION: [10.04 17:20:20.038] INFORMATION: Templates: [10.04 17:20:20.039] INFORMATION: - local:BWFFA/default [10.04 17:20:20.040] INFORMATION: [10.04 17:20:20.040] INFORMATION: Deployments: [10.04 17:20:20.042] INFORMATION: [10.04 17:20:20.050] INFORMATION: JVM Options: [10.04 17:20:20.052] INFORMATION: [10.04 17:20:20.053] INFORMATION: Process Parameters: [10.04 17:20:20.053] INFORMATION: [10.04 17:20:20.054] INFORMATION: Properties: [10.04 17:20:20.058] INFORMATION: { [10.04 17:20:20.059] INFORMATION: "requiredPermission": null [10.04 17:20:20.059] INFORMATION: } [10.04 17:20:20.061] INFORMATION:

0utplay commented 3 months ago

The minServiceCount is ignored for tasks that have maintenance enabled. Thats why they are not starting.