LinuxQuestions.org
Help answer threads with 0 replies.
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 09-10-2012, 09:00 PM   #31
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288

Hi,

it's strange that it seems to exit immediately without any output. Are there any log files created? Also what is the exit code? Ie the output from
Code:
% java -Xms384M -Xmx384M -jar ~/minecraft_server.jar nogui
% echo $?
I think you should try java with the -verbose option on. Eg
Code:
% java -verbose -Xms384M -Xmx384M -jar ~/minecraft_server.jar nogui
If this spits out too much text you can pipe it into a file. Eg
Code:
% java -verbose -Xms384M -Xmx384M -jar ~/minecraft_server.jar nogui >& verbose.log

The other thing that seems odd is the fact that you tried to run it in two different locations.
Do you have two different versions of minecraft_server.jar? Also, when you are in ~ you run it
with the option "nogui.", but in ~/Metroville with "nogui". Can you explain what you are doing?

Evo2.
 
Old 09-10-2012, 09:05 PM   #32
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

it's strange that it seems to exit immediately without any output. Are there any log files created? Also what is the exit code? Ie the output from
Code:
% java -Xms384M -Xmx384M -jar ~/minecraft_server.jar nogui
% echo $?
I think you should try java with the -verbose option on. Eg
Code:
% java -verbose -Xms384M -Xmx384M -jar ~/minecraft_server.jar nogui
If this spits out too much text you can pipe it into a file. Eg
Code:
% java -verbose -Xms384M -Xmx384M -jar ~/minecraft_server.jar nogui >& verbose.log

The other thing that seems odd is the fact that you tried to run it in two different locations.
Do you have two different versions of minecraft_server.jar? Also, when you are in ~ you run it
with the option "nogui.", but in ~/Metroville with "nogui". Can you explain what you are doing?

Evo2.
No feedback.

By locations do you mean the metroville folder? the minecraft_server is in there.
 
Old 09-10-2012, 09:07 PM   #33
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Sorry, by locations I meant what I said in the next sentence, ie ~ vs ~/Metroville.

No feedback? Even "echo $?"? Even when run with -verbose?

Evo2.
 
Old 09-11-2012, 02:32 PM   #34
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Sorry, by locations I meant what I said in the next sentence, ie ~ vs ~/Metroville.

No feedback? Even "echo $?"? Even when run with -verbose?

Evo2.
echo $ replied with 0, other than that no.

The nogui. and nogui was just the I copied any pasted it

Last edited by BMX_ATVMAN14; 09-11-2012 at 02:34 PM.
 
Old 09-11-2012, 06:18 PM   #35
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

ok what about just running java in verbose mode without the jar file. Ie
Code:
java -verbose
Again, redirect the output to a file if there is too much.

Evo2.
 
Old 09-11-2012, 06:22 PM   #36
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

ok what about just running java in verbose mode without the jar file. Ie
Code:
java -verbose
Again, redirect the output to a file if there is too much.

Evo2.
Code:
[minecraft@metroville ~]$ java -verbose
[minecraft@metroville ~]$  java -Xmx384M -Xms384M -jar minecraft_server.jar nogui
[minecraft@metroville ~]$
 
Old 09-11-2012, 06:27 PM   #37
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

alright we need to go back to confirming what is really being run when you run "java".
Please try the following and post the output.
Code:
which java
which readlink
readlink -f $(which java)
file $(readlink -f $(which java))
ls -l $(readlink -f $(which java))
Evo2
 
Old 09-11-2012, 06:38 PM   #38
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

alright we need to go back to confirming what is really being run when you run "java".
Please try the following and post the output.
Code:
which java
which readlink
readlink -f $(which java)
file $(readlink -f $(which java))
ls -l $(readlink -f $(which java))
Evo2
Thanks for all the help

Code:
login as: minecraft
minecraft@209.236.121.16's password:
Last login: ---
[minecraft@metroville ~]$ which java
/usr/bin/java
[minecraft@metroville ~]$ which readlink
/bin/readlink
[minecraft@metroville ~]$ readlink -f $(which java)
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
[minecraft@metroville ~]$ file $(readlink -f $(which java))
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java: empty
[minecraft@metroville ~]$
[minecraft@metroville ~]$ ls -l $(readlink -f $(which java))
-rwxr-xr-x 1 root root 0 Sep  5 21:24 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
[minecraft@metroville ~]$
 
Old 09-11-2012, 06:48 PM   #39
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

well, do you see the problem? Your "java" is a completely empty file. I don't know how that happened, but it looks like you need to reinstall java. AFAIK, yum does not have a reinstall option, so I think you should use "yum remove" and then "yum install" for java-1.6.0-openjdk-1.6.0.0-1.49.1.11.4.el6_3.x86_64 (as discussed in post #16). After that rerun the commands from post #37 so we can see what the status is.

Evo2.
 
Old 09-11-2012, 06:53 PM   #40
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Code:
[root@metroville ~]# which java
/usr/bin/java
[root@metroville ~]# which readlink
/bin/readlink
[root@metroville ~]#
[root@metroville ~]# readlink -f $(which java)
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
[root@metroville ~]# file $(readlink -f $(which java))
/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@metroville ~]# ls -l $(readlink -f $(which java))
-rwxr-xr-x 1 root root 36072 Sep  3 09:55 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java
Thanks!
 
Old 09-11-2012, 06:56 PM   #41
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

ok, things are looking sane now. Time to try running the standard minecraft server again.

Evo2.
 
Old 09-11-2012, 06:59 PM   #42
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

ok, things are looking sane now. Time to try running the standard minecraft server again.

Evo2.
Thanks sooo much man!
 
Old 09-11-2012, 07:02 PM   #43
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Another question, how do I keep the server up when I close my SSH program?
 
Old 09-11-2012, 07:06 PM   #44
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

you could use "screen" or "tmux" for this. I just did a quick web search and it seems these are a pretty standard approach for people running minecraft servers. See for example:

http://duckduckgo.com/?q=minecraft+screen+tmux

Evo2.
 
Old 09-11-2012, 07:12 PM   #45
BMX_ATVMAN14
LQ Newbie
 
Registered: Sep 2012
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

you could use "screen" or "tmux" for this. I just did a quick web search and it seems these are a pretty standard approach for people running minecraft servers. See for example:

http://duckduckgo.com/?q=minecraft+screen+tmux

Evo2.
Got it, thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Iptables can't port forward (PAT Port address translation) sfrederiksen Linux - Networking 7 12-20-2011 10:47 AM
If I forward a port in iptables, does the port have to be open on the firewall? qwertyjjj Linux - Server 4 08-06-2009 09:22 AM
A way to forward an IP/Port to another system's IP/Port astroboy5714 Linux - Networking 6 01-26-2004 05:45 PM
how to port forward - correctly 68javelin Linux - Software 0 11-16-2002 06:47 PM
Forward port port 80 to lan web server dulaus Linux - Networking 9 10-04-2002 03:45 AM

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

All times are GMT -5. The time now is 02:19 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration