Closed AranudB closed 3 months ago
Try using one of the maintained image tags. java19 has been deprecated for a while.
I cannot change the image to a maintained one because Spigot 1.19.2 requires Java 19 to work. However, I had previously tested it with the most recent image, and it had the same behavior.
But, just to be sure, I recreated a new compose file with the most recent image:
services: minecraft: image: itzg/minecraft-server:latest container_name: serv_mc ports:
RCON_PASSWORD='minecraft'
rcon: image: itzg/rcon volumes:
But I still get the same errors.
Spigot 1.19.2 requires Java 19
It's probably Java 17 since 19 was a short lived version. Regardless that image tag has not been built in a long time.
Since rcon web is third party software and frequently doesn't work then all I can do is point you to the example that I validated recently
https://github.com/itzg/docker-rcon-web-admin/blob/master/docker-compose.yml
After reviewing a new time the sample .yml file you sent me, I think I found the issue. I can't explain why but the env variable for rcon to work must be like this RCON_PASSWORD: 'minecraft' and not like this - RCON_PASSWORD='minecraft'.
Thanks for your quick reply and your work !
Yeah I find the list style env variable syntax to be error prone like that. If you haven't now, I recommend switching to object (key: value) syntax.
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.
Describe the problem
Hello,
I am contacting you because I recently deployed a Minecraft Spigot 1.19.2 server using the image itzg/minecraft-server:java19. Everything works very well here.
However, I also added the itzg/rcon container. When I start the server and connect to the rcon web interface and try to access the server administration page, the message "The current selected server is not available anymore. Maybe gone offline?" appears. Also, within the rcon container logs, messages such as "connection failed" or "invalid rcon password" appear. Yet the password used is indeed the one included in the .yml file.
Do you know what could be the error?
Thank you in advance.
Container definition
Container logs