using smartfox 1.6.2 on our live server I get the following errors on startup or bluebox which i am trying to run on port 80 (since our client has pretty much every other port in the world blocked!)
2010-03-24 12:46:55.853::INFO: Logging to STDERR via org.mortbay.log.StdErrLog
2010-03-24 12:46:55.949::WARN: Deprecated configuration used for ./webserver/webapps
2010-03-24 12:46:55.975::INFO: jetty-6.1.3
2010-03-24 12:46:56.403::INFO: Extract jar:file:/usr/local/smartfox/SFS_PRO_1.6.2/Server/webserver/webapps/BlueBox.war!/ to /tmp/Jetty_0_0_0_0_80_BlueBox.war__BlueBox__-fvcjtd/webapp
::::::::::: { BlueBox INITED } ::::::::::::
: :
: Version 1.0.3 -- (c) 2007 gotoAndPlay() :
: :
:::::::::::::::::::::::::::::::::::::::::::
2010-03-24 12:46:56.508::WARN: failed SelectChannelConnector @ 0.0.0.0:80
java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:209)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:252)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:294)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.Server.doStart(Server.java:221)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at it.gotoandplay.smartfoxserver.webserver.WebServer.start(WebServer.java:83)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initWebServer(SmartFoxServer.java:3377)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_webServer(ConfigReader.java:669)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_ServerSetup(ConfigReader.java:414)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readServerConfig(ConfigReader.java:177)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:547)
2010-03-24 12:46:56.512::WARN: failed Server@1df3314
java.net.SocketException: Permission denied
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.mortbay.jetty.nio.SelectChannelConnector.open(SelectChannelConnector.java:209)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:252)
at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector.java:294)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at org.mortbay.jetty.Server.doStart(Server.java:221)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
at it.gotoandplay.smartfoxserver.webserver.WebServer.start(WebServer.java:83)
at it.gotoandplay.smartfoxserver.SmartFoxServer.initWebServer(SmartFoxServer.java:3377)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_webServer(ConfigReader.java:669)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.parse_ServerSetup(ConfigReader.java:414)
at it.gotoandplay.smartfoxserver.lib.ConfigReader.readServerConfig(ConfigReader.java:177)
at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:547)
Bluebox Startup
Solved
Processes not running as root were not allowed to bind to ports below 1024.
So had to use port 8080, then use iptables to forward traffic from port 80 to 8080 internally.
So had to use port 8080, then use iptables to forward traffic from port 80 to 8080 internally.
Who is online
Users browsing this forum: No registered users and 20 guests