LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-11-2023, 09:30 PM   #1
Coopzor
LQ Newbie
 
Registered: Nov 2023
Posts: 2

Rep: Reputation: 0
Minecraft server on Ubuntu server question


Hey everyone,

I'm very new to using Linux and was trying to setup a modded minecraft server on ubuntu server.

I have the minecraft server running in screen so that it can run continuously. I have ssh set up so I can access the server from my desktop. The server runs perfectly right up until I close the ssh connection. Then the minecraft server is still running fine but can't contact mojang when people try to log in, so without access to their authentication servers the connections are declined.

Opening the ssh connection again, then the minecraft server can once again contact the authentication servers.

Not sure what's going on here, any help would be greatly appreciated.

Thanks
 
Old 11-11-2023, 09:42 PM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
How about when you background it using screen?
 
Old 11-11-2023, 10:17 PM   #3
Coopzor
LQ Newbie
 
Registered: Nov 2023
Posts: 2

Original Poster
Rep: Reputation: 0
At first detaching from the screen was fine. After closing the ssh session and coming back later opening the ssh didn't bring it straight back, I had to reattach to the screen before connection was restored.
 
Old 11-12-2023, 12:06 PM   #4
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,767

Rep: Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764Reputation: 2764
I have run minetest server and not observed this behavior, but I do not run minecraft. Has it no daemon mode?

From the documentation I would presume that minecraftd should run fine and not care if you have ssh sessions open or not. If you are starting it as a user process you may need background it and detach it from your session.

Do you know how to start processes that way?

Last edited by wpeckham; 11-12-2023 at 12:09 PM.
 
Old 11-21-2023, 12:03 PM   #5
adeolaad
LQ Newbie
 
Registered: Nov 2023
Posts: 1

Rep: Reputation: 0
The issue you're facing might be related to the SSH session closing and affecting the server's network access. You could try using a tool like tmux or nohup to keep the Minecraft server running even when you disconnect from SSH. This way, it should maintain connectivity with Mojang's servers.

Also, have you considered taking a break and trying out Cash Giraffe? It's a fantastic way to earn some extra cash by testing out new mobile games during your downtime. It's a win-win – gaming and making money!

Last edited by adeolaad; 11-24-2023 at 01:14 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Minecraft NFC -- How one man took Minecraft to the next level LXer Syndicated Linux News 0 02-21-2016 05:53 AM
[SOLVED] Launch Minecraft and Minecraft server as non-root user Hasek39 Linux - General 4 01-04-2016 03:06 AM
Minecraft world trickery (and even minecraft on ipad) lhartvik LinuxQuestions.org Member Success Stories 2 05-28-2015 01:32 AM
LXer: GOL MineCraft Weekly. Grab Issue 2 Today, Linux Minecraft server LXer Syndicated Linux News 0 08-04-2013 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration