LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-17-2012, 01:11 AM   #1
Magic1022
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
My vps (Screen is terminating)


Ok so I just bought my vps for a minecraft server its linux and for some reason when ever i do the command (screen sh minecraft.sh) it says (Screen is terminating) i really need help on this.
 
Old 04-17-2012, 01:21 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello and welcome to LinuxQuestions,

What exactly are you trying to do? I imagine you want to start screen and next the minecraft script inside a screen session to avoid it terminating when you logout. Is that correct? You can start screen and directly open a SSH connection for example like this:
Code:
screen ssh servername
but that doesn't work for local scripts or commands AFAIK. What you could do is just launch screen, start your script inside the session and detach screen:
Code:
screen
sh minecraft.sh
CTRL-a CTRL-d
After that you can check if your screen session is running with:
Code:
screen -ls
and re-attach with:
Code:
screen -r
Once your screen session is running you can safely logout of your server. Hope this helps.

Kind regards,

Eric
 
Old 04-17-2012, 01:27 AM   #3
Magic1022
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Yea im trying to make it not turn off my server when I log off screen.I will try the codes give me a second.
 
Old 04-17-2012, 01:37 AM   #4
Magic1022
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I did

screen
sh minecraft.sh
CTRL-a CTRL-d i detached it
screen -ls
screen -r
do i do (exit) and do screen sh minecraft.sh
or do i stay in screen and do screen sh minecraft.sh?
 
Old 04-17-2012, 01:40 AM   #5
Magic1022
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Could I just uninstall screen then reinstall it a get a fresh file?But i don't know where to locate the screen file.
 
Old 04-17-2012, 01:41 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

You execute screen by typing only screen on the command line:
Code:
screen <ENTER>
Next you'll be inside your screen session. That's when you type the command to start your minecraft:
Code:
sh minecraft.sh <ENTER>
and you detach your screen session which will bring you back to your 'normal' console prompt.
Code:
CTRL-a CTRL-d
and check if your screen session is running with:
Code:
screen -ls <ENTER>
If it is, you can safely logout of your server, log back in when needed and re-attach to your screen session with:
Code:
screen -r <ENTER>
Kind regards,

Eric

---------- Post added 17-04-12 at 08:42 ----------

Quote:
Originally Posted by Magic1022 View Post
Could I just uninstall screen then reinstall it a get a fresh file?But i don't know where to locate the screen file.
Hi,

Why would you do that? What error are you encountering that makes you think you need to uninstall screen?

Kind regards,

Eric
 
Old 04-17-2012, 01:53 AM   #7
Magic1022
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
When i do (sh minecraft.sh and press enter) it says

Error occurred during during initialization of VM
Could not reserve enough space for object heap
Could not create the java virtual machine.
 
Old 04-17-2012, 02:34 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

That error indicates that you cannot start an instance of the Java Virtual Machine which apparently is needed by the application you're trying to run. How much RAM (and how much free) do you have on your VPS? I had the same problem with 'our' software here and had to add RAM because Java needed at least 1Gb free.

Kind regards,

Eric
 
Old 04-17-2012, 03:07 PM   #9
Magic1022
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
I have 6GB ram vps i dont know how much storage though it didn't say here is the website,

www.diamondhosting.net
 
Old 04-18-2012, 12:49 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

And how much RAM do you have free and what are the RAM requirements for Minecraft? What's mentioned in minecraft.sh with regards to RAM or starting Java?

Kind regards,

Eric
 
Old 05-02-2012, 12:16 AM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Can you give an update on your situation? Is your problem solved or are you still looking for a solution?

Kind regards,

Eric
 
  


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
How to redirect all traffic from a VPS to another VPS 124748768 Linux - Networking 0 07-08-2011 10:36 AM
Linux screen is terminating without known reason ivangotoy Linux - Server 3 04-03-2008 02:01 PM
terminating this munna_dude Linux - Software 1 01-27-2007 04:22 AM
Where can I download UML VPS or Xen VPS to make a virtual private server? abefroman Linux - Software 3 12-09-2005 10:00 AM
Terminating one thread from another orinjus Programming 2 05-20-2004 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:38 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