Jump to content

Minecraft Forge 1.19.2 Server Error - "zip END header not found"


Recommended Posts

Hi I've been trying to setup a 1.19.2 Forge Minecraft Server on my Linux Server running Debian 11. After I installed the server using the "--installServer" argument, I'm able to start the server without any mods. However, as soon as I put any sort of mod into the mods folder, "zip END header not found" error occurs and the server crashes.

You can see the error log here: https://pastebin.com/Fdz4mrvS

I'm using Java 17.0.7 running on a headless Debian 11 Server hosted at my home. Server specifications are:

  • CPU: i3-2350M
  • GPU: Intel HD 3000
  • Memory: 12GB
  • HDD: 500GB

My Forge Version is 1.19.2-43.2.0

Here are some things I've tried in order to resolve the issue:

  • Used different Java Version (20.0.1)
  • Tried different mods.
  • Used different Forge Version (1.19.2 - 43.2.11)
  • Used different Minecraft Version (1.19.3 - 44.1.0)

I've looked at different threads that says that the mod is corrupt. I'm certain that the mod is not corrupt, there is little to no chance that 3 popular mods that I used to test the server all will be corrupt. I've tested the server using Spark, JEI, AppleSkin, and Cloth Config API. I've tried different version of those mods to eliminate possibilities that the mods might be corrupt. The server crashes as soon as I put a single mod in the folder. I've tested each mod individually with a Fresh Forge Server Installation and the same error occurs.

Link to comment
Share on other sites

Quote

Caused by: java.util.zip.ZipException: zip END header not found

That error says one of your jars is corrupt/incomplete. It does not say which one.

Try running the following command on each mod jar

jar -tf mod.jar

That should list the contents of the jar if it is ok or give you the same error if it is broken. "unzip -t" can also be used to test the contents of a zip/jar.

Failing that, maybe it is an issue with your native library, like this issue from about a year ago? https://github.com/madler/zlib/issues/613

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

On 5/10/2023 at 4:09 AM, warjort said:

That error says one of your jars is corrupt/incomplete. It does not say which one.

Try running the following command on each mod jar

jar -tf mod.jar

That should list the contents of the jar if it is ok or give you the same error if it is broken. "unzip -t" can also be used to test the contents of a zip/jar.

Failing that, maybe it is an issue with your native library, like this issue from about a year ago? https://github.com/madler/zlib/issues/613

I've tested the only mod in the mods folder using the command you mentioned, and it doesn't give me the same error, just lists the contents of the jar.

Since you said if it was broken, it'd output the same error, I'm assuming my mod jar isn't corrupted/broken.

I don't think it's an issue with my native library either cause older Forge Version (1.12.2) and other mod loaders such as Fabric, and Spigot/Paper Minecraft Server works fine.

Edited by XyroPhyte
Link to comment
Share on other sites

Quote

Caused by: java.lang.ClassNotFoundException: jar

That error says you are trying to use a command something like

java jar ...

which isn't what I told you to type.

If you don't have the JDK installed, you won't have the jar command.

You can use something like unzip instead like I said above.

 

If it really is not one of the mods, then it must be one of the jars in the libraries subfolder.

But if that was true, you should have seen an error when you installed the server.

Assuming it is a fresh install and not a reinstall over a folder with already broken downloads. Even then I would expect it to spot an issue with the hashes of any already installed jars?

You would also get the error with no mods installed.

Edited by warjort

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

One other thing occurs to me.

