Giter VIP home page Giter VIP logo

Comments (10)

itzg avatar itzg commented on June 16, 2024

I'll have to investigate that further, but for the time being you can disable the health check as described here

https://github.com/compose-spec/compose-spec/blob/master/spec.md#healthcheck

from docker-bungeecord.

itzg avatar itzg commented on June 16, 2024

So far I haven't able to recreate this issue. Using this compose file

https://github.com/itzg/docker-bungeecord/blob/master/docs/docker-compose-waterfall.yml

I see the health reported as

{
  "Status": "healthy",
  "FailingStreak": 0,
  "Log": [
    {
      "Start": "2021-01-08T02:10:40.5938785Z",
      "End": "2021-01-08T02:10:41.5267142Z",
      "ExitCode": 0,
      "Output": "localhost:25577 : version=Waterfall 1.8.x, 1.9.x, 1.10.x, 1.11.x, 1.12.x, 1.13.x, 1.14.x, 1.15.x, 1.16.x online=0 max=1 motd=''"
    }
  ]
}

May also want to compare with the config I'm using:

https://github.com/itzg/docker-bungeecord/blob/master/docs/config.yml

from docker-bungeecord.

Janilom avatar Janilom commented on June 16, 2024

It may be a plugin causing it. I had started adding them when the issue started, I'll remove them and test it without.

I'm not sure if I can ask some other questions here or if I should stay on the original topic but I'm working with dynmap plugin and I would like to add it to a MySQL db by just having the info in my compose file but I am having trouble getting the plugin to connect to the DB. The plugin is in one of the worlds that is setup in the bungeecord compose file.

db:
environment:
- MYSQL_USER=minecraft
- MYSQL_ROOT_PASSWORD=password
- MYSQL_PASSWORD=password
- MYSQL_DATABASE=MCdb

bungeecord
- DB_USER=minecraft
- DB_HOST=localhost:3365
- DB_PORT=3365
- DB_NAME=MCdb
- DB_PASSWORD=password

plugin config
type: mysql
hostname: localhost
port: 3365
database: MCdb
userid: minecraft
password: password

from docker-bungeecord.

itzg avatar itzg commented on June 16, 2024

Feel free to post here if you identify which plugin it is, since that'll help others that come across this issue.

As for the other question: change "localhost" in the DB_HOST to point at your "db" service by using "db:3365". localhost/127.0.0.1 within a container is namespaced to only be useful within the container (or pods in kubernetes).

from docker-bungeecord.

Janilom avatar Janilom commented on June 16, 2024

Okay I have compose files configured properly. Do the config files in the plugins need to point to the same compose information or should they have the default localhost:3306 and just add the userid/password?

from docker-bungeecord.

itzg avatar itzg commented on June 16, 2024

They all need to be changed since "db" is the hostname of your MySQL container. In Docker you pretty much want to treat "localhost" as being useless.

The rcon tool I provide is a notable exception since it hits the Minecraft server at localhost since you exec it within the container and therefore within same networking namespace.

from docker-bungeecord.

Janilom avatar Janilom commented on June 16, 2024

The plugin that was causing the issue was AdvancedNMotd. I noticed that the player count was not showing properly on the Minecraft server selection screen so I checked their documentation to see what the issue was.

The solution was to open the AdvancedNMotd plugin config.yml and change the "Version: true" to false.

As for my database issue, I am able to use the db for permissions with LuckPerms without changing anything else. I cannot however get dynmap or other plugins that have their own configuration files to use the database. Not sure what I am doing wrong but they just won't connect to it.

from docker-bungeecord.

itzg avatar itzg commented on June 16, 2024

As for my database issue, I am able to use the db for permissions with LuckPerms without changing anything else. I cannot however get dynmap or other plugins that have their own configuration files to use the database. Not sure what I am doing wrong but they just won't connect to it.

What logs, if any, do they provide when failing to connect?

from docker-bungeecord.

github-actions avatar github-actions commented on June 16, 2024

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

from docker-bungeecord.

SinanAkkoyun avatar SinanAkkoyun commented on June 16, 2024

Hi, I encounter the same issue.
Failure count of 1457 after an uptime of 12h. I host a server with around 50 players
This is the error it shows:
failed to ping localhost:25577 : could not connect to Minecraft server: dial tcp 127.0.0.1:25577: connect: connection refused

# Proxy
  mc-proxy:
    image: itzg/bungeecord
    ports:
      - 25565:25577
    restart: always
    tty: true
    stdin_open: true
    environment:
      TYPE: WATERFALL
      MEMORY: "2G"
      MAX_MEMORY: "8G"
      REPLACE_ENV_VARIABLES: "TRUE"
      ENV_VARIABLE_PREFIX: "CFG_"
      CFG_DB_HOST: "db-proxy"
      CFG_DB_NAME: "proxy"
      CFG_DB_USERNAME: "proxy"
      CFG_DB_PASSWORD: "${DB_PROXY_PASSWORD}"
    volumes:
      - "${MINECRAFT_PATH}/proxy/server:/server"

Does this health check refer to pinging the external port forward? Because it pings localhost:25577 and not mc-proxy:25577, it shall ultimately ping localhost:25565 or mc-proxy:25577

from docker-bungeecord.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.