Hosting a modded Minecraft server
Hi guys!
I'm trying to host a modded minecraft server through Railway using the
Minecraft Server
template and I am running into a couple roadblocks:
- First off, after reading the documentation for itzg/minecraft-server
I've set up forge to auto-download, and it downloads most mods but some need to be added manually, which leads me to my first problem: How do I edit files on a volume?
- My second issue is that the process crashes, but it could be caused by the first issue so I'm gonna assume I need to resolve the first problem first.72 Replies
Project ID:
a6b6f3d5-e3db-4176-8ddf-4f2ad846cfd2
@ThallesComH - you're up
for downloading other mods, you'll have to upload it somewhere and provide a direct download link through the
MODS=
environment variable.
example:
The mods I'm referring to are on Forge, some are just set to not auto-download
But ok, I'll try that
I do have a server set up on my machine currently, is there any way to upload my files directly to the volume? (I'd like to have my world as well, which is why I'm asking)
railway doesn't provide any upload interface for the volume, interacting with the volume is only done by the service that's connected to it
The way I thought to get around it was detaching the volume and connecting some s3/ftp service or something along those lines, do you think that'd work?
yes that would work, as long as you are already okay with doing something like that, use this https://railway.app/template/Nan7Bs with a service variable
USE_VOLUME_ROOT
set to 1
ok so two questions; How do I access it and where do I mount the volume?
access it from the railway domain the service is given, mount point doesn't matter at all
Ok, I'll check it out now
it comes with a volume, but just unmount it and remount yours
It actually didn't, ngl
it does
it's shown in the template
Dunno what to tell you, I added the service in my project and it came with no volume attached
well then railway bug
Oh cool, I love finding those
I'll report it in a bit (unless you'd like to verify it and report it yourself)
question, how would I verify it myself?
Create some other project, then add the service from template
oh you're talking about that, nah railway will sort it out
Oh I'm sure they will, I'd like to report it anyways tho just to be safe
if you can reproduce it, go for it
That's the plan :)
Anyways thanks for the help, I'm currently uploading all the files and restarting the service, then I'll see about if it crashes and so on
sounds good
ok, crash loop achieved
Here's the error:
How fun
alright we need @ThallesComH again
figures ¯\_(ツ)_/¯
usually this kinda of problems appear because of wrong java version or wrong mc version.
what mc version are u using?
and btw, im seeing somethings from sponge (another server software)
Good question about the Java version, I just cloned the
Minecraft Server
template so I'm not really sure - how would I check?
I set TYPE
to FORGE in the environment variables, so this shouldn't be happening. That's weird.i was talking more about the mod being a sponge only, but that's just a guess, maybe they're just using a library from sponge
Java - Minecraft Server on Docker (Java Edition)
Documentation for Minecraft Server on Docker
https://www.curseforge.com/minecraft/modpacks/create-mod-plus
This is the modpack if that helps
does it work local?
Yeah
so yeah it's probably not the mod then, check the java version and mc version
Also, the server should be using Java 17 and according to the page you sent seems the docker should be using the same version
Yep, Java version 17
I am actually using v17 locally as well, so it really should work
did you set the mc version to 1.18?
How do I do that? I didn't know I needed to
it defaults to the latest version, which is 1.20 currently i think
let me get it for you
Minecraft - Minecraft Server on Docker (Java Edition)
Documentation for Minecraft Server on Docker
ok, I set it to 1.18, waiting for the deployment
Seems to be much of the same?
Also on startup it's setting the max RAM to 1G which is probably not a great idea
Wait, seems as though I need to specify 1.18.2 and not just 1.18?
yeah that i was going to say
set it to 1.18.2
you can change that
Done. Waiting for deployment
It seems to be up? Where do I make a public domain,
Minecraft Server
or Ngrok
the public domain is printed in the ngrok service
It wasn't there, but I generated one
I'm launching minecraft to see if it's up, one second
no, it's in the logs of ngrok service
i've to make that clear, people dont know about the readme in the template
Yeah I just assumed it'd use the "public domains" thing in Railway
I do see it tho, checking now
It was definitely not up, but it didn't crash either it seems? I'm trying to restart the service and see if that works
Ooh boy
is that the full logs?
oh you're trying to load a mod that is only client side
usually mods have a dedicated jar only for servers
Yeah I'm removing it now
It's weird tho, I copied the mods folder from my local server which was running
you didn't added that
mods
env right?I did not, no
Could've been remnants of the auto-download thing
ok, maybe some mod that auto-downloaded was client only?
Maybe because I linked it the normal modpack? Could it just not know to grab the server pack from curseforge?
yeah, it probably just download the most recent one or something like that
New error:
start from the zero, will probably solve that lock file
What?
i'll see after if there's a dashboard for mc servers, will facilitate the process
delete everything and start from ground up
Oh ok, lemme try
Ok I deleted the world folder, it's currently generating (which seems to be a good sign)
!!!
Thank you so so much! to both of you guys!
:)