Closed msugenius closed 3 months ago
Java 21 should have worked, but something wasn't applied correctly. Did you run docker compose up -d
again?
Switch image to itzg/minecraft-server:java17
, apply the compose file changes, and if it still doesn't work, provide the logs with that Java version.
Thank you!
With itzg/minecraft-server:java17
image server started successfully with type vanilla. But after switch back to CurseForge it crashed, I I'm sure this is due to modifications, or rather the wrong Forge version, so I tried to add to my compose file following variable FORGE_VERSION: 47.1.3
but it didn't work as expected(logs attached) . I would be very grateful if you tell me what I can do in this situation..
Anyway, thanks for your help!
Now you're probably running into this common problem with modpacks
Thanks a lot, man, I'll try to figure it out!
Describe the problem
I'm trying to install CurseForge modpack on a server, which leads me to the following error:
Error: Could not find or load main class @user_jvm_args.txt
Tried using different images:java8-openj9
java8
java21
all resulted in the same error. Modpack was installed using local .zip file (because without local files using only link it ran into error cause by 403 status response from CurseForge API). All parts of server seems working except user_jvm_args.txtContainer definition
Compose file
```bash networks: minecraft-server-network: external: true services: mc: container_name: mc image: itzg/minecraft-server:java8-openj9 volumes: - ./minecraft-server-data:/data - ./modpacks:/modpacks environment: EULA: true TYPE: AUTO_CURSEFORGE VERSION: 1.20.1 MEMORY: 3G SERVER_NAME: ${MINECRAFT_SERVER_SERVER_NAME} MOTD: ${MINECRAFT_SERVER_MOTD} LEVEL_TYPE: ${MINECRAFT_SERVER_LEVEL_TYPE} LEVEL: ${MINECRAFT_SERVER_LEVEL} MODE: ${MINECRAFT_SERVER_MODE} FORCE_GAMEMODE: ${MINECRAFT_SERVER_FORCE_GAMEMODE} DIFFICULTY: ${MINECRAFT_SERVER_DIFFICULTY} HARDCORE: ${MINECRAFT_SERVER_HARDCORE} ANNOUNCE_PLAYER_ACHIEVEMENTS: ${MINECRAFT_SERVER_ANNOUNCE_PLAYER_ACHIEVEMENTS} MAX_PLAYERS: ${MINECRAFT_SERVER_MAX_PLAYERS} PVP: ${MINECRAFT_SERVER_PVP} ENABLE_RCON: ${MINECRAFT_SERVER_ENABLE_RCON} RCON_PASSWORD: ${MINECRAFT_SERVER_RCON_PASSWORD} RCON_PORT: ${MINECRAFT_SERVER_RCON_PORT} SERVER_PORT: ${MINECRAFT_SERVER_SERVER_PORT} ALLOW_FLIGHT: ${MINECRAFT_SERVER_ALLOW_FLIGHT} MAX_WORLD_SIZE: ${MINECRAFT_SERVER_MAX_WORLD_SIZE} MAX_BUILD_HEIGHT: ${MINECRAFT_SERVER_MAX_BUILD_HEIGHT} SPAWN_ANIMALS: ${MINECRAFT_SERVER_SPAWN_ANIMALS} SPAWN_MONSTERS: ${MINECRAFT_SERVER_SPAWN_MONSTERS} SPAWN_NPCS: ${MINECRAFT_SERVER_SPAWN_NPCS} SPAWN_PROTECTION: ${MINECRAFT_SERVER_SPAWN_PROTECTION} VIEW_DISTANCE: ${MINECRAFT_SERVER_VIEW_DISTANCE} ONLINE_MODE: ${MINECRAFT_SERVER_ONLINE_MODE} SNOOPER_ENABLED: ${MINECRAFT_SERVER_SNOOPER_ENABLED} ENABLE_COMMAND_BLOCK: ${MINECRAFT_SERVER_ENABLE_COMMAND_BLOCK} # CF modpack CF_API_KEY: $$11$$22$$33... CF_PAGE_URL: https://www.curseforge.com/minecraft/modpacks/galacticraft-4-ad-astra CF_MODPACK_ZIP: /modpacks/Galacticraft.zip TZ: ${MINECRAFT_SERVER_SERVER_TIMEZONE} SEED: ${MINECRAFT_SERVER_SEED} networks: - minecraft-server-network ports: - "${MINECRAFT_SERVER_SERVER_PORT}:${MINECRAFT_SERVER_SERVER_PORT}" restart: unless-stopped backups: image: itzg/mc-backup:latest environment: RCON_HOST: mc RCON_PORT: ${MINECRAFT_SERVER_RCON_PORT} RCON_PASSWORD: ${MINECRAFT_SERVER_RCON_PASSWORD} SERVER_PORT: ${MINECRAFT_SERVER_SERVER_PORT} SRC_DIR: /data BACKUP_METHOD: ${BACKUP_METHOD} BACKUP_INTERVAL: ${MINECRAFT_SERVER_BACKUP_INTERVAL} PRUNE_BACKUPS_DAYS: ${MINECRAFT_SERVER_PRUNE_BACKUPS_DAYS} INITIAL_DELAY: ${MINECRAFT_SERVER_INITIAL_DELAY} TZ: ${MINECRAFT_SERVER_SERVER_TIMEZONE} volumes: - ./minecraft-server-data:/data:ro - ./minecraft-server-data-backups:/backups networks: - minecraft-server-network restart: unless-stopped depends_on: mc: condition: service_healthy restore: image: ${MINECRAFT_SERVER_BACKUP_IMAGE_TAG} entrypoint: restore-tar-backup volumes: - ./minecraft-server-data:/data - ./minecraft-server-data-backups:/backups:ro networks: - minecraft-server-network restart: no depends_on: mc: condition: service_healthy ```Container logs
Logs
```bash mc | [init] Changing ownership of /data to 1000 ... mc | [init] Running as uid=1000 gid=1000 with /data as 'drwxr-xr-x 2 1000 1000 4096 Jun 10 11:52 /data' mc | [mc-image-helper] 10:53:00.635 INFO : Installing modpack 'Galacticraft 4 (Ad Astra)' version null from provided modpack zip mc | [mc-image-helper] 10:53:01.678 INFO : Excluding mod file 'Mouse Tweaks' (mouse-tweaks) due to configuration mc | [mc-image-helper] 10:53:02.254 INFO : Downloaded mod file mods/SnowRealMagic-1.20.1-forge-9.0.1.jar mc | [mc-image-helper] 10:53:02.262 INFO : Downloaded mod file mods/tlc_forge-1.0.3-R-1.20.X.jar mc | [mc-image-helper] 10:53:02.272 INFO : Downloaded mod file mods/balm-forge-1.20-7.0.7.jar mc | [mc-image-helper] 10:53:02.275 INFO : Downloaded mod file mods/awesomedungeonocean-forge-1.20.1-3.3.0.jar mc | [mc-image-helper] 10:53:02.278 INFO : Downloaded mod file mods/PuzzlesLib-v8.0.24-1.20.1-Forge.jar mc | [mc-image-helper] 10:53:02.331 INFO : Downloaded mod file mods/XaerosWorldMap_1.32.0_Forge_1.20.jar mc | [mc-image-helper] 10:53:02.572 INFO : Downloaded mod file mods/curios-forge-5.2.0-beta.3+1.20.1.jar mc | [mc-image-helper] 10:53:02.581 INFO : Downloaded mod file mods/right-click-harvest-3.2.3+1.20.1-forge.jar mc | [mc-image-helper] 10:53:02.629 INFO : Downloaded mod file mods/Cucumber-1.20.1-7.0.0.jar mc | [mc-image-helper] 10:53:02.640 INFO : Downloaded mod file mods/resourcefullib-forge-1.20.1-2.1.9.jar mc | [mc-image-helper] 10:53:02.657 INFO : Downloaded mod file mods/bushierflowers-0.0.3-1.20.1.jar mc | [mc-image-helper] 10:53:02.705 INFO : Downloaded mod file mods/grappling_hook_mod-1.20.1-1.20.1-v13.jar mc | [mc-image-helper] 10:53:02.717 INFO : Downloaded mod file mods/resourcefulconfig-forge-1.20.1-2.1.0.jar mc | [mc-image-helper] 10:53:02.733 INFO : Downloaded mod file mods/MysticalAgradditions-1.20.1-7.0.1.jar mc | [mc-image-helper] 10:53:02.783 INFO : Downloaded mod file mods/MysticalAgriculture-1.20.1-7.0.2.jar mc | [mc-image-helper] 10:53:02.810 INFO : Downloaded mod file mods/FarmersDelight-1.20.1-1.2.3.jar mc | [mc-image-helper] 10:53:02.814 INFO : Downloaded mod file mods/storagedrawers-1.20.1-12.0.2.jar mc | [mc-image-helper] 10:53:02.826 INFO : Downloaded mod file mods/nyfsspiders-forge-1.20.1-2.1.0.jar mc | [mc-image-helper] 10:53:02.830 INFO : Downloaded mod file mods/supermartijn642corelib-1.1.12a-forge-mc1.20.jar mc | [mc-image-helper] 10:53:02.851 INFO : Downloaded mod file mods/Nullscape_1.20.1_v1.2.2.jar mc | [mc-image-helper] 10:53:02.873 INFO : Downloaded mod file mods/cristellib-1.1.1-forge.jar mc | [mc-image-helper] 10:53:02.888 INFO : Downloaded mod file mods/car-1.20.1-1.0.8.jar mc | [mc-image-helper] 10:53:02.897 INFO : Downloaded mod file mods/libraryferret-forge-1.20.1-4.0.0.jar mc | [mc-image-helper] 10:53:02.939 INFO : Downloaded mod file mods/dynamiclights-1.20.1.0.jar mc | [mc-image-helper] 10:53:02.956 INFO : Downloaded mod file mods/Kiwi-1.20.1-forge-11.1.1.jar mc | [mc-image-helper] 10:53:03.097 INFO : Downloaded mod file mods/refinedstorage-1.12.3.jar mc | [mc-image-helper] 10:53:03.160 INFO : Downloaded mod file mods/supplementaries-1.20-2.5.26.jar mc | [mc-image-helper] 10:53:03.194 INFO : Downloaded mod file mods/simplefarming-1.20.1-2.1.6.jar mc | [mc-image-helper] 10:53:03.205 INFO : Downloaded mod file mods/SereneSeasons-1.20.1-9.0.0.43.jar mc | [mc-image-helper] 10:53:03.241 INFO : Downloaded mod file mods/geckolib-forge-1.20.1-4.2.1.jar mc | [mc-image-helper] 10:53:03.310 INFO : Downloaded mod file mods/Terralith_1.20.1_v2.4.3.jar mc | [mc-image-helper] 10:53:03.354 INFO : Downloaded mod file mods/citadel-2.4.2-1.20.1.jar mc | [mc-image-helper] 10:53:03.382 INFO : Downloaded mod file mods/createaddition-1.20.1-1.0.0b.jar mc | [mc-image-helper] 10:53:03.387 INFO : Downloaded mod file mods/creeperoverhaul-3.0.1-forge.jar mc | [mc-image-helper] 10:53:03.411 INFO : Downloaded mod file mods/inventorysorter-1.20.1-23.0.1.jar mc | [mc-image-helper] 10:53:03.415 INFO : Downloaded mod file mods/moonlight-1.20-2.8.3-forge.jar mc | [mc-image-helper] 10:53:03.424 INFO : Downloaded mod file mods/connectedglass-1.1.7-forge-mc1.20.jar mc | [mc-image-helper] 10:53:03.443 INFO : Downloaded mod file mods/easy_piglins-1.20.1-1.0.1.jar mc | [mc-image-helper] 10:53:03.476 INFO : Downloaded mod file mods/Xaeros_Minimap_23.6.1_Forge_1.20.jar mc | [mc-image-helper] 10:53:03.506 INFO : Downloaded mod file mods/twilightforest-1.20.1-4.3.1750-universal.jar mc | [mc-image-helper] 10:53:03.518 INFO : Downloaded mod file mods/bettervillage-forge-1.20.1-3.2.0.jar mc | [mc-image-helper] 10:53:03.546 INFO : Downloaded mod file mods/sophisticatedbackpacks-1.20.1-3.18.56.890.jar mc | [mc-image-helper] 10:53:03.583 INFO : Downloaded mod file mods/easy_villagers-1.20.1-1.0.12.jar mc | [mc-image-helper] 10:53:03.654 INFO : Downloaded mod file mods/cloth-config-11.1.106-forge.jar mc | [mc-image-helper] 10:53:03.717 INFO : Downloaded mod file mods/alexsmobs-1.22.5.jar mc | [mc-image-helper] 10:53:03.800 INFO : Downloaded mod file mods/NaturesCompass-1.20.1-1.11.1-forge.jar mc | [mc-image-helper] 10:53:03.806 INFO : Downloaded mod file mods/veinmining-forge-1.2.0+1.20.1.jar mc | [mc-image-helper] 10:53:03.807 INFO : Downloaded mod file mods/VisualWorkbench-v8.0.0-1.20.1-Forge.jar mc | [mc-image-helper] 10:53:03.821 INFO : Downloaded mod file mods/BiomesOPlenty-1.20.1-18.0.0.597.jar mc | [mc-image-helper] 10:53:03.853 INFO : Downloaded mod file mods/ad_astra-forge-1.20.1-1.15.3.jar mc | [mc-image-helper] 10:53:03.857 INFO : Downloaded mod file mods/sophisticatedcore-1.20.1-0.5.83.395.jar mc | [mc-image-helper] 10:53:03.879 INFO : Downloaded mod file mods/cookingforblockheads-forge-1.20-16.0.0.jar mc | [mc-image-helper] 10:53:03.887 INFO : Downloaded mod file mods/botarium-forge-1.20.1-2.2.0.jar mc | [mc-image-helper] 10:53:03.889 INFO : Downloaded mod file mods/TerraBlender-forge-1.20.1-3.0.0.169.jar mc | [mc-image-helper] 10:53:03.920 INFO : Downloaded mod file mods/Towns-and-Towers-1.11-Fabric+Forge.jar mc | [mc-image-helper] 10:53:03.941 INFO : Downloaded mod file mods/create-1.20.1-0.5.1.d.jar mc | [mc-image-helper] 10:53:03.965 INFO : Downloaded mod file mods/Incendium_1.20.1_v5.3.1.jar mc | [mc-image-helper] 10:53:03.977 INFO : Downloaded mod file mods/bfendcities-1.0.jar mc | [mc-image-helper] 10:53:03.986 INFO : Downloaded mod file mods/ToolBelt-1.20-1.20.0.jar mc | [mc-image-helper] 10:53:04.119 INFO : Downloaded mod file mods/jei-1.20.1-forge-15.2.0.25.jar mc | [mc-image-helper] 10:53:04.724 INFO : Downloading Forge installer 47.1.0 for Minecraft 1.20.1 mc | [mc-image-helper] 10:53:06.042 INFO : Running Forge 47.1.0 installer for Minecraft 1.20.1. This might take a while... mc | [init] Creating server properties in /data/server.properties mc | [init] Disabling whitelist functionality mc | [init] Setting mode mc | [mc-image-helper] 10:53:32.367 INFO : Created/updated 28 properties in /data/server.properties mc | [init] Setting initial memory to 3G and max to 3G mc | [init] Using Forge supplied run.sh script... mc | Error: Could not find or load main class @user_jvm_args.txt mc | 2024-06-10T11:53:38.016+0300 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} mc | 2024-06-10T11:53:38.016+0300 INFO mc-server-runner Done dependency failed to start: container mc is unhealthy ```