truecharts / public

Community Helm Chart Repository
https://truecharts.org
GNU Affero General Public License v3.0
1.16k stars 616 forks source link

[minecraft-java] MC Backup Pause If No Players option is not working #20831

Closed craftycorvid closed 6 months ago

craftycorvid commented 7 months ago

chart Name

minecraft-java

Operating System

TrueNAS SCALE 23.10.2

Deployment Method

TrueNAS SCALE charts

Chart Version

8.8.4

Kubernetes Events

N/A

chartlication Logs

2024-04-14 17:02:05.755159-07:002024-04-14T17:02:05-0700 INFO waiting initial delay of 2m...
2024-04-14 17:04:05.758581-07:002024-04-14T17:04:05-0700 INFO waiting for rcon readiness...
2024-04-14 17:04:05.767073-07:002024-04-14T17:04:05-0700 INFO Command executed successfully rcon-cli save-on
2024-04-14 17:04:05.773742-07:002024-04-14T17:04:05-0700 INFO Command executed successfully rcon-cli save-off
2024-04-14 17:04:06.080839-07:002024-04-14T17:04:06-0700 INFO Command executed successfully rcon-cli save-all flush
2024-04-14 17:04:08.536065-07:002024-04-14T17:04:08-0700 INFO Command executed successfully sync
2024-04-14 17:04:08.539831-07:002024-04-14T17:04:08-0700 INFO Backing up content in /data to /backups/world-20240414-170408.tar.zst
2024-04-14 17:06:46.585412-07:002024-04-14T17:06:46-0700 INFO Command executed successfully rcon-cli save-on
2024-04-14 17:06:46.596883-07:002024-04-14T17:06:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:11:46.598491-07:002024-04-14T17:11:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:16:46.605609-07:002024-04-14T17:16:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:21:46.611803-07:002024-04-14T17:21:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:26:46.618329-07:002024-04-14T17:26:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:31:46.624012-07:002024-04-14T17:31:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:36:46.630425-07:002024-04-14T17:36:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:41:46.636655-07:002024-04-14T17:41:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:46:46.643469-07:002024-04-14T17:46:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:51:46.650681-07:002024-04-14T17:51:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 17:56:46.657467-07:002024-04-14T17:56:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 18:01:46.664715-07:002024-04-14T18:01:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 18:06:46.671183-07:002024-04-14T18:06:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 18:11:46.677366-07:002024-04-14T18:11:46-0700 ERROR Error querying the server, waiting 5m...
2024-04-14 18:16:46.685229-07:002024-04-14T18:16:46-0700 ERROR Error querying the server, waiting 5m...

Chart Configuration

image

Describe the bug

MC Backup fails to make further backups after the first because the player online check fails.

To Reproduce

  1. Create a minecraft-java instance
  2. Enable MC Backup and Pause If No Players
  3. Wait for the first backup to finish and the player check to start

Expected Behavior

Player online check should work, and more backups should be created after initial one if players are detected.

Screenshots

N/A

Additional Context

MC Backup runs this command to check for online players: mc-monitor status --host "${RCON_HOST}" --port "${SERVER_PORT}" --show-player-count)

The issue is that RCON_HOST is set to minecraft-java-rcon, which makes mc-monitor unable to connect to the minecraft server that is reachable at minecraft-java.

I've read and agree with the following

truecharts-admin commented 1 month ago

This issue is locked to prevent necro-posting on closed issues. Please create a new issue or contact staff on discord of the problem persists