R
Railway4mo ago
Morgan

Minecraft server

Hey guys! So i'm using the minecraft server template and it works pretty well! I was looking into the further configuration, and couldnt find a way to change java version on Railway. Has anyone been able to successfully change java version and get mods installed on the correct forge/minecraft versions?
Solution:
use the MODPACK var not MODS
Jump to solution
80 Replies
Percy
Percy4mo ago
Project ID: N/A
Morgan
Morgan4mo ago
N/A
Fragly
Fragly4mo ago
you can set it via the VERSION environment variable all variables can be found here: https://docker-minecraft-server.readthedocs.io/en/latest/variables/
Adam
Adam4mo ago
I haven’t looked into changing the Java version, but changing the MC version is very easy. fragly was faster
Morgan
Morgan4mo ago
Thats the minecraft version right?
Adam
Adam4mo ago
yes
Fragly
Fragly4mo ago
oh yea, my fault
Morgan
Morgan4mo ago
yeah
Fragly
Fragly4mo ago
misread
Morgan
Morgan4mo ago
nw! so yeah i have it running on version 1.19.2 w/ FORGE as the type. but the mods don't seem to download and i think java version is wrong
nebula
nebula4mo ago
how are you adding mods cuz its kinda wacky
Morgan
Morgan4mo ago
I have the mods source set as a discord CDN link to a zip file which was in this help form
nebula
nebula4mo ago
whats the zip file look like inside it has to be a specific structure
Morgan
Morgan4mo ago
its just a bunch of mods lol just a bunch of compressed files
Morgan
Morgan4mo ago
Adam
Adam4mo ago
Whenever I mess with my Minecraft server I use the Filebrowser template to access the volume https://railway.app/template/Nan7Bs I believe this is the one I use? I’ll double check when I get on my pc
Morgan
Morgan4mo ago
not bad but i still need to know how to change the java version :rooKek:
nebula
nebula4mo ago
VERSION envvar
Adam
Adam4mo ago
that’s the mc version
Morgan
Morgan4mo ago
yeh
nebula
nebula4mo ago
why do you want to change the java version i think its possible
Adam
Adam4mo ago
I doubt the java version is the issue here, try installing mods correctly using filebrowser and see if that fixes it
Morgan
Morgan4mo ago
cuz its on version 17 rn lol and i'm trying to run a 1.19.2 forge server
Adam
Adam4mo ago
java version =/= minecraft version
Morgan
Morgan4mo ago
yeah i know
Adam
Adam4mo ago
17 should be fine if it’s not screaming at you
Morgan
Morgan4mo ago
but doesnt 1.19.2 require ^18?
Adam
Adam4mo ago
from experience, when mods silently fail without error messages, there’s an installation issue
Morgan
Morgan4mo ago
Ok cool. How do i get the template on if i'm using the file browser? yeah
nebula
nebula4mo ago
No description
Adam
Adam4mo ago
deploy the template in the project, detach the volume from your mc server service and move it over
nebula
nebula4mo ago
you should be fine using 17
Adam
Adam4mo ago
move it back and redeploy when you’re done editing
Morgan
Morgan4mo ago
whats the structure the mods folder needs?
nebula
nebula4mo ago
hold on
Morgan
Morgan4mo ago
ohhhh interesting
nebula
nebula4mo ago
did you upload a log file?
Morgan
Morgan4mo ago
nah probs should
nebula
nebula4mo ago
would help quite a bit to debug
Morgan
Morgan4mo ago
one sec
Adam
Adam4mo ago
since you didn’t send one I assumed it was failing silently but that’s probably not a safe assumption
Morgan
Morgan4mo ago
it wasnt failing silently it was just confused about the mods but this makes more sense now i deleted the container so lemme spin it back up and get the log
nebula
nebula4mo ago
well this is the current structure
No description
nebula
nebula4mo ago
it seems fine to me
Adam
Adam4mo ago
probably shouldn’t be zipped though?
Morgan
Morgan4mo ago
what should it be then?
Adam
Adam4mo ago
unzipped
nebula
nebula4mo ago
no its fine
Morgan
Morgan4mo ago
how does one upload a folder unzipped ok
nebula
nebula4mo ago
the image hes using uses zips for mods
Adam
Adam4mo ago
gotcha didn’t know that
nebula
nebula4mo ago
also @Morgan you're gonna have to change that pronouns field :/
Morgan
Morgan4mo ago
how do i download my logs?
nebula
nebula4mo ago
not acceptable
Morgan
Morgan4mo ago
sorryyyyy how do i download my logfile? cant seem to find the button
nebula
nebula4mo ago
not sure if theres a download option
Morgan
Morgan4mo ago
ah ok
nebula
nebula4mo ago
lmfao brody has every tool under the sun
Morgan
Morgan4mo ago
lol doesnt work on my browser but its ok ill just c/p shit that only got a bit of it
Brody
Brody4mo ago
what browser?
Morgan
Morgan4mo ago
arc
nebula
nebula4mo ago
one sec
Morgan
Morgan4mo ago
fuck still only partial i assume the log explorer is authenticated neb, mind if i DM you a read-only invite link to the project?
nebula
nebula4mo ago
thats fine!
Morgan
Morgan4mo ago
so heres an error i found
com.electronwill.nightconfig.core.io.ParsingException: Invalid TOML data: entry "[disableOptimizedDFU]" defined twice in its table.

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TableParser.checkDuplicateKey(TableParser.java:88)

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:59)

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44)

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:181)

[17:06:23] [main/WARN]: Incorrect key [disableOptimizedDFU] was corrected from null to true
com.electronwill.nightconfig.core.io.ParsingException: Invalid TOML data: entry "[disableOptimizedDFU]" defined twice in its table.

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TableParser.checkDuplicateKey(TableParser.java:88)

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:59)

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44)

at MC-BOOTSTRAP/com.electronwill.nightconfig.toml@3.6.4/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73)

at MC-BOOTSTRAP/com.electronwill.nightconfig.core@3.6.4/com.electronwill.nightconfig.core.file.FileWatcher$WatcherThread.run(FileWatcher.java:181)

[17:06:23] [main/WARN]: Incorrect key [disableOptimizedDFU] was corrected from null to true
Solution
nebula
nebula4mo ago
use the MODPACK var not MODS
Morgan
Morgan4mo ago
That did it! Any chance you know the internal difference in the package?
nebula
nebula4mo ago
wdym? MODS is for a list of mods, MODPACK is for a zip file
Morgan
Morgan4mo ago
ah Thanks! how do i close the post?
Morgan
Morgan4mo ago
@Brody Hey having some issues with filebrowser, i created it from the template, unmounted the file browser volume, unmounted the minecraft volume from the server, mounted the minecraft volume to the web server, nothing shows up in file browser
Fragly
Fragly4mo ago
set the USE_VOLUME_ROOT service variable in your Filebrowser service to 1
Morgan
Morgan4mo ago
"something really went wrong" LOL @Fragly
Fragly
Fragly4mo ago
is that an error message or something?
Morgan
Morgan4mo ago
No description
Fragly
Fragly4mo ago
that can't be good 💀
Morgan
Morgan4mo ago
oh no config file used error @Brody
Fragly
Fragly4mo ago
( please do keep this rule in mind #🛂|readme #5 )
Morgan
Morgan4mo ago
oopsie sorry guys will stop
Fragly
Fragly4mo ago
no worries