Linux install issues

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

Moderators: Lapo, Bax

turnA
Posts: 6
Joined: 26 Jan 2009, 04:59

Re: Resolve it

Postby turnA » 15 Feb 2009, 02:36

Ceciaman wrote:Ok,
find the problem.

When unpack program from root to home folder, in "Server/config" open file wrapper.conf and swap relative link.

Now work :P


Hi ceciaman, can you explain better your solution? This will be helpful.
Thanks!
Ceciaman
Posts: 45
Joined: 13 Feb 2009, 11:35

Postby Ceciaman » 15 Feb 2009, 10:52

Hi turnA,

the problem if you see in ./sfs console
jvm 1 | wrapper | Unable to start JVM: No such file or directory (2)
is the jvm don't start because don't find directory.

Open in conf folder the file "wrapper.conf" and change the directory of files with right directory.

1) I have "root" as primary folder where i've upload SFS.tar.gz
2) I unpacked in new folder "home" in the same level of folder "root"

LINUX

-root
-var
-usr
-home
.....

when i open wrapper.conf i found a directory "../home/SFS...../" and i changed it with "./".

Now all work

./sfs start | stop | console work

Server work from 2 days, and use admin.swf to Restart change and control multiplayer.
turnA
Posts: 6
Joined: 26 Jan 2009, 04:59

Postby turnA » 17 Feb 2009, 01:10

Ceciaman wrote:Hi turnA,

the problem if you see in ./sfs console
jvm 1 | wrapper | Unable to start JVM: No such file or directory (2)
is the jvm don't start because don't find directory.

Open in conf folder the file "wrapper.conf" and change the directory of files with right directory.

1) I have "root" as primary folder where i've upload SFS.tar.gz
2) I unpacked in new folder "home" in the same level of folder "root"

LINUX

-root
-var
-usr
-home
.....

when i open wrapper.conf i found a directory "../home/SFS...../" and i changed it with "./".

Now all work

./sfs start | stop | console work

Server work from 2 days, and use admin.swf to Restart change and control multiplayer.


Nice! The problem solved.
Thanks ceciaman!!
Amra
Posts: 3
Joined: 18 Feb 2009, 07:44

Changing from SFS Basic 1.6 to SFS Pro 1.4

Postby Amra » 07 May 2009, 10:59

Hei,

I'm Changing from SFS Basic 1.6 to SFS Pro 1.4 because of TheoAvatar.

Now I'm trying to install version 1.4 of SFSPro. First I had this version SFSBasic 1.6 an d it worked very well and there wasn't any installation problems.

But now my sfs console says that:

"jvm 1 | [ --> FATAL ERROR <-- ]: Error initializing server.
jvm 1 |
jvm 1 | Check if server address and port are properly configured.
jvm 1 |
jvm 1 | Exception caught in SmartFoxServer
jvm 1 | java.net.BindException: Address already in use
jvm 1 | at sun.nio.ch.Net.bind(Native Method)
jvm 1 | at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
jvm 1 | at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
jvm 1 | at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
jvm 1 | at it.gotoandplay.smartfoxserver.SmartFoxServer.initServerSocket(SmartFoxServer.java:374)
jvm 1 | at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:558)
jvm 1 |
jvm 1 |
jvm 1 | Shutting down server...
jvm 1 |
wrapper | <-- Wrapper Stopped
"

The SFS PRO shuts down as soon I have started it. What happens over here? I'm using Linux Debian and I have all the correct permissions to the files. And I have changed the Server IP in config.xml in Server-folder.

It seems that another service is running this port. I have removed this Basic version before installation this Pro version. What is going on...?

Regards,

Niina
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 07 May 2009, 11:36

The problem is that there is already another server running on the same port, probably another SmartFoxServer instance.

Make sure to quit the previous running instance.
Lapo
--
gotoAndPlay()
...addicted to flash games
Amra
Posts: 3
Joined: 18 Feb 2009, 07:44

Postby Amra » 08 May 2009, 05:22

Lapo wrote:The problem is that there is already another server running on the same port, probably another SmartFoxServer instance.

Make sure to quit the previous running instance.


Problem solved. :-)

"killall java" stopped all the running java processes.

thnx,

Niina
vega
Posts: 7
Joined: 01 Oct 2009, 17:03

Postby vega » 07 Nov 2009, 10:39

Similar problem here as well.

I have SmartFoxServer Pro 1.6.6 installed on a linux hosting server (/usr/src/SmartFoxServer_PRO_1.6.6/). I can start the server using ./sfs start and it shows the server as running when I check the status using "./sfs status". But it only runs for like 3-4 seconds max before quitting and shows the message that "SmartFoxServer PRO is not running." when I check the status after that.

Also, I too am getting the same error message which some people posted here when trying to run it in console mode

Code: Select all

Running SmartFoxServer PRO...
wrapper  | --> Wrapper Started as Console
wrapper  | Java Service Wrapper Community Edition 3.3.1
wrapper  |   Copyright (C) 1999-2008 Tanuki Software, Inc.  All Rights Reserved.
wrapper  |     http://wrapper.tanukisoftware.org
wrapper  |
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 1    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 2    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM process is gone.
jvm 3    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | <-- Wrapper Stopped


I have already tried what fourfour said about using the "ln -s ../jre/bin/java" command from the /Server directory but the problem is still there.

Will really appreciate any help in this matter.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 07 Nov 2009, 17:07

Pay attention to the Linux version.
This error is typical of an architecture mismatch... x86 vs x86-64 bit.
In order to see what type of Linux you are using, type the following in a terminal window:
uname -a

Make sure that the Linux type matches the package you have downloaded

hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
blop
Posts: 1
Joined: 08 Nov 2009, 09:24

Postby blop » 08 Nov 2009, 09:31

I have the same problem that Vega.

I've tried several times to install SFS 32-bit and I can not start the server.

Also, I try to install SFS 64 bits but, with this version I haven't run the install.

When I type uname -a, in the window appear:
CEST 2009 i686 i686 i386 GNU Linux


The server OS is CentOS 5

Thanks for help
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 09 Nov 2009, 09:48

All I can say is to follow the steps indicated in the documentation.
Always use the installer, make sure to install under your home folder and check if any error is reported at the end of the setup process.

Errors during installation can compromise the ability to run the server, however if no error is shown you shouldn't have any problems.

Finally use the command:

Code: Select all

./sfs console

to test launch the application. This will show on screen any errors.
Lapo

--

gotoAndPlay()

...addicted to flash games
nschommer
Posts: 4
Joined: 08 Sep 2010, 17:00

Postby nschommer » 23 Sep 2010, 16:42

rcox wrote:
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.


This should be added to the documentation!
arthurgoulart
Posts: 1
Joined: 29 Oct 2015, 12:28

Re: Linux install issues

Postby arthurgoulart » 29 Oct 2015, 13:29

Same issue here

Im using a vps with full root access

Linux 3.13.0-43-generic #72-Ubuntu SMP Mon Dec 8 19:35:06 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

When i use start.sh it freezes here

|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|
| |
| ...::: SmartFoxServer :::... |
| Multiplayer Socket Server |
| version 1.6.6 |
| --- |
| (c) 2004 - 2009 gotoAndPlay() |
| www.smartfoxserver.com |
| www.gotoandplay.it |
| |
|::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::|


The server is still offline even when sfs status return that is running
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Linux install issues

Postby Lapo » 29 Oct 2015, 14:04

You should check the logs and see if there's any boot error.

Let us know.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SmartFoxServer 1.x Discussions and Help”

Who is online

Users browsing this forum: No registered users and 41 guests