Jump to content

Minecraft Forge 1.19 41.1.0 stopping upon closing SSH connection


PriestPoppy

Recommended Posts

Hello everyone, I'm running a forge 1.19 41.1.0 server for my friends on my VPS. In order to start it I use a .sh script with the following command line: 

#!/usr/bin/env sh
# Forge requires a configured set of both JVM and program arguments.
# Add custom JVM arguments to the user_jvm_args.txt
# Add custom program arguments {such as nogui} to this file in the next line before the "$@" or
#  pass them to this script directly
java @user_jvm_args.txt @libraries/net/minecraftforge/forge/1.19-41.1.0/unix_args.txt "$@"


user_jvm_args.txt:

# Xmx and Xms set the maximum and minimum RAM usage, respectively.
# They can take any number, followed by an M or a G.
# M means Megabyte, G means Gigabyte.
# For example, to set the maximum to 3GB: -Xmx3G
# To set the minimum to 2.5GB: -Xms2500M

# A good default for a modded server is 4GB.
# Uncomment the next line to set it.
-Xmx5G

I obviously run this on a screen (Ubuntu 20.4) so that it keeps running when I leave the server SSH connection, except that no, it does not keep running when I quit the SSH connection. I've already tried recreating the screen, leaving the screen before quitting SSH session (leaving the screen is just fine, the problem shows when I quit the whole session) and reinstalled screen. Any help? Any information that I missed and could help you help me? Thank you everyone!

 

logs/debug.log: https://samuele.site/rdr/debug.txt

logs/latest.log: https://samuele.site/rdr/latest.txt

 

Link to comment
Share on other sites

21 hours ago, ChampionAsh5357 said:

What is a screen? This seems like a linux specific question where you need to have the process attached to the background or not the current session terminal. You could probably just use tmux and run the command in there.

Running the command from my phone using LemonSSH seems to not have the same problem than running it with MobaXterm on my windows machine. From my phone I can safely leave the SSH connection without the server dying.

Link to comment
Share on other sites

On 10/12/2022 at 4:27 PM, ChampionAsh5357 said:

What is a screen? This seems like a linux specific question where you need to have the process attached to the background or not the current session terminal. You could probably just use tmux and run the command in there.

Regarding what a screen is, it is just an app that let you run stuff in background so you can leave sessisions. More here: https://www.google.com/url?sa=t&source=web&rct=j&url=https://linuxize.com/post/how-to-use-linux-screen/&ved=2ahUKEwiW-MXbwN36AhVvXvEDHc3LBuIQFnoECA8QAQ&usg=AOvVaw1uD-l7QuOCB2wtNohoUN6d

Link to comment
Share on other sites

I use tmux myself, but I just tried it using screen, and after detaching from the screen session and logging out of my SSH session, then relogging in, my process was still running and I was able to attach to it and it was still doing its thing.

Maybe it's your terminal software? I was using Putty.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.