#Forge minecraft server wont start.

139 messages · Page 1 of 1 (latest)

trail impBOT
#

At your service, @random trail!

The IP address you have assigned to your server is not actually available for use on your machine. Node allocation creation is explained in the Wings install documentation: https://pterodactyl.io/wings/1.0/installing.html#node-allocations

Execute the command hostname -I | awk '{print $1}' and change your Node allocations to use this IP. Yes, it can be your internal/local IP when you're behind NAT. When behind NAT you will allocate the internal IP and connect using the public IP.

If you have added multiple public IPs to your network interface, you can view all of them using the command ip a | grep "inet "

random trail
#

i have a new error container@pterodactyl~ Server marked as starting...
[Pterodactyl Daemon]: Pulling Docker container image, this could take a few minutes to complete...
Pulling from pterodactyl/yolks
Digest: sha256:0f2696062e6f05f08687935625b0da6272817c41d4d424934934ce707ec4ee67
Status: Image is up to date for ghcr.io/pterodactyl/yolks:java_21
[Pterodactyl Daemon]: Finished pulling Docker container image
container@pterodactyl~ java -version
openjdk version "21.0.3" 2024-04-16 LTS
OpenJDK Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.3+9 (build 21.0.3+9-LTS, mixed mode, sharing)
container@pterodactyl~ java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar
Error: Unable to access jarfile server.jar
container@pterodactyl~ Server marked as offline...
[Pterodactyl Daemon]: ---------- Detected server process in a crashed state! ----------
[Pterodactyl Daemon]: Exit code: 1
[Pterodactyl Daemon]: Out of memory: false
[Pterodactyl Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.

cosmic leaf
#

“Unable to access jarfile server.jar”

#

you probably didn’t specify the right jar path or name

random trail
# cosmic leaf read…

im not dense, the panel is meant to download it from the details i put in, i have done it in the past

#

but it isnt pulling the server jar from online

#

so idk what to do

cosmic leaf
#

which egg are you using?

random trail
#

the one that came with the panel

hallow yoke
#

Look at the install logs to find out what went wrong. .logs in #egg-help will give you the command.

cosmic leaf
#

if this is a new server first thing i’d try is reinstall, typically when you use the forge egg the startup script looks a bit different than what you have

cosmic leaf
random trail
random trail
#

didnt make one for a month, come back and its not working

cosmic leaf
#

you don’t need to reinstall the panel or os that is the issue it’s specifying the jar

#

are the files there at least?

#

like the default ones

random trail
#

some are

#

not sure if its all though

cosmic leaf
#

also what version are you trying to install

random trail
#

1.20.1-47.2.0

cosmic leaf
#

mc version not forge version ^

#

okie

#

do you have a forge-xxxx-installer.jar?

random trail
#

i dont believe i need that for the server

#

the egg pulls everything i need from online

#

should do anyway

cosmic leaf
#

well that’s typically included with the egg which is why i asked

#

depending on which version, for 1.20.1 at least not 100% sure abt below that

random trail
#

yea

#

also how do i get the error log thing that guy asked for before??

cosmic leaf
#

well that’s for the installation process which really won’t give you much detail as it didn’t actually fail it’s just not working properly

#

do you have a path that’s something like

libraries/net/minecraftforge/forge/1.20.1-47.3.7

random trail
#

not sure

#

where do i check?

cosmic leaf
#

in the server panel

#

like the file explorer

random trail
#

jus this

cosmic leaf
#

yes open libraries

#

and let me see what’s in there

random trail
cosmic leaf
#

okay open net

#

then minecraftforge

random trail
#

is it this top one you were on abt??

cosmic leaf
#

yes

random trail
#

i dont have the server.jar tho

cosmic leaf
#

this is the server jar… server.jar is just an arbitrary name but this is the file you are looking for

#

java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.20.1-47.3.7/unix_args.txt "$@"

#

your startup should look like that but change the version to whatever yours is

#

do you know how to change the startup script in the admin panel?

random trail
#

yea

cosmic leaf
#

okay change it to that and try it

random trail
#

i dont have that top file though is what i mean

#

isnt that what ur on abt?

cosmic leaf
random trail
#

alr

cosmic leaf
#

so as long as you didn’t mess with that or the jvm file in the root directory it should work

random trail
#

i thought you meant changing the server.jar file name

#

mb

cosmic leaf
#

go there but for your panel

#

the click ur server

#

then startup

#

and copy what i sent and replace the one that’s there now

#

and change it to the minecraft & forge version you have

#

that you saw in the path

random trail
#

alr, will do that now

cosmic leaf
#

and press update build configuration

#

or save modifications not update build config

random trail
#

did something new

#

but still not working

cosmic leaf
#

send screeenshot

random trail
#

just more errors 😭

cosmic leaf
#

do you have ssh access to this server?

random trail
#

yep

cosmic leaf
#

okay ssh in

sudo -i

cd /var/lib/pterodactyl/volumes/container-id

^ replace with actual command to get into ur server but it’ll be something like that

chmod +x run.sh

./run.sh

#

this will start the server with the shell script and if that doesn’t work then there’s a larger issue which will need to be fixed

#

but if that works then we know it’s just a config/startup parameter issue

random trail
#

i dont know the command to get into server, how do i find it??

dull coyote
#

Did you ever post your install logs ?

random trail
#

1 sec

#

that it?

random trail
#

oh ok

cosmic leaf
#

It looks like your install has failed.
We need your install logs to see why the install may have failed. Use the command below on your Wings machine SSH terminal.

If you are on 1.x:
tail -n 1000 $(ls -Alrt /var/log/pterodactyl/install/*.log | tail -1 | sed 's/ */ /g' | cut -s -d' ' -f9) | nc pteropaste.com 99
If you are on or upgraded from 0.7:
tail -n 1000 $(ls -Alrt /srv/daemon/config/servers/*/install.log | tail -1 | sed 's/ */ /g' | cut -s -d' ' -f9) | nc pteropaste.com 99

#

there

#

that is log instructions

dull coyote
#

They've already got it

random trail
#

thanks

#

??

dull coyote
#

Are you running as root ?

random trail
#

whats the command to do that

dull coyote
#

run sudo su first

random trail
#

alr

#

did the command

#

what now

dull coyote
#

You give us the link it gave you

random trail
dull coyote
#

Yep your install failed

random trail
#

wonderful

dull coyote
#

What memory limit did you assign to the server ?

random trail
#

30gb

#

i have 32gb in total

#

i just did what the tutorial told me to do, leave 2gb spare

dull coyote
#

What is the Allocated Memory set to under Build Configuration set to for this server ?

random trail
#

0

#

so its unlimitted

dull coyote
#

There's your problem

#

Assigned a real and reasonable limit to the server

#

and click the reinstall button

random trail
#

will do

#

i just used to do that is all

#

still crashing the same way

#

i gave it 12gb

dull coyote
#

and you click the button to reinstall ?

random trail
#

nope, i just restarted it mb

#

it worked

#

still confused why it doesent let me do the 0 thing though

#

cus i used to do it

#

thank you very much for all ur help though

dull coyote
#

When the installer script runs it runs in a special container, the memory limit on that container is either the game servers memory limit, or a limit set in the wings config. What ever is larger

#

But the limit set by default in the wings config file isn't enough to run the forge installer

random trail
#

oh ok

dull coyote
#

and 0 is of course smaller than the wings default limit, so all it gets is the wings default limit

random trail
#

alr

#

well, thank you again, cus i wouldnt of figured that out other wise