server start

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

Moderators: Lapo, Bax

beate
Posts: 33
Joined: 15 Jun 2005, 14:34

server start

Postby beate » 24 Jun 2005, 14:09

hi,

on our server we have installed the jre 1.5.0 , but when we starting the server with ./start.sh nothing happens and no error message? what is the problem?

thanx an best regards
beate
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 24 Jun 2005, 15:16

Nothing happens? You mean nothing is written on screen? Not a single a line?!

That's weird because you shouldn't have any problems running SFS with Java 1.5

Could you please tell me a little bit more about your server? What operating system? What version? Any other errors you see running SFS ?

Thanks! :)
Lapo
--
gotoAndPlay()
...addicted to flash games
beate
Posts: 33
Joined: 15 Jun 2005, 14:34

Postby beate » 24 Jun 2005, 15:38

no not a single line :-) i found the following entry in the server log:

2005/06/24 15:59:27.399 - [ SEVERE ] [id: 10] (SmartFoxServer.x):
[ --> FATAL ERROR <-- ]: Error initializing server.
Check if server address and port are properly configured.

... but the ip and port is correct!

regards
beate
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 24 Jun 2005, 15:45

do you use these settings?

address = 127.0.0.1
port = 9339

If not, please try and tell me if they work!

You have forgot the info about your server and OS:
Could you please tell me a little bit more about your server? What operating system? What version? Any other errors you see running SFS ?
Lapo

--

gotoAndPlay()

...addicted to flash games
beate
Posts: 33
Joined: 15 Jun 2005, 14:34

Postby beate » 24 Jun 2005, 16:00

hi lapo ,
now i have few lines more :-)

------------------------+
+ SmartFoxServer - Multiuser Server +
+ version 1.1.1 +
+ +
+ (c) 2005 gotoAndPlay() - www.smartfoxserver.com +
+------------------------------------------------------------+

+----------------------[ System Info ]-----------------------+

System CPU(s): 1
VM Max memory: 66 MB

os.name: Linux
os.arch: i386
os.version: 2.4.21-215-smp4G
java.version: 1.5.0_04
java.vendor: Sun Microsystems Inc.
java.vendor.url: http://java.sun.com/
java.vm.specification.version: 1.0
java.vm.specification.version: 1.0
java.vm.version: 1.5.0_04-b05
java.vm.vendor: Sun Microsystems Inc.
java.vm.name: Java HotSpot(TM) Client VM

+--------------------[ Licence Loaded ]----------------------+

Licence Type: BASIC
Licenced to : =Demo=
Max. Clients: 20


+---------------------[ Zones & Rooms ]----------------------+

Zone: simpleChat

The Hall (id: 1, max: 50, pass:N)
The Kitchen (id: 2, max: 50, pass:N)
The Garden (id: 3, max: 50, pass:N)
The Bathroom (id: 4, max: 50, pass:N)
The Garage (id: 5, max: 50, pass:N)
The Living Room (id: 6, max: 50, pass:Y)

Zone: sftris

The Entrance (id: 7, max: 50, pass:N)

Zone: yahtzee

The Entrance (id: 8, max: 50, pass:N)

Zone: multiChat

Main Lobby (id: 9, max: 50, pass:N)

17:56:27.725 - [ SEVERE ] >

[ --> FATAL ERROR <-- ]: Error initializing server.

Check if server address and port are properly configured.

Exception caught in SmartFoxServer
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at it.gotoandplay.smartfoxserver.SmartFoxServer.x(Unknown Source)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(Unknown Source)


Shutting down server...
----------------------------------------------------------------------------------

i see "adress already in use" ....

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

Postby Lapo » 24 Jun 2005, 16:07

Very good we are getting closer :)
It seems another copy of SFS is already running or another application is running on the same port.

Try using netstat to see if you have another app running on port 9339 or verify if you have another SFS running.

At the end of shell command in the start.sh there's an "&" meaning that the application will continue running in the background...

type:

ps aux |grep java

to check all the java apps running

:)
Lapo

--

gotoAndPlay()

...addicted to flash games
beate
Posts: 33
Joined: 15 Jun 2005, 14:34

Postby beate » 24 Jun 2005, 16:10

hi lapo,

i kill all smartserver processes and restarted the server... yeah ist running :-)

regards
beate

.... and sorry for my english
beate
Posts: 33
Joined: 15 Jun 2005, 14:34

Postby beate » 24 Jun 2005, 16:12

.. but i cant connect with the admin tool :?
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 24 Jun 2005, 16:23

Nice!
I suppose you are running the admin tool from a remote machine so you may be encountering problems with the flash player restrictions...

Add this line in the config.xml:

Code: Select all

<AutoSendPolicyFile>true</AutoSendPolicyFile>


in the <ServerSetup></ServerSetup> block to have the crossdomain file automatically generated by SFS.

Also please read chapter 3.1 of the online docs >> http://www.smartfoxserver.com/docs/

Hope it helps!
Lapo

--

gotoAndPlay()

...addicted to flash games
beate
Posts: 33
Joined: 15 Jun 2005, 14:34

Postby beate » 24 Jun 2005, 16:39

hi lapo,

it works... many thanks for your great support!

grettings from germany
beate
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 24 Jun 2005, 16:54

:) No prob! Greetings from Italy, too :)
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 73 guests