R
Railway9mo 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
Percy9mo ago
Project ID: N/A
Morgan
MorganOP9mo ago
N/A
Fragly
Fragly9mo 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
Adam9mo ago
I haven’t looked into changing the Java version, but changing the MC version is very easy. fragly was faster
Morgan
MorganOP9mo ago
Thats the minecraft version right?
Adam
Adam9mo ago
yes
Fragly
Fragly9mo ago
oh yea, my fault
Morgan
MorganOP9mo ago
yeah
Fragly
Fragly9mo ago
misread
Morgan
MorganOP9mo 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
nebula9mo ago
how are you adding mods cuz its kinda wacky
Morgan
MorganOP9mo ago
I have the mods source set as a discord CDN link to a zip file which was in this help form
nebula
nebula9mo ago
whats the zip file look like inside it has to be a specific structure
Morgan
MorganOP9mo ago
its just a bunch of mods lol just a bunch of compressed files
Morgan
MorganOP9mo ago
Adam
Adam9mo 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
MorganOP9mo ago
not bad but i still need to know how to change the java version :rooKek:
nebula
nebula9mo ago
VERSION envvar
Adam
Adam9mo ago
that’s the mc version
Morgan
MorganOP9mo ago
yeh
nebula
nebula9mo ago
why do you want to change the java version i think its possible
Adam
Adam9mo ago
I doubt the java version is the issue here, try installing mods correctly using filebrowser and see if that fixes it
Morgan
MorganOP9mo ago
cuz its on version 17 rn lol and i'm trying to run a 1.19.2 forge server
Adam
Adam9mo ago
java version =/= minecraft version
Morgan
MorganOP9mo ago
yeah i know
Adam
Adam9mo ago
17 should be fine if it’s not screaming at you
Morgan
MorganOP9mo ago
but doesnt 1.19.2 require ^18?
Adam
Adam9mo ago
from experience, when mods silently fail without error messages, there’s an installation issue
Morgan
MorganOP9mo ago
Ok cool. How do i get the template on if i'm using the file browser? yeah
nebula
nebula9mo ago
No description
Adam
Adam9mo ago
deploy the template in the project, detach the volume from your mc server service and move it over
nebula
nebula9mo ago
you should be fine using 17
Adam
Adam9mo ago
move it back and redeploy when you’re done editing
Morgan
MorganOP9mo ago
whats the structure the mods folder needs?
nebula
nebula9mo ago
hold on
Morgan
MorganOP9mo ago
ohhhh interesting
nebula
nebula9mo ago
did you upload a log file?
Morgan
MorganOP9mo ago
nah probs should
nebula
nebula9mo ago
would help quite a bit to debug
Morgan
MorganOP9mo ago
one sec
Adam
Adam9mo ago
since you didn’t send one I assumed it was failing silently but that’s probably not a safe assumption
Morgan
MorganOP9mo 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
nebula9mo ago
well this is the current structure
No description
nebula
nebula9mo ago
it seems fine to me
Adam
Adam9mo ago
probably shouldn’t be zipped though?
Morgan
MorganOP9mo ago
what should it be then?
Adam
Adam9mo ago
unzipped
nebula
nebula9mo ago
no its fine
Morgan
MorganOP9mo ago
how does one upload a folder unzipped ok
nebula
nebula9mo ago
the image hes using uses zips for mods
Adam
Adam9mo ago
gotcha didn’t know that
nebula
nebula9mo ago
also @Morgan you're gonna have to change that pronouns field :/
Morgan
MorganOP9mo ago
how do i download my logs?
nebula
nebula9mo ago
not acceptable
Morgan
MorganOP9mo ago
sorryyyyy how do i download my logfile? cant seem to find the button
nebula
nebula9mo ago
not sure if theres a download option
Morgan
MorganOP9mo ago
ah ok
nebula
nebula9mo ago
lmfao brody has every tool under the sun
Morgan
MorganOP9mo ago
lol doesnt work on my browser but its ok ill just c/p shit that only got a bit of it
Brody
Brody9mo ago
what browser?
Morgan
MorganOP9mo ago
arc
nebula
nebula9mo ago
one sec
Morgan
MorganOP9mo 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
nebula9mo ago
thats fine!
Morgan
MorganOP9mo 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/[email protected]/com.electronwill.nightconfig.toml.TableParser.checkDuplicateKey(TableParser.java:88)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:59)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73)

at MC-BOOTSTRAP/[email protected]/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/[email protected]/com.electronwill.nightconfig.toml.TableParser.checkDuplicateKey(TableParser.java:88)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:59)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202)

at MC-BOOTSTRAP/[email protected]/com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73)

at MC-BOOTSTRAP/[email protected]/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
nebula9mo ago
use the MODPACK var not MODS
Morgan
MorganOP9mo ago
That did it! Any chance you know the internal difference in the package?
nebula
nebula9mo ago
wdym? MODS is for a list of mods, MODPACK is for a zip file
Morgan
MorganOP9mo ago
ah Thanks! how do i close the post?
Morgan
MorganOP9mo 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
Fragly9mo ago
set the USE_VOLUME_ROOT service variable in your Filebrowser service to 1
Morgan
MorganOP9mo ago
"something really went wrong" LOL @Fragly
Fragly
Fragly9mo ago
is that an error message or something?
Morgan
MorganOP9mo ago
No description
Fragly
Fragly9mo ago
that can't be good 💀
Morgan
MorganOP9mo ago
oh no config file used error @Brody
Fragly
Fragly9mo ago
( please do keep this rule in mind #🛂|readme #5 )
Morgan
MorganOP9mo ago
oopsie sorry guys will stop
Fragly
Fragly9mo ago
no worries
Want results from more Discord servers?
Add your server