Do you have something else in your mods folder that is not actually a jar?

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have a problem, I am trying to put two different effects to two different armors but when I run it only the emerald armor effect works. This is the code public class ModArmorItem extends ArmorItem{ private static final Map<ArmorMaterial, MobEffectInstance> MATERIAL_TO_EFFECT_MAP = (new ImmutableMap.Builder<ArmorMaterial, MobEffectInstance>()) .put(ModArmorMaterials.EMERALD, new MobEffectInstance(MobEffects.HERO_OF_THE_VILLAGE,200, 1,false,false, true)) .put(ModArmorMaterials.OBSIDIAN, new MobEffectInstance(MobEffects.FIRE_RESISTANCE,200, 1,false,false, true)).build(); public ModArmorItem(ArmorMaterial pMaterial, Type pType, Properties pProperties) { super(pMaterial, pType, pProperties); } @Override public void onArmorTick(ItemStack stack, Level world, Player player){ if (!world.isClientSide()) { if (hasFullSuitOfArmorOn(player)) { evaluateArmorEffects(player); } } } private void evaluateArmorEffects(Player player) { for (Map.Entry<ArmorMaterial,MobEffectInstance> entry : MATERIAL_TO_EFFECT_MAP.entrySet()){ ArmorMaterial mapArmorMaterial = entry.getKey(); MobEffectInstance mapStatusEffect = entry.getValue(); if (hasCorrectArmorOn(mapArmorMaterial, player)) { addStatusEffectForMaterial(player, mapArmorMaterial, mapStatusEffect); } } } private void addStatusEffectForMaterial(Player player, ArmorMaterial mapArmorMaterial, MobEffectInstance mapStatusEffect) { boolean hasPlayerEffect = player.hasEffect(mapStatusEffect.getEffect()); if (hasCorrectArmorOn(mapArmorMaterial, player) && !hasPlayerEffect) { player.addEffect(new MobEffectInstance(mapStatusEffect)); } } private boolean hasCorrectArmorOn(ArmorMaterial material, Player player) { for (ItemStack armorStack : player.getInventory().armor){ if (!(armorStack.getItem() instanceof ArmorItem)) { return false; } } ArmorItem helmet = ((ArmorItem)player.getInventory().getArmor(3).getItem()); ArmorItem breastplace = ((ArmorItem)player.getInventory().getArmor(2).getItem()); ArmorItem leggins = ((ArmorItem)player.getInventory().getArmor(1).getItem()); ArmorItem boots = ((ArmorItem)player.getInventory().getArmor(0).getItem()); return helmet.getMaterial() == material && breastplace.getMaterial() == material && leggins.getMaterial() == material && boots.getMaterial() == material; } private boolean hasFullSuitOfArmorOn(Player player){ ItemStack helmet = player.getInventory().getArmor(3); ItemStack breastplace = player.getInventory().getArmor(2); ItemStack leggins = player.getInventory().getArmor(1); ItemStack boots = player.getInventory().getArmor(0); return !helmet.isEmpty() && !breastplace.isEmpty() && !leggins.isEmpty() && !boots.isEmpty(); } } Also when I place two effects on the same armor, the game crashes. Here is the crash file. The code is the same, only this part is different   private static final Map<ArmorMaterial, MobEffectInstance> MATERIAL_TO_EFFECT_MAP = (new ImmutableMap.Builder<ArmorMaterial, MobEffectInstance>()) .put(ModArmorMaterials.EMERALD, new MobEffectInstance(MobEffects.HERO_OF_THE_VILLAGE,200, 1,false,false, true)) .put(ModArmorMaterials.EMERALD, new MobEffectInstance(MobEffects.FIRE_RESISTANCE,200, 1,false,false, true)).build(); I hope you guys can help me. Thanks.
    • I removed all related embeddium and oculus mods, i just tested it by disconnecting and the error happened again. heres the report https://pastebin.com/1kcR5wAt   EDIT: i tried removing xaeros and also smoothboot thinking there may be an issue there, nothing, heres that report too. https://pastebin.com/zQS7i9rM
    • Hi, I need suggestions. I am a beginner in Minecraft Modding. I would like to apply custom effects to some armors, something like: more chance to drop seeds, change zombie awareness, drop more pieces of wood when chopping logs, and things like that. How would you recommend me to do it, is there any library that has something similar and which ones would you recommend me?.
    • "downloading minecraft server failed, invalid Checksum. try again, or manually place server.jar to skip download"    
    • You have to create an Entity class called PlayerPart and use multiple of them to make the different parts of the player. See EnderDragonPart.java source code. The green hitboxes of the dragon are all EnderDragonParts
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.