Installation Troubles

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Post Reply
sjarman
Posts: 15
Joined: 18 Dec 2010, 10:56

Installation Troubles

Post by sjarman »

Hi,

I'm a new user and I'm having some problems getting my SmartFox server up and running.

I use a Media Temple dv server (http://mediatemple.net/webhosting/dv/) for my hosting.

I've managed to install the SmartFox product and can reach it here:

http://www.nocturnalware.com:8080/admin

(currently still on default password etc).

I'm unable to actually launch the admin tool though. I've removed all of the addresses from the allowedRemoteAddresses section of server.xml and restarted but this hasn't helped.

I'm wondering what else I might need to be doing?

I've contacted Media Temple to ensure that 9933 is open, and this was their response (this was prior to me changing the remote addresses option):

Port 9933 is opened by default on the (dv) Dedicated-Virtual Server. The problem you are encountering is that you do not have any services listening on this port. So when you try to make a connection it is being refused. I looked at your server and you only have a listening service on the port when using localhost. You have to make it so your new service is listening to incoming connections.
sjarman
Posts: 15
Joined: 18 Dec 2010, 10:56

Post by sjarman »

Just asked Media Temple to double-check that 9933 is definitely open and this was their response. I'm totally at a loss as to why I can't access the Admin Tool.


"Port 9933 is not blocked by infrastructure and you should be able to telnet without issue to your server. Also to be double sure, I used an online port scanner which also confirmed that port 9933 was responding."
sjarman
Posts: 15
Joined: 18 Dec 2010, 10:56

Post by sjarman »

My current server.xml file:

Code: Select all

[root@nocturnalware config]# cat server.xml
<serverSettings>
  <socketAddresses>
    <socket address="70.32.106.51" port="9933" type="TCP"/>
  </socketAddresses>
  <ipFilter>
    <addressBlackList>
    </addressBlackList>
    <addressWhiteList>
    </addressWhiteList>
    <maxConnectionsPerAddress>9999999</maxConnectionsPerAddress>
  </ipFilter>
  <flashCrossdomainPolicy>
    <useMasterSocketPolicy>true</useMasterSocketPolicy>
    <policyXmlFile>crossdomain.xml</policyXmlFile>
  </flashCrossdomainPolicy>
  <systemControllerThreadPoolSize>1</systemControllerThreadPoolSize>
  <extensionControllerThreadPoolSize>1</extensionControllerThreadPoolSize>
  <systemControllerRequestQueueSize>20000</systemControllerRequestQueueSize>
  <extensionControllerRequestQueueSize>20000</extensionControllerRequestQueueSize>
  <schedulerThreadPoolSize>1</schedulerThreadPoolSize>
  <protocolCompressionThreshold>1024</protocolCompressionThreshold>
  <protocolMode>BINARY</protocolMode>
  <remoteAdmin>
    <administrators>
      <adminUser>
        <login>sfsadmin</login>
        <password>sfsadmin</password>
      </adminUser>
    </administrators>
    <allowedRemoteAddresses>
    </allowedRemoteAddresses>
    <adminTcpPort>9933</adminTcpPort>
  </remoteAdmin>
  <bannedUserManager>
    <isAutoRemove>true</isAutoRemove>
    <isPersistent>true</isPersistent>
    <customPersistenceClass></customPersistenceClass>
  </bannedUserManager>
  <extensionRemoteDebug>true</extensionRemoteDebug>
  <useFriendlyExceptions>false</useFriendlyExceptions>
  <mailer>
    <mailHost>test.mail.com</mailHost>
    <mailUser>foo</mailUser>
    <mailPass>pippo</mailPass>
    <smtpPort>25</smtpPort>
    <workerThreads>1</workerThreads>
  </mailer>
  <webServer>
    <isActive>true</isActive>
    <cfgFile>config/jetty/jetty.xml</cfgFile>
  </webServer>
  <startExtensionFileMonitor>true</startExtensionFileMonitor>
  <useFriendlyLogging>true</useFriendlyLogging>
  <useDebugMode>true</useDebugMode>
  <sessionMaxIdleTime>20</sessionMaxIdleTime>
  <userMaxIdleTime>300</userMaxIdleTime>
</serverSettings>
jz87
Posts: 19
Joined: 16 Dec 2010, 23:10
Location: us

Post by jz87 »

have you tried adding allowedRemoateAddresses an entry *.*.*.*
jz87
Posts: 19
Joined: 16 Dec 2010, 23:10
Location: us

Post by jz87 »

I have the same problem as you. Here's my server.xml


<serverSettings>
<socketAddresses>
<socket address="127.0.0.1" port="9933" type="TCP"/>
<socket address="173.255.206.61" port="9333" type="TCP"/>
</socketAddresses>
<ipFilter>
<addressBlackList></addressBlackList>
<addressWhiteList></addressWhiteList>
<maxConnectionsPerAddress>9999999</maxConnectionsPerAddress>
</ipFilter>
<flashCrossdomainPolicy>
<useMasterSocketPolicy>true</useMasterSocketPolicy>
<policyXmlFile>crossdomain.xml</policyXmlFile>
</flashCrossdomainPolicy>
<systemControllerThreadPoolSize>1</systemControllerThreadPoolSize>
<extensionControllerThreadPoolSize>1</extensionControllerThreadPoolSize>
<systemControllerRequestQueueSize>20000</systemControllerRequestQueueSize>
<extensionControllerRequestQueueSize>20000</extensionControllerRequestQueueSize>
<schedulerThreadPoolSize>1</schedulerThreadPoolSize>
<protocolCompressionThreshold>1024</protocolCompressionThreshold>
<protocolMode>BINARY</protocolMode>
<remoteAdmin>
<administrators>
<adminUser>
<login>sfsadmin</login>
<password>sfsadmin</password>
</adminUser>
</administrators>
<allowedRemoteAddresses>
<string>*.*.*.*</string>
<string>127.0.0.1</string>
<string>192.168.0.7</string>
<string>10.0.0.1</string>
</allowedRemoteAddresses>
<adminTcpPort>9933</adminTcpPort>
</remoteAdmin>
<bannedUserManager>
<isAutoRemove>true</isAutoRemove>
<isPersistent>true</isPersistent>
<customPersistenceClass></customPersistenceClass>
</bannedUserManager>
<extensionRemoteDebug>true</extensionRemoteDebug>
<useFriendlyExceptions>false</useFriendlyExceptions>
<mailer>
<mailHost>test.mail.com</mailHost>
<mailUser>foo</mailUser>
<mailPass>pippo</mailPass>
<smtpPort>25</smtpPort>
<workerThreads>1</workerThreads>
</mailer>
<webServer>
<isActive>true</isActive>
<cfgFile>config/jetty/jetty.xml</cfgFile>
</webServer>
<startExtensionFileMonitor>true</startExtensionFileMonitor>
<useFriendlyLogging>true</useFriendlyLogging>
<useDebugMode>true</useDebugMode>
<sessionMaxIdleTime>20</sessionMaxIdleTime>
<userMaxIdleTime>300</userMaxIdleTime>
</serverSettings>
sjarman
Posts: 15
Joined: 18 Dec 2010, 10:56

Post by sjarman »

I'd read somewhere that leaving the allowedRemoteAddresses section blank was the way to enable ALL hosts?

Code: Select all

<allowedRemoteAddresses>
</allowedRemoteAddresses> 
sjarman
Posts: 15
Joined: 18 Dec 2010, 10:56

Post by sjarman »

By the way, you're specifying port 9333 instead of 9933 in the following line:

Code: Select all

<socket address="173.255.206.61" port="9333" type="TCP"/>
Was that intentional?
jz87
Posts: 19
Joined: 16 Dec 2010, 23:10
Location: us

Post by jz87 »

Oops, I fixed that but that didn't help. I still can't connect.
jz87
Posts: 19
Joined: 16 Dec 2010, 23:10
Location: us

Post by jz87 »

Ok, so I fixed the socket problems and got it to log in. But then I get this error message:

The following error occurred while loading the selected module:

Error #2036
sjarman
Posts: 15
Joined: 18 Dec 2010, 10:56

Post by sjarman »

jz87 wrote:Ok, so I fixed the socket problems and got it to log in.
How did you fix your problem? You're a step further along than me now. I can't launch the Admin Tool at all.
jz87
Posts: 19
Joined: 16 Dec 2010, 23:10
Location: us

Post by jz87 »

Here's my server.xml


<serverSettings>
<socketAddresses>
<socket address="173.255.206.61" port="9933" type="TCP"/>
<socket address="127.0.0.1" port="9933" type="TCP"/>
</socketAddresses>
<ipFilter>
<addressBlackList></addressBlackList>
<addressWhiteList></addressWhiteList>
<maxConnectionsPerAddress>9999999</maxConnectionsPerAddress>
</ipFilter>
<flashCrossdomainPolicy>
<useMasterSocketPolicy>true</useMasterSocketPolicy>
<policyXmlFile>crossdomain.xml</policyXmlFile>
</flashCrossdomainPolicy>
<systemControllerThreadPoolSize>1</systemControllerThreadPoolSize>
<extensionControllerThreadPoolSize>1</extensionControllerThreadPoolSize>
<systemControllerRequestQueueSize>20000</systemControllerRequestQueueSize>
<extensionControllerRequestQueueSize>20000</extensionControllerRequestQueueSize>
<schedulerThreadPoolSize>1</schedulerThreadPoolSize>
<protocolCompressionThreshold>1024</protocolCompressionThreshold>
<protocolMode>BINARY</protocolMode>
<remoteAdmin>
<administrators>
<adminUser>
<login>sfsadmin</login>
<password>sfsadmin</password>
</adminUser>
</administrators>
<allowedRemoteAddresses>
<!--<string>*.*.*.*</string>
<string>127.0.0.1</string>
<string>192.168.0.7</string>
<string>10.0.0.1</string>-->
</allowedRemoteAddresses>
<adminTcpPort>9933</adminTcpPort>
</remoteAdmin>
<bannedUserManager>
<isAutoRemove>true</isAutoRemove>
<isPersistent>true</isPersistent>
<customPersistenceClass></customPersistenceClass>
</bannedUserManager>
<extensionRemoteDebug>true</extensionRemoteDebug>
<useFriendlyExceptions>false</useFriendlyExceptions>
<mailer>
<mailHost>test.mail.com</mailHost>
<mailUser>foo</mailUser>
<mailPass>pippo</mailPass>
<smtpPort>25</smtpPort>
<workerThreads>1</workerThreads>
</mailer>
<webServer>
<isActive>true</isActive>
<cfgFile>config/jetty/jetty.xml</cfgFile>
</webServer>
<startExtensionFileMonitor>true</startExtensionFileMonitor>
<useFriendlyLogging>true</useFriendlyLogging>
<useDebugMode>true</useDebugMode>
<sessionMaxIdleTime>20</sessionMaxIdleTime>
<userMaxIdleTime>300</userMaxIdleTime>
</serverSettings>

And here is what netstat -pan |grep -i :9933 shows on my remote machine


tcp6 0 0 127.0.0.1:9933 :::* LISTEN 10751/java
tcp6 0 0 173.255.206.61:9933 :::* LISTEN 10751/java
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

1) Port 9933 is working correctly, no problems here
2) Remove all those addresses from the <allowedRemoteAddress>, they are wrong and won't help you login
3) When you login with the AdminTool you must connect to your domain -> nocturnalware.com
Lapo
--
gotoAndPlay()
...addicted to flash games
sjarman
Posts: 15
Joined: 18 Dec 2010, 10:56

Post by sjarman »

I'm all sorted now - working perfectly from home. I suspect that the "open" internet connection that I was given at the office was actually just free of content filtering, but was still blocking uncommon ports.

Apologies for the confusion.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

No problem, glad it's working correctly :)
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply