Linux install issues

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

fourfour
Posts: 10
Joined: 04 Feb 2007, 10:57

Linux install issues

Postby fourfour » 04 Feb 2007, 11:03

I know this is a common issue, but I have been trying for a few hours and finally broke down to ask for help. I just bought new hosting today just to install smartFoxServer. It is a linux server with 256 RAM/ 512 burst ram. I have tried intalling the server multiple times with no luck. There is no java on the server.

./start.sh: line 1: java: command not found
-bash-3.00$ ./sfs start
Starting SmartFoxServer PRO...
-bash-3.00$ ./sfs console
Running SmartFoxServer PRO...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
wrapper | Unable to start a JVM
jvm 1 | wrapper | Unable to start JVM: No such file or directory (2)\
wrapper | <-- Wrapper Stopped
-bash-3.00$

This is the error i get. I tried searching through posts and trying many things. Any help would be appreciated.

I am trying to install Pro.

Thanks!!
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 04 Feb 2007, 14:37

the first thing you have to do, after uncompressing the archive, is to launch the installer.
Did you do so?
Did you get any errors during the installation process?
Lapo
--
gotoAndPlay()
...addicted to flash games
fourfour
Posts: 10
Joined: 04 Feb 2007, 10:57

Postby fourfour » 04 Feb 2007, 19:55

Yes the install said it went fine. I installed it in the directory ../server
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 04 Feb 2007, 20:09

okay, now you can move to that directory and launch it
Lapo

--

gotoAndPlay()

...addicted to flash games
fourfour
Posts: 10
Joined: 04 Feb 2007, 10:57

Postby fourfour » 04 Feb 2007, 20:15

Ya, I have tried that. It says it is starting, then when I do ./sfs status it says it is not running?
fourfour
Posts: 10
Joined: 04 Feb 2007, 10:57

Postby fourfour » 04 Feb 2007, 20:18

Do I need to start it as a daemon first? I cannot find out the path from root to the httpdocs directory. I am on a new server...
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 04 Feb 2007, 20:34

I don't understand your question :?:
All you need to do is to move to the folder where you installed the server to and use
./server start
to run the server
Lapo

--

gotoAndPlay()

...addicted to flash games
fourfour
Posts: 10
Joined: 04 Feb 2007, 10:57

Postby fourfour » 04 Feb 2007, 20:41

This is what I am doing:

Last login: Sun Feb 4 12:45:33 2007 from ip68-227-84-57.sb.sd.cox.net
-bash-3.00$ cd httpdocs/server/SFS_PRO_1.5.0/Server
-bash-3.00$ ls
bannedUsers.sfs javaExtensions logs sfsExtensions webserver
conf lib runAsService start().sh wrapper
config.xml licence.sfl sfs start.sh wrapper.log
-bash-3.00$ ./sfs start
Starting SmartFoxServer PRO...
-bash-3.00$ ./sfs status
SmartFoxServer PRO is not running.
-bash-3.00$ ./sfs console
Running SmartFoxServer PRO...
wrapper | --> Wrapper Started as Console
wrapper | Launching a JVM...
wrapper | Unable to start a JVM
jvm 1 | wrapper | Unable to start JVM: No such file or directory (2)
wrapper | <-- Wrapper Stopped
-bash-3.00$

It says it is not running. I really appreciate your help.
fourfour
Posts: 10
Joined: 04 Feb 2007, 10:57

Postby fourfour » 04 Feb 2007, 20:48

Is there any way I can pay you a fee to install?
rcox
Posts: 15
Joined: 19 Jan 2007, 20:52
Location: San Jose, CA

Postby rcox » 14 Feb 2007, 00:28

fourfour wrote:Is there any way I can pay you a fee to install?


fourfour, this seems to be a common problem. I too found that the SF installer is broken on linux. Your problem can be fixed by doing this:

1. Go into to the Server/ directory
2. ln -s ../jre/bin/java

Then try again. Good luck.
MRayx13
Posts: 9
Joined: 04 May 2007, 23:48

Postby MRayx13 » 05 May 2007, 10:12

I havea very similar problem also. I installed the server fine on my CentOS 4 Linux, but I get the following error when I try to start the server :

[root@ip-208-109-237-183 Server]# ./sfs start
Starting SmartFoxServer PRO...
[root@ip-208-109-237-183 Server]# ./sfs status
SmartFoxServer PRO is not running.
[root@ip-208-109-237-183 Server]# ./sfs console
Running SmartFoxServer PRO...
wrapper | ERROR: Could not write pid file /root/sfs/SFS_BASIC_1.5.5/Server/runAsService//SmartFoxServer.pid: No such file or directory
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 05 May 2007, 10:33

The Linux version of SFS BASIC was originally packed with a missing folder -> runAsService.
You just need to create it inside your Server/ folder with this command:

Code: Select all

mkdir runAsService


We apologize for the inconvenience. The current version available for download is now fixed
Lapo

--

gotoAndPlay()

...addicted to flash games
MRayx13
Posts: 9
Joined: 04 May 2007, 23:48

Postby MRayx13 » 07 May 2007, 08:17

The problem still persists. I can't run the server via ./sfs start, the same error happens. ./start.sh works and the server runs smoothly but after about an hour, the server shuts itself down without any warning.
ridibona
Posts: 1
Joined: 22 Nov 2008, 08:57
Contact:

Ridibona

Postby ridibona » 22 Nov 2008, 09:00

Before you do ./sfs start .
Go ahead and open up config.xml and change the IP address to your server IP, and then do:

./sfs start

Hope it helps.
poppysan
Posts: 1
Joined: 23 Nov 2008, 21:57

Still Doesnt work

Postby poppysan » 23 Nov 2008, 22:06

I have the latest Smartfox and am experiencing the same issues. I start it in Linux, (./sfs start) and it says Starting Smartfox server pro...

Then i check the status and it says that it is not running. My config has my ip address, and the crossdomain policy, as well as the port, but still it does not work.

I really need to launch my app and this is the last hurdle. Everything works locally (windows).

Any help is appreciated!

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 32 guests