AllTheMods / ATM-10

All the Mods 10
84 stars 43 forks source link

[Crash]: Server Won't Launch - NoClassDefFoundError and ClassNotFoundException #402

Open dizzydre21 opened 1 month ago

dizzydre21 commented 1 month ago

Possible Fixes

Yes

Modpack Version

10-0.45

What happened?

I am attempting to launch my server via docker-compose and have received some java related errors that prevent it from running. I also see an error complaining that accesstransformer.cfg provided by allthewizardgear does not exist. I just created a blank file that was named accesstranformer.cfg in the appropriate location and that particular error went away, but I don't know if that is okay to do or not. All errors are below and any help is much appreciated.

[17:41:30.160] [main/ERROR] [loading.moddiscovery.ModFile/LOADING]: Access transformer file META-INF/accesstransformer.cfg provided by mod allthewizardgear does not exist!

Exception in thread "main" java.lang.RuntimeException: java.lang.NoClassDefFoundError: net/caffeinemc/mods/sodium/client/services/PlatformRuntimeInformation
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:32)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.Launcher.run(Launcher.java:103)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.Launcher.main(Launcher.java:74)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23)
dakota-JavaForge_ATM10-1  |     at cpw.mods.bootstraplauncher@2.0.2/cpw.mods.bootstraplauncher.BootstrapLauncher.run(BootstrapLauncher.java:210)
dakota-JavaForge_ATM10-1  |     at cpw.mods.bootstraplauncher@2.0.2/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:69)
dakota-JavaForge_ATM10-1  | Caused by: java.lang.NoClassDefFoundError: net/caffeinemc/mods/sodium/client/services/PlatformRuntimeInformation
dakota-JavaForge_ATM10-1  |     at TRANSFORMER/sodium_extra@0.6.0-beta.1+mc1.21.1/me.flashyreese.mods.sodiumextra.client.SodiumExtraClientMod.mixinConfig(SodiumExtraClientMod.java:79)
dakota-JavaForge_ATM10-1  |     at TRANSFORMER/sodium_extra@0.6.0-beta.1+mc1.21.1/me.flashyreese.mods.sodiumextra.mixin.SodiumExtraMixinConfigPlugin.createConfig(SodiumExtraMixinConfigPlugin.java:13)
dakota-JavaForge_ATM10-1  |     at TRANSFORMER/sodium_extra@0.6.0-beta.1+mc1.21.1/net.caffeinemc.caffeineconfig.AbstractCaffeineConfigMixinPlugin.onLoad(AbstractCaffeineConfigMixinPlugin.java:16)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.PluginHandle.onLoad(PluginHandle.java:119)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinConfig.onSelect(MixinConfig.java:790)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.selectConfigs(MixinProcessor.java:498)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.select(MixinProcessor.java:460)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.checkSelect(MixinProcessor.java:438)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinProcessor.applyMixins(MixinProcessor.java:290)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.mixin.transformer.MixinTransformer.transformClass(MixinTransformer.java:250)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.service.modlauncher.MixinTransformationHandler.processClass(MixinTransformationHandler.java:131)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/org.spongepowered.mixin/org.spongepowered.asm.launch.MixinLaunchPluginLegacy.processClass(MixinLaunchPluginLegacy.java:131)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.serviceapi.ILaunchPluginService.processClassWithFlags(ILaunchPluginService.java:156)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:94)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.TransformingClassLoader.maybeTransformClassBytes(TransformingClassLoader.java:57)
dakota-JavaForge_ATM10-1  |     at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.readerToClass(ModuleClassLoader.java:190)
dakota-JavaForge_ATM10-1  |     at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.lambda$findClass$20(ModuleClassLoader.java:298)
dakota-JavaForge_ATM10-1  |     at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadFromModule(ModuleClassLoader.java:311)
dakota-JavaForge_ATM10-1  |     at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.findClass(ModuleClassLoader.java:298)
dakota-JavaForge_ATM10-1  |     at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
dakota-JavaForge_ATM10-1  |     at java.base/java.lang.Class.forName(Unknown Source)
dakota-JavaForge_ATM10-1  |     at java.base/java.lang.Class.forName(Unknown Source)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/fml_loader@4.0.24/net.neoforged.fml.loading.ImmediateWindowHandler$DummyProvider.lambda$updateModuleReads$1(ImmediateWindowHandler.java:173)
dakota-JavaForge_ATM10-1  |     at java.base/java.util.Optional.map(Unknown Source)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/fml_loader@4.0.24/net.neoforged.fml.loading.ImmediateWindowHandler$DummyProvider.updateModuleReads(ImmediateWindowHandler.java:173)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/fml_loader@4.0.24/net.neoforged.fml.loading.ImmediateWindowHandler.acceptGameLayer(ImmediateWindowHandler.java:94)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/fml_loader@4.0.24/net.neoforged.fml.loading.FMLLoader.beforeStart(FMLLoader.java:160)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/fml_loader@4.0.24/net.neoforged.fml.loading.targets.CommonLaunchHandler.launchService(CommonLaunchHandler.java:115)
dakota-JavaForge_ATM10-1  |     at MC-BOOTSTRAP/cpw.mods.modlauncher@11.0.4/cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30)
dakota-JavaForge_ATM10-1  |     ... 8 more
dakota-JavaForge_ATM10-1  | Caused by: java.lang.ClassNotFoundException: net.caffeinemc.mods.sodium.client.services.PlatformRuntimeInformation
dakota-JavaForge_ATM10-1  |     at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
dakota-JavaForge_ATM10-1  |     at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
dakota-JavaForge_ATM10-1  |     at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:216)
dakota-JavaForge_ATM10-1  |     at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
dakota-JavaForge_ATM10-1  |     at cpw.mods.securejarhandler/cpw.mods.cl.ModuleClassLoader.loadClass(ModuleClassLoader.java:216)
dakota-JavaForge_ATM10-1  |     at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
dakota-JavaForge_ATM10-1  |     ... 38 more
dakota-JavaForge_ATM10-1  | 2024-09-04T17:41:34.497Z    WARN    mc-server-runner        Minecraft server failed. Inspect logs above for errors that indicate cause. DO NOT report this line as an error.  {"exitCode": 1}
dakota-JavaForge_ATM10-1  | 2024-09-04T17:41:34.497Z    INFO    mc-server-runner        Done
dakota-JavaForge_ATM10-1 exited with code 0

