Categories
General

ElectroServer security sandbox violation error

I suddenly started getting a really weird error from Flash when trying to connect to ElectroServer :


Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: //games.seblee.me/moonlander/MoonLanderViewer.swf cannot load data from 72.47.193.154:9899.

I posted to the ElectroServer forums and quick as a flash, Teresa got back to me – apparently ElectroServer was running out of memory. But apparently that’s not surprising – all Java gives it is 64Mb by default! But before I could fix it I had to stop ElectroServer from running, which isn’t easy when it’s running in the background.

Earlier Teresa had told me how to do this.

First, find the process by typing :

ps -ef | grep java 

For me, that return a whole bunch of junk! :

root 3492 3482 2 06:02 pts/0 00:00:09 /opt/ElectroServer_4_0_6/jre/bin/java -server -Dinstall4j.jvmDir=/opt/ElectroServer_4_0_6/jre -Dexe4j.moduleName=/opt/ElectroServer_4_0_6/ElectroServer -classpath /opt/ElectroServer_4_0_6/.install4j/i4jruntime.jar:/opt/ElectroServer_4_0_6/server/lib/ElectroServer4-bootstrap.jar com.install4j.runtime.Launcher launch com.electrotank.electroserver4.bootstrap.Main false false true true false true true 0 0 20 20 Arial 0,0,0 8 500 version 4.0.6 20 40 Arial 0,0,0 8 500 -1 -mode StandAlone
root 32208 1741 0 06:08 pts/0 00:00:00 grep java

But it’s actually only two processes, both starting with the word root (which is my current user name). The second process is the one that we just started by typing ps -ef | grep java and the first one is our ElectroServer, and that’s the one we have to kill. To do this we need the process id. I must admit I’m a bit confused why there are two numbers next to our process, 3492 and 3482. But I found that it worked for me using the first number.

 
kill -9 3492 

But of course you’ll have to replace 3492 with whatever number you get. You can check it’s not running by typing ps -ef | grep java again, and this time you should no longer see the ElectroServer process :

root     32208  1741  0 06:08 pts/0    00:00:00 grep java

So now I’ve killed the server process, I can now give ElectroServer more RAM, thankfully there’s this useful post on the ElectroServer wiki. I must admit I found it quite confusing, but for my Media Temple installation I used the Instructions for Unix. These instructions show you how to create a shell script that starts the server with more RAM. I had some trouble getting it to work, but that was because the capitalisation was different so check that you’re typing ElectroServer with the right caps – Unix is fussy.

Now it seems to be working again, but let me know if you see any more issues.

[UPDATE] those instructions didn’t seem to work. See this post on how I actually added more memory to ElectroServer.

One reply on “ElectroServer security sandbox violation error”

Comments are closed.