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

Mod loading error with AUTO_CURSEFORGE #2847

Closed
badwolfunit opened this issue May 25, 2024 · 3 comments · Fixed by #2848
Closed

Mod loading error with AUTO_CURSEFORGE #2847

badwolfunit opened this issue May 25, 2024 · 3 comments · Fixed by #2848
Labels

Comments

@badwolfunit
Copy link

badwolfunit commented May 25, 2024

Describe the problem

Hello, I'm a Linux noob getting to grips with docker. I ran into this error whilst making a Minecraft server with this image. I am using Linux Mint 21 x86_64 with the kernel version 5.15.0-105-generic. The container stops after a while with exit code one according to Portainer.

if you could find me a easy solution that would be appreciated.

Container definition

services:
mc:
image: itzg/minecraft-server
tty: true
stdin_open: true
ports:
- "25565:25565"
environment:
EULA: "TRUE"
TYPE: "AUTO_CURSEFORGE"
CF_API_KEY: '$$2a$$10$$C8.CYzoAwEFXeaRoXNuMlOLDhLl9/rrbTzYzY41TlV9JkjFT33EN6'
CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/create-perfect-world/
volumes:
# attach the relative directory 'data' to the container's /data path
- ./data:/data
- ./downloads:/downloads

Container logs

[init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 2 1000 1000 4096 May 25 08:29 /data'
[mc-image-helper] 09:14:07.523 ERROR : 'install-curseforge' command failed. Version is 1.38.14
me.itzg.helpers.errors.GenericException: No mods found with slug=create-perfect-world/
at me.itzg.helpers.curseforge.CurseForgeApiClient.lambda$searchMod$2(CurseForgeApiClient.java:123)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:132)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.secondComplete(MonoFlatMap.java:245)
at reactor.core.publisher.MonoFlatMap$FlatMapInner.onNext(MonoFlatMap.java:305)
at reactor.core.publisher.FluxContextWrite$ContextWriteSubscriber.onNext(FluxContextWrite.java:107)
at reactor.core.publisher.FluxDoFinally$DoFinallySubscriber.onNext(FluxDoFinally.java:113)
at reactor.core.publisher.MonoFlatMap$FlatMapMain.onNext(MonoFlatMap.java:158)
at reactor.core.publisher.MonoPublishOn$PublishOnSubscriber.run(MonoPublishOn.java:181)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Suppressed: java.lang.Exception: #block terminated with an error
at reactor.core.publisher.BlockingSingleSubscriber.blockingGet(BlockingSingleSubscriber.java:103)
at reactor.core.publisher.Mono.block(Mono.java:1712)
at me.itzg.helpers.curseforge.CurseForgeInstaller.installByRetrievingModpackZip(CurseForgeInstaller.java:255)
at me.itzg.helpers.curseforge.CurseForgeInstaller.lambda$install$3(CurseForgeInstaller.java:176)
at me.itzg.helpers.curseforge.CurseForgeInstaller.install(CurseForgeInstaller.java:213)
at me.itzg.helpers.curseforge.CurseForgeInstaller.install(CurseForgeInstaller.java:175)
at me.itzg.helpers.curseforge.InstallCurseForgeCommand.call(InstallCurseForgeCommand.java:226)
at me.itzg.helpers.curseforge.InstallCurseForgeCommand.call(InstallCurseForgeCommand.java:30)
at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
at picocli.CommandLine.access$1500(CommandLine.java:148)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
at picocli.CommandLine.execute(CommandLine.java:2170)
at me.itzg.helpers.McImageHelper.main(McImageHelper.java:159)
[init] ERROR failed to auto-install CurseForge modpack

@itzg
Copy link
Owner

itzg commented May 25, 2024

I should fix the code to handle that better. Remove the trailing slash from the CF_PAGE_URL to have it just be "https://www.curseforge.com/minecraft/modpacks/create-perfect-world"

@badwolfunit
Copy link
Author

Thank you very much!!!

@badwolfunit
Copy link
Author

This was very difficult for me as I am only 10 years old

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants