LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-25-2012, 07:47 AM   #1
beasx
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
.sh file hangs or won't startup at all


Basically I have this VPS for like 2 weeks and I have been trying to figure out this problem, I have reinstalled OS so many times I had centos 5, centos 6, ubuntu 12 and currently I'm running ubuntu 11.

The same problem appeared on every OS I had installed I tried to install every java none worked still same problem, let me explain

so the problem appears with every server startup... What Im trying to run is runescape private server I have tried like 5 and none worked every had the same problem. I have chmodded the .sh file...

So sometimes when I try to run the file this happens:
http://i.imgur.com/jsjjm.png
Server wont startup at all and just freezes after i run the .sh file then I can type anything into the cmd and it won't do anything...

Then sometimes this happens
http://i.imgur.com/XDx3G.png
But the server doesnt work anyways after I try to connect it crashes I also have error log

And sometimes its about to startup but then it hangs on first line http://i.imgur.com/XHoB3.png


Here is the error log:
http://pastebin.com/u3Yr5WdJ

I have no idea what is the problem I tried everything ...

Thanks to anybody who could help me!
 
Old 07-25-2012, 09:16 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 7.7 (?), Centos 8.1
Posts: 17,782

Rep: Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538Reputation: 2538
1. in general, you don't start a daemon that way, as it then remains attached to the terminal, as you've noticed; try
Code:
nohup /path/to/script/run.sh &
2. you'll have to contact the developers to fix the Java code errors (or google).
 
Old 07-25-2012, 10:23 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,495

Rep: Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615Reputation: 2615
Quote:
The same problem appeared on every OS I had installed I tried to install every java none worked still same problem,
beasx ,I take it you are not aware that almost every linux distro is now using OpenJDK and is NOT using Oracle's java
and that OpenJDK is most likely ALREADY installed

so if you MUST replace it with Oracles version of java you need to uninstall openjdk and install oracles java
( think back to the ROYAL MESS with sun java and Microsoft's proprietary version of java )

so uninstall openjdk
or use alternatives to have both installed


Quote:
I have chmodded the .sh file...
what exactly did you do ?
this ?
Code:
su -
chmod +x *.sh
or something else

from this
http://i.imgur.com/jsjjm.png
you DID NOT install Oracle's java or if you did then OpenJDK is being used
( i take it you did NOT set "alternatives " to point to Oracles java )
"alternatives " is used so that more than one version of some program can be installed at the same time

Last edited by John VV; 07-25-2012 at 10:24 PM.
 
  


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
Fedora 16 hangs during startup during "Started NFS file locking service" CGBS Linux - Newbie 1 02-29-2012 07:03 PM
New Machine - Won't startup without commands and won't shutdown- Suse 10 superfran Linux - Newbie 4 11-17-2008 01:37 PM
startup hangs bob1 Linux - Newbie 3 01-04-2006 01:39 AM
My Redhat Linux 9 machine won't startup but gives a startup error" njugs79 Linux - Newbie 2 03-23-2005 12:50 AM
9.1 Hangs At Startup Monica976 SUSE / openSUSE 8 12-02-2004 07:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:59 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
Open Source Consulting | Domain Registration