Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Incompatible vanilla server" seen in client when running Forge server #135

Open
sonium-labs opened this issue Oct 24, 2024 · 4 comments
Open
Labels
bug Something isn't working

Comments

@sonium-labs
Copy link

sonium-labs commented Oct 24, 2024

Hello!

I have the following Docker compose:

networks:
    minecraft-network:
      driver: bridge
      ipam:
        config:
          - subnet: 172.18.0.0/16

services:
    lazymc:
        container_name: lazymc
        image: ghcr.io/joesturge/lazymc-docker-proxy:latest
        networks:
            minecraft-network:
                ipv4_address: 172.18.0.2
        environment:
            # Point to the service name of the Minecraft server
            SERVER_ADDRESS: minecraft:25565
            # Required to find the container to manage it
            LAZYMC_GROUP: minecraft
        restart: unless-stopped
        volumes:
            # you should mount the minecraft server dir under /server, using read only.
            - /home/user/minecraft-server/data:/server:ro
            # you need to supply the docker socket, so that the container can run docker command
            - /var/run/docker.sock:/var/run/docker.sock:ro
        ports:
            # lazymc-docker-proxy acts as a proxy, so there is
            # no need to expose the server port on the Minecraft container
            - "25565:25565"

    minecraft:
        container_name: minecraft
        image: itzg/minecraft-server:latest
        networks:
            minecraft-network:
                ipv4_address: 172.18.0.3
        labels:
            # Set lazymc.enabled to true to enable lazymc on this container
            - lazymc.enabled=true
            # Required to find the container to manage it
            - lazymc.group=minecraft
            # Point to the service name of the Minecraft server
            - lazymc.server.address=minecraft:25565
            # The minecraft client version of the forge server
            - lazymc.public.version=1.20.1
            # The minecraft protocol version of the forge server
            - lazymc.public.protocol=763
            # Set to true on a forge server
            - lazymc.server.forge=true
        hostname: minecraft
        tty: true
        stdin_open: true
        restart: no
        # ports:
        # - "25565:25565"
        environment:
            EULA: TRUE
            REMOVE_OLD_MODS: true
            TYPE: FORGE
            MAX_PLAYERS: 12
            DIFFICULTY: normal
            OVERRIDE_ICON: TRUE
            VERSION: 1.20.1
            INIT_MEMORY: 20G
            MAX_MEMORY: 20G
            # When using dynamic-view, distance settings are not needed
            VIEW_DISTANCE: 16
            SIMULATION_DISTANCE: 10
            SNOOPER_ENABLED: false
            CF_API_KEY: ${CF_API_KEY}
            CURSEFORGE_FILES: |
                <modlist_here>

        volumes:
        - /home/user/minecraft-server/data:/data

Starting up the proxy, I see the following in Minecraft [Forge]
image

Still works, but wanted to log this bug, or otherwise discover where I went wrong in my config!

@sonium-labs sonium-labs changed the title "incompatible vanilla server "Incompatible vanilla server" seen in client when running Forge server Oct 24, 2024
@joesturge
Copy link
Owner

Hi thanks for logging this issue! your configuration looks correct from what I can see, what version of minecraft client are you using?

@sonium-labs
Copy link
Author

Hi Joe,

Thanks for the response and for making such a useful tool! Been great to save on some compute resources.

I'm rocking the following Forge client:
image

@FurkanVG
Copy link

Simliar issue on Vanilla, aka on latest Paper Version 1.21.1. My MC Server without proxy has no incompatible issue and it looks like this:
image

But if i use this lazymc docker proxy, its showing an "error" that the version is incompatible:

image

This is ONLY the case if the minecraft server is offline. Once its online this error doesnt exist anymore.

@joesturge
Copy link
Owner

I think it may have something to do with this property: https://github.com/timvisee/lazymc/blob/master/res/lazymc.toml#L48
I think i disable that by default, enabling it may sort this out but it might also force the server to wake_on_start which could cause other issues, only one way to find out...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants