Velocity proxy incompatible client
I'm using itzg-minecraft-server. In a previous version, I used the env var
I'm assuming it's because the creator of the docker image recently changed the way that works, so I tried to change my docker-compose, but I'm still seeing the same error.
TYPE: VELOCITY and configured everything from there. That recently failed giving me the error:
Failed to connect to the server
Incompatible client! Please use 1.7.2-1.21.1
Failed to connect to the server
Incompatible client! Please use 1.7.2-1.21.1
Solution:Jump to solution
I found the fix:
```
VELOCITY_VERSION: 3.4.0-SNAPSHOT
VELOCITY_BUILD: 555...
7 Replies
tadmin@debbackup:/tank0/minecraft/mcdocker↴
$ cat docker-compose.yml
services:
velocity:
image: itzg/mc-proxy
user: 997:997
tty: true
stdin_open: true
ports:
- "25577:25577"
- "25589:25589"
- "25580:25580/udp"
volumes:
- /tank0/minecraft/velocity/server:/server
- /tank0/minecraft/velocity/server/forwarding.secret:/config/forwarding.secret:ro
- /tank0/minecraft/velocity/server/velocity.toml:/config/velocity.toml:ro
- /tank0/minecraft/velocity/plugins:/plugins:rw
environment:
TYPE: VELOCITY
JVM_XX_OPTS: "-XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15"
ENABLE_RCON: true
RCON_PORT: 25589
RCON_PASSWORD: REDACTED
restart: unless-stopped
mcmaria:
image: mariadb:latest
volumes:
- /tank0/minecraft/mcmaria:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: REDACTED
MYSQL_DATABASE: "mcvelo69"
MYSQL_USER: "mcvelo69"
MYSQL_PASSWORD: REDACTED
restart: always
tadmin@debbackup:/tank0/minecraft/mcdocker↴
$ cat docker-compose.yml
services:
velocity:
image: itzg/mc-proxy
user: 997:997
tty: true
stdin_open: true
ports:
- "25577:25577"
- "25589:25589"
- "25580:25580/udp"
volumes:
- /tank0/minecraft/velocity/server:/server
- /tank0/minecraft/velocity/server/forwarding.secret:/config/forwarding.secret:ro
- /tank0/minecraft/velocity/server/velocity.toml:/config/velocity.toml:ro
- /tank0/minecraft/velocity/plugins:/plugins:rw
environment:
TYPE: VELOCITY
JVM_XX_OPTS: "-XX:+UseG1GC -XX:G1HeapRegionSize=4M -XX:+UnlockExperimentalVMOptions -XX:+ParallelRefProcEnabled -XX:+AlwaysPreTouch -XX:MaxInlineLevel=15"
ENABLE_RCON: true
RCON_PORT: 25589
RCON_PASSWORD: REDACTED
restart: unless-stopped
mcmaria:
image: mariadb:latest
volumes:
- /tank0/minecraft/mcmaria:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: REDACTED
MYSQL_DATABASE: "mcvelo69"
MYSQL_USER: "mcvelo69"
MYSQL_PASSWORD: REDACTED
restart: always
creative:
image: itzg/minecraft-server
user: 997:997
ports:
- "25564:25565"
- "25584:25575"
- "25581:25581/udp"
environment:
EULA: "TRUE"
TYPE: PAPER
ONLINE_MODE: "FALSE"
MEMORY: 4G
TZ: America/New_York
MOTD: "Creative Lobby"
MAX_PLAYERS: 10
MODE: 1
DIFFICULTY: "peaceful"
SPAWN_ANIMALS: false
SPAWN_MONSTERS: false
SPAWN_NPCS: false
GENERATE_STRUCTURES: false
ENABLE_RCON: true
RCON_PASSWORD: REDACTED
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
VERSION_FROM_MODRINTH_PROJECTS: false
PLUGINS: |
https://hangarcdn.papermc.io/plugins/Maledict/Coordinates/versions/0.2.2/PAPER/Coordinates-0.2.2.jar
volumes:
- /tank0/minecraft/creative/data:/data
- /tank0/minecraft/schematics:/data/plugins/WorldEdit/schematics
restart: unless-stopped
creative:
image: itzg/minecraft-server
user: 997:997
ports:
- "25564:25565"
- "25584:25575"
- "25581:25581/udp"
environment:
EULA: "TRUE"
TYPE: PAPER
ONLINE_MODE: "FALSE"
MEMORY: 4G
TZ: America/New_York
MOTD: "Creative Lobby"
MAX_PLAYERS: 10
MODE: 1
DIFFICULTY: "peaceful"
SPAWN_ANIMALS: false
SPAWN_MONSTERS: false
SPAWN_NPCS: false
GENERATE_STRUCTURES: false
ENABLE_RCON: true
RCON_PASSWORD: REDACTED
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
VERSION_FROM_MODRINTH_PROJECTS: false
PLUGINS: |
https://hangarcdn.papermc.io/plugins/Maledict/Coordinates/versions/0.2.2/PAPER/Coordinates-0.2.2.jar
volumes:
- /tank0/minecraft/creative/data:/data
- /tank0/minecraft/schematics:/data/plugins/WorldEdit/schematics
restart: unless-stopped
paper:
image: itzg/minecraft-server
user: 997:997
ports:
- "25565:25565"
- "25585:25575"
- "25582:25582/udp"
environment:
EULA: "TRUE"
TYPE: PAPER
ONLINE_MODE: "FALSE"
MEMORY: 4G
TZ: America/New_York
ENABLE_RCON: true
RCON_PASSWORD: REDACTED
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
VERSION_FROM_MODRINTH_PROJECTS: false
PLUGINS: |
https://hangarcdn.papermc.io/plugins/Maledict/Coordinates/versions/0.2.2/PAPER/Coordinates-0.2.2.jar
volumes:
- /tank0/minecraft/paper/data:/data
- /tank0/minecraft/schematics:/data/plugins/WorldEdit/schematics
restart: unless-stopped
paper:
image: itzg/minecraft-server
user: 997:997
ports:
- "25565:25565"
- "25585:25575"
- "25582:25582/udp"
environment:
EULA: "TRUE"
TYPE: PAPER
ONLINE_MODE: "FALSE"
MEMORY: 4G
TZ: America/New_York
ENABLE_RCON: true
RCON_PASSWORD: REDACTED
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
VERSION_FROM_MODRINTH_PROJECTS: false
PLUGINS: |
https://hangarcdn.papermc.io/plugins/Maledict/Coordinates/versions/0.2.2/PAPER/Coordinates-0.2.2.jar
volumes:
- /tank0/minecraft/paper/data:/data
- /tank0/minecraft/schematics:/data/plugins/WorldEdit/schematics
restart: unless-stopped
quack:
image: itzg/minecraft-server
user: 997:997
ports:
- "25563:25565"
- "25573:25575"
- "25583:25583/udp"
environment:
EULA: "TRUE"
TYPE: PAPER
ONLINE_MODE: "FALSE"
MEMORY: 4G
TZ: America/New_York
ENABLE_RCON: true
RCON_PASSWORD: REDACTED
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
VERSION_FROM_MODRINTH_PROJECTS: false
PLUGINS: |
https://hangarcdn.papermc.io/plugins/Maledict/Coordinates/versions/0.2.2/PAPER/Coordinates-0.2.2.jar
volumes:
- /tank0/minecraft/quack/data:/data
- /tank0/minecraft/schematics:/data/plugins/WorldEdit/schematics
restart: unless-stopped
quack:
image: itzg/minecraft-server
user: 997:997
ports:
- "25563:25565"
- "25573:25575"
- "25583:25583/udp"
environment:
EULA: "TRUE"
TYPE: PAPER
ONLINE_MODE: "FALSE"
MEMORY: 4G
TZ: America/New_York
ENABLE_RCON: true
RCON_PASSWORD: REDACTED
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
VERSION_FROM_MODRINTH_PROJECTS: false
PLUGINS: |
https://hangarcdn.papermc.io/plugins/Maledict/Coordinates/versions/0.2.2/PAPER/Coordinates-0.2.2.jar
volumes:
- /tank0/minecraft/quack/data:/data
- /tank0/minecraft/schematics:/data/plugins/WorldEdit/schematics
restart: unless-stopped
[init] Resolving type given VELOCITY
[init] Copying BungeeCord plugins over...
[init] Downloading Velocity rcon plugin
[mc-image-helper] 15:43:23.958 INFO : Downloaded /server/plugins/Tribufu-VelocityRcon-1.2.0.jar
[init] Copy Velocity rcon configuration
[init] Copying configs over...
[init] Downloading default top-level configs, if needed
[mc-image-helper] 15:43:31.179 INFO : The file /server/velocity.toml already exists
[init] /server/forwarding.secret already exists
[init] Setting initial memory to 512m and max to 512m
[15:43:34 INFO]: Booting up Velocity 3.4.0-SNAPSHOT (git-b66aa3fb-b437)...
[15:43:34 INFO]: Loading localizations...
[15:43:34 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 3.x.x (Linux x86_64) ciphers
[15:43:35 INFO]: Loading plugins...
[15:43:35 INFO]: Loaded plugin luckperms 5.4.121 by Luck
[15:43:35 INFO]: Loaded plugin tcpshield 2.7.0 by TCPShield
[15:43:35 INFO]: Loaded plugin velocityrcon 1.0 by UnioDex
[15:43:35 INFO]: Loaded plugin voicechat 2.5.30 by NilaTheDragon, Max Henkel
[15:43:35 INFO]: Loaded 5 plugins
[init] Resolving type given VELOCITY
[init] Copying BungeeCord plugins over...
[init] Downloading Velocity rcon plugin
[mc-image-helper] 15:43:23.958 INFO : Downloaded /server/plugins/Tribufu-VelocityRcon-1.2.0.jar
[init] Copy Velocity rcon configuration
[init] Copying configs over...
[init] Downloading default top-level configs, if needed
[mc-image-helper] 15:43:31.179 INFO : The file /server/velocity.toml already exists
[init] /server/forwarding.secret already exists
[init] Setting initial memory to 512m and max to 512m
[15:43:34 INFO]: Booting up Velocity 3.4.0-SNAPSHOT (git-b66aa3fb-b437)...
[15:43:34 INFO]: Loading localizations...
[15:43:34 INFO]: Connections will use epoll channels, libdeflate (Linux x86_64) compression, OpenSSL 3.x.x (Linux x86_64) ciphers
[15:43:35 INFO]: Loading plugins...
[15:43:35 INFO]: Loaded plugin luckperms 5.4.121 by Luck
[15:43:35 INFO]: Loaded plugin tcpshield 2.7.0 by TCPShield
[15:43:35 INFO]: Loaded plugin velocityrcon 1.0 by UnioDex
[15:43:35 INFO]: Loaded plugin voicechat 2.5.30 by NilaTheDragon, Max Henkel
[15:43:35 INFO]: Loaded 5 plugins
[15:43:35 INFO]: Loaded 5 plugins
[15:43:36 INFO]: __
[15:43:36 INFO]: | |__) LuckPerms v5.4.121
[15:43:36 INFO]: |___ | Running on Velocity - Velocity
[15:43:36 INFO]:
[15:43:36 INFO] [luckperms]: Loading configuration...
[15:43:37 INFO] [luckperms]: Loading storage provider... [MARIADB]
[15:43:37 INFO] [me.lucko.luckperms.lib.hikari.HikariDataSource]: luckperms-hikari - Starting...
[15:43:37 INFO] [me.lucko.luckperms.lib.hikari.HikariDataSource]: luckperms-hikari - Start completed.
[15:43:37 INFO] [luckperms]: Loading messaging service... [SQL]
[15:43:38 INFO] [luckperms]: Loading internal permission managers...
[15:43:38 INFO] [luckperms]: Performing initial data load...
[15:43:38 INFO] [luckperms]: Successfully enabled. (took 2589ms)
[15:43:38 INFO] [velocityrcon]: Binding rcon to address: /0.0.0.0:25589
[15:43:38 INFO] [de.maxhenkel.voicechat.SimpleVoiceChatVelocity]: Voice chat proxy server started at 0.0.0.0:25580
[15:43:38 INFO]: Listening on /[0:0:0:0:0:0:0:0%0]:25577
[15:43:38 INFO]: Done (5.21s)!
[15:43:35 INFO]: Loaded 5 plugins
[15:43:36 INFO]: __
[15:43:36 INFO]: | |__) LuckPerms v5.4.121
[15:43:36 INFO]: |___ | Running on Velocity - Velocity
[15:43:36 INFO]:
[15:43:36 INFO] [luckperms]: Loading configuration...
[15:43:37 INFO] [luckperms]: Loading storage provider... [MARIADB]
[15:43:37 INFO] [me.lucko.luckperms.lib.hikari.HikariDataSource]: luckperms-hikari - Starting...
[15:43:37 INFO] [me.lucko.luckperms.lib.hikari.HikariDataSource]: luckperms-hikari - Start completed.
[15:43:37 INFO] [luckperms]: Loading messaging service... [SQL]
[15:43:38 INFO] [luckperms]: Loading internal permission managers...
[15:43:38 INFO] [luckperms]: Performing initial data load...
[15:43:38 INFO] [luckperms]: Successfully enabled. (took 2589ms)
[15:43:38 INFO] [velocityrcon]: Binding rcon to address: /0.0.0.0:25589
[15:43:38 INFO] [de.maxhenkel.voicechat.SimpleVoiceChatVelocity]: Voice chat proxy server started at 0.0.0.0:25580
[15:43:38 INFO]: Listening on /[0:0:0:0:0:0:0:0%0]:25577
[15:43:38 INFO]: Done (5.21s)!
what version of viaversion are you using?
I'm using the
MODRINTH_PROJECTS env var to pull the latest release version. This method is outlined here:
https://docker-minecraft-server.readthedocs.io/en/latest/mods-and-plugins/modrinth/
Here is the entry for all three servers:
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
MODRINTH_PROJECTS: |
viaversion
worldguard
luckperms
Auto-download from Modrinth - Minecraft Server on Docker (Java Edit...
Documentation for Minecraft Server on Docker
[12:24:52 INFO]: [ViaVersion] Enabling ViaVersion v5.5.1
[12:24:52 INFO]: [ViaVersion] ViaVersion detected server version: 1.21.7-1.21.8 (772)
[12:24:52 INFO]: [ViaVersion] Enabling ViaVersion v5.5.1
[12:24:52 INFO]: [ViaVersion] ViaVersion detected server version: 1.21.7-1.21.8 (772)
did you happen to update the server from 1.21.1? cus i think you gotta specify what versions you allow on your server through one of the configs, either velocity or viaversion
or atleast i think you do dont quote me on that, currently searching to confirm
did some searching, from what your velocity version is
Booting up Velocity 3.4.0-SNAPSHOT (git-b66aa3fb-b437)...
from a bit of searching this is a build from august 2024, which at the time only version 1.21.1 existed
@maxTim you will have to update your version of velocity
since ur on build #437, while latest is #555How do I update velocity using Docker? I thought this was automatic :/
Solution
I found the fix:
I had to overwrite the chached version that it kept downloading...
VELOCITY_VERSION: 3.4.0-SNAPSHOT
VELOCITY_BUILD: 555
VELOCITY_VERSION: 3.4.0-SNAPSHOT
VELOCITY_BUILD: 555