R
Railway8mo 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
Percy8mo ago
Project ID: N/A
Morgan
Morgan8mo ago
N/A
Fragly
Fragly8mo 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
Adam8mo ago
I haven’t looked into changing the Java version, but changing the MC version is very easy. fragly was faster
Morgan
Morgan8mo ago
Thats the minecraft version right?
Adam
Adam8mo ago
yes
Fragly
Fragly8mo ago
oh yea, my fault
Morgan
Morgan8mo ago
yeah
Fragly
Fragly8mo ago
misread
Morgan
Morgan8mo 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
nebula8mo ago
how are you adding mods cuz its kinda wacky
Morgan
Morgan8mo ago
I have the mods source set as a discord CDN link to a zip file which was in this help form
nebula
nebula8mo ago
whats the zip file look like inside it has to be a specific structure
Morgan
Morgan8mo ago
its just a bunch of mods lol just a bunch of compressed files
Morgan
Morgan8mo ago
Adam
Adam8mo 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
Morgan8mo ago
not bad but i still need to know how to change the java version :rooKek:
nebula
nebula8mo ago
VERSION envvar
Adam
Adam8mo ago
that’s the mc version
Morgan
Morgan8mo ago
yeh
nebula
nebula8mo ago
why do you want to change the java version i think its possible
Adam
Adam8mo ago
I doubt the java version is the issue here, try installing mods correctly using filebrowser and see if that fixes it
Morgan
Morgan8mo ago
cuz its on version 17 rn lol and i'm trying to run a 1.19.2 forge server
Adam
Adam8mo ago
java version =/= minecraft version
Morgan
Morgan8mo ago
yeah i know
Adam
Adam8mo ago
17 should be fine if it’s not screaming at you
Morgan
Morgan8mo ago
but doesnt 1.19.2 require ^18?
Adam
Adam8mo ago
from experience, when mods silently fail without error messages, there’s an installation issue
Morgan
Morgan8mo ago
Ok cool. How do i get the template on if i'm using the file browser? yeah
nebula
nebula8mo ago
No description
Adam
Adam8mo ago
deploy the template in the project, detach the volume from your mc server service and move it over
nebula
nebula8mo ago
you should be fine using 17
Adam
Adam8mo ago
move it back and redeploy when you’re done editing
Morgan
Morgan8mo ago
whats the structure the mods folder needs?
nebula
nebula8mo ago
hold on
Morgan
Morgan8mo ago
ohhhh interesting
nebula
nebula8mo ago
did you upload a log file?
Morgan
Morgan8mo ago
nah probs should
nebula
nebula8mo ago
would help quite a bit to debug
Morgan
Morgan8mo ago
one sec
Adam
Adam8mo ago
since you didn’t send one I assumed it was failing silently but that’s probably not a safe assumption
Morgan
Morgan8mo 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
nebula8mo ago
well this is the current structure
No description
nebula
nebula8mo ago
it seems fine to me
Adam
Adam8mo ago
probably shouldn’t be zipped though?
Morgan
Morgan8mo ago
what should it be then?
Adam
Adam8mo ago
unzipped
nebula
nebula8mo ago
no its fine
Morgan
Morgan8mo ago
how does one upload a folder unzipped ok
nebula
nebula8mo ago
the image hes using uses zips for mods
Adam
Adam8mo ago
gotcha didn’t know that
nebula
nebula8mo ago
also @Morgan you're gonna have to change that pronouns field :/
Morgan
Morgan8mo ago
how do i download my logs?
nebula
nebula8mo ago
not acceptable
Morgan
Morgan8mo ago
sorryyyyy how do i download my logfile? cant seem to find the button
nebula
nebula8mo ago
not sure if theres a download option
Morgan
Morgan8mo ago
ah ok
nebula
nebula8mo ago
lmfao brody has every tool under the sun
Morgan
Morgan8mo ago
lol doesnt work on my browser but its ok ill just c/p shit that only got a bit of it
Brody
Brody8mo ago
what browser?
Morgan
Morgan8mo ago
arc
nebula
nebula8mo ago
one sec
Morgan
Morgan8mo 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
nebula8mo ago
thats fine!
Morgan
Morgan8mo 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
nebula8mo ago
use the MODPACK var not MODS
Morgan
Morgan8mo ago
That did it! Any chance you know the internal difference in the package?
nebula
nebula8mo ago
wdym? MODS is for a list of mods, MODPACK is for a zip file
Morgan
Morgan8mo ago
ah Thanks! how do i close the post?
Morgan
Morgan8mo 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
Fragly8mo ago
set the USE_VOLUME_ROOT service variable in your Filebrowser service to 1
Morgan
Morgan8mo ago
"something really went wrong" LOL @Fragly
Fragly
Fragly8mo ago
is that an error message or something?
Morgan
Morgan8mo ago
No description
Fragly
Fragly8mo ago
that can't be good 💀
Morgan
Morgan8mo ago
oh no config file used error @Brody
Fragly
Fragly8mo ago
( please do keep this rule in mind #🛂|readme #5 )
Morgan
Morgan8mo ago
oopsie sorry guys will stop
Fragly
Fragly8mo ago
no worries
Want results from more Discord servers?
Add your server