Bluebox Startup

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

findon
Posts: 8
Joined: 20 Feb 2010, 08:58

Bluebox Startup

Postby findon » 24 Mar 2010, 12:37

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)
findon
Posts: 8
Joined: 20 Feb 2010, 08:58

Solved

Postby findon » 24 Mar 2010, 16:27

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.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 25 Mar 2010, 19:08

Yep, under Linux/Unix only the root user can start processes listening in the range 0-1024
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 10 guests