Crash Log

https://gist.github.com/dizzydre21/7771da39d7de6fd01272fd9641559102

Latest.Log

https://gist.github.com/dizzydre21/9a421259fc16604cf2a2e7ee42088376

scottmando2000 commented 1 month ago

Looks like you are using the itzg minecraft server, here is the ENV to fix all the issues I've had relating to mods having issues running the server to this point.

CF_EXCLUDE_MODS: 986380,520110,394468,447673
      # 986380 lighty
      # 520110 Iceberg
      # 394468 Sodium
      # 447673 Sodium Extra
dizzydre21 commented 1 month ago

Hey, thanks for the suggestion. Have you been able to run ATM10 on a server outside of Docker without excluding those mods? Or is there a better Minecraft Docker to use? I've only ever used itzg, but I've recently moved over from the Bedrock version and never needed to try anything else.

On Thu, Sep 5, 2024 at 2:08 PM scottmando2000 @.***> wrote:

Looks like you are using the itzg minecraft server, here is the ENV to fix all the issues I've had relating to mods having issues running the server to this point.

CF_EXCLUDE_MODS: 986380,520110,394468,447673 # 986380 lighty # 520110 Iceberg # 394468 Sodium # 447673 Sodium Extra

— Reply to this email directly, view it on GitHub https://github.com/AllTheMods/ATM-10/issues/402#issuecomment-2332544283, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFXBTVFBLJLTDVJYSHNVD33ZVC25VAVCNFSM6AAAAABNU25UA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZSGU2DIMRYGM . You are receiving this because you authored the thread.Message ID: @.***>

-- Sincerely, Dakota Edwards

scottmando2000 commented 1 month ago

I only run my services inside container engines like docker, itzg has been pretty much the only minecraft server container that has been consistent, and I've used for a meaningful amount of time.

It comes down to the server downloading the client version of the pack and just needs to have the mods that are client only excluded.

dizzydre21 commented 1 month ago

Roger that. So, all the ones that you have excluded are client side? Sorry, I haven't had time to look them up yet. If so, I suppose I could just install them on my client. Is there a way to have the server push them to the clients for the folks that don't understand the install process, meaning my kids?

On Thu, Sep 5, 2024 at 3:46 PM scottmando2000 @.***> wrote:

I only run my services inside container engines like docker, itzg has been pretty much the only minecraft server container that has been consistent, and I've used for a meaningful amount of time.

It comes down to the server downloading the client version of the pack and just needs to have the mods that are client only excluded.

— Reply to this email directly, view it on GitHub https://github.com/AllTheMods/ATM-10/issues/402#issuecomment-2332680133, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFXBTVF44TEOANGGPQ42N63ZVDGKBAVCNFSM6AAAAABNU25UA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZSGY4DAMJTGM . You are receiving this because you authored the thread.Message ID: @.***>

-- Sincerely, Dakota Edwards

scottmando2000 commented 1 month ago

These are just client mods that need to be excluded from the server configs.

It doesn't know how to render anything.

dizzydre21 commented 1 month ago

I actually only needed to disable one mod and it was the sodium extras for NeoForge. Ended up removing all the other exclusions and the server would then deploy. There were still some errors that I need to look into, but they were there prior to removing all the exclusions.

One other thing I did was install Prism Launcher on a client. I then created a custom instance with the downloaded ATM10 zip and installed all the mods there too. I think I probably only needed the client side stuff, but I was lazy and just wanted to try it out.

On Thu, Sep 5, 2024, 19:44 scottmando2000 @.***> wrote:

These are just client mods that need to be excluded from the server configs.

It doesn't know how to render anything.

— Reply to this email directly, view it on GitHub https://github.com/AllTheMods/ATM-10/issues/402#issuecomment-2333027226, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFXBTVGVG27OHKV4EPVDZOTZVECGFAVCNFSM6AAAAABNU25UA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZTGAZDOMRSGY . You are receiving this because you authored the thread.Message ID: @.***>

scottmando2000 commented 1 month ago

The clients need all the mods (pun intended)

But prism has an option to install directly from curseforge, and manage all the updates as well.

axi92 commented 1 month ago

Thank you for pointing that out! I had the same issue with another modpack and solved it a little different. Since I don't like to disable mods by hand with every update, also I don't even know what mods I need to disable. I choose a different setup where I download the specific server pack that already exists on CF.

For your example with ATM10 https://www.curseforge.com/minecraft/modpacks/all-the-mods-10/files/5748258/additional-files you can see the additional files there are server files. I grab the link from those and pre-download it and then mount it into my container as a generic pack.