itzg / mc-image-helper

This tool does the complicated bits for the itzg/minecraft-server image
MIT License
58 stars 26 forks source link

[mc-image-helper] ERROR : Invalid parameter provided for 'modrinth' command: No files are available for the project xyz for loader paper and Minecraft version 1.20.6 #428

Open x0tester0x opened 5 months ago

x0tester0x commented 5 months ago

This is the configuration in the docker compose file:

- TYPE=PAPER
- VERSION=LATEST
- MODRINTH_PROJECTS=mcdash,maintenance,webstats,dynmap,huskhomes,sleeper

It always makes this ERROR independent of which plugin: [mc-image-helper] ERROR : Invalid parameter provided for 'modrinth' command: No files are available for the project xyz for loader paper and Minecraft version 1.20.6

What does not work here, because after this error the minecraft server stops?

itzg commented 5 months ago

It means one of those plugins is not available for Paper 1.20.6. Unfortunately the log is showing the Modrinth project ID rather than the slug you provided so I'll have to lookup an easy way for you to convert that identifier.

x0tester0x commented 5 months ago

xyz is a placeholder... it occusrs on every plugin in the list an returns the projectid... OK, but why then stop the server?

itzg commented 5 months ago

It stops the startup because you misconfigured it. Otherwise if it let the misconfiguration proceed then it would get lost in the logs and you'd wonder why the plugin was missing.

x0tester0x commented 5 months ago

OK, but when there exists already a plugin.jar in the plugins folder with version 1.20.4 and then the paper.jar is updated from 1.20.4 to 1.20.6 what happens then?

itzg commented 5 months ago

It will attempt to upgrade the plugin by downloading the new and removing the old.

x0tester0x commented 5 months ago

OK, but in the case, when no new version of the plugin is found, the server does not stop or?

itzg commented 5 months ago

Correct. It's trying to find a version of that plugin compatible with Paper 1.20.6, not finding one, and stopping the startup process so it's obvious there is something you need to fix.

x0tester0x commented 5 months ago

OK in this case VERSION=LATEST will always stop the server so I have to set a fixed version...

Can I set in the configuration that it should use not the latest Minecraft Client release but the latest stable Paper Server release?

- TYPE=PAPER
- VERSION=LATEST
itzg commented 5 months ago

It's best to always set a specific VERSION, such as 1.20.4 in this case.

Narrowing the Paper release channel is a planned feature https://github.com/itzg/docker-minecraft-server/issues/2811 ; however, even with that it will still leave room for surprise upgrades.