PDA

View Full Version : Install ES5 on remote server



nikolajcz
02-28-2011, 09:03 PM
Hi, I'm really desperate, trying to solve the problem with installing ES5 on remote server. Everything is fine, server is ubuntu 10.04 lts, 64bit. Installing goes ok, we've updated java to be sure its ok.

Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

But everytime I run the server i get this error:


21:52:47,312 [main] WARN org.mortbay.log - Can't reuse /tmp/Jetty_(OUR IP AND PORT...)_jolokia-war-0.80-SNAPSHOT.war__jolokia-war-0_80-SNAPSHOT__cvxlfp, using /tmp/Jetty_(OUR IP AND PORT...)_jolokia-war-0.80-SNAPSHOT.war__jolokia-war-0_80-SNAPSHOT__cvxlfp_1901570687450788764
21:52:49,212 [main] INFO com.electrotank.electroserver5.servers.gateway.Dis connectedClientIoHandler - ClientIoHandler constructed
21:52:49,245 [pool-1-thread-4] ERROR TransactionTiming - Exception processing message com.electrotank.electroserver5.messages.internal.I nternalRegistryLoginRequestMessage@3834a1c8
java.lang.NullPointerException
at com.electrotank.electroserver5.servers.registry.tr ansactions.RegistryLoginTransaction.sendResponse(R egistryLoginTransaction.java:132)
at com.electrotank.electroserver5.servers.registry.tr ansactions.RegistryLoginTransaction.execute(Regist ryLoginTransaction.java:77)
at com.electrotank.electroserver5.servers.registry.tr ansactions.RegistryLoginTransaction.execute(Regist ryLoginTransaction.java:22)
at com.electrotank.electroserver5.servers.registry.tr ansactions.TransactionHandlerImpl.processMessage(T ransactionHandlerImpl.java:173)
at com.electrotank.electroserver5.servers.registry.Ga tewayIoHandler.messageReceived(GatewayIoHandler.ja va:139)
at org.apache.mina.common.support.AbstractIoFilterCha in$TailFilter.messageReceived(AbstractIoFilterChai n.java:570)
at org.apache.mina.common.support.AbstractIoFilterCha in.callNextMessageReceived(AbstractIoFilterChain.j ava:299)
at org.apache.mina.common.support.AbstractIoFilterCha in.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterCha in$EntryImpl$1.messageReceived(AbstractIoFilterCha in.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.pro cessEvent(ExecutorFilter.java:219)
at org.apache.mina.filter.executor.ExecutorFilter$Pro cessEventsRunnable.run(ExecutorFilter.java:263)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
21:52:49,247 [pool-1-thread-4] ERROR com.electrotank.electroserver5.servers.registry.Ga tewayIoHandler - Exception processing message com.electrotank.electroserver5.messages.internal.I nternalRegistryLoginRequestMessage@3834a1c8
com.electrotank.electroserver5.servers.registry.Me ssagingException: Exception processing message com.electrotank.electroserver5.messages.internal.I nternalRegistryLoginRequestMessage@3834a1c8
at com.electrotank.electroserver5.servers.registry.tr ansactions.TransactionHandlerImpl.processMessage(T ransactionHandlerImpl.java:176)
at com.electrotank.electroserver5.servers.registry.Ga tewayIoHandler.messageReceived(GatewayIoHandler.ja va:139)
at org.apache.mina.common.support.AbstractIoFilterCha in$TailFilter.messageReceived(AbstractIoFilterChai n.java:570)
at org.apache.mina.common.support.AbstractIoFilterCha in.callNextMessageReceived(AbstractIoFilterChain.j ava:299)
at org.apache.mina.common.support.AbstractIoFilterCha in.access$1100(AbstractIoFilterChain.java:53)
at org.apache.mina.common.support.AbstractIoFilterCha in$EntryImpl$1.messageReceived(AbstractIoFilterCha in.java:648)
at org.apache.mina.filter.executor.ExecutorFilter.pro cessEvent(ExecutorFilter.java:219)
at org.apache.mina.filter.executor.ExecutorFilter$Pro cessEventsRunnable.run(ExecutorFilter.java:263)
at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at com.electrotank.electroserver5.servers.registry.tr ansactions.RegistryLoginTransaction.sendResponse(R egistryLoginTransaction.java:132)
at com.electrotank.electroserver5.servers.registry.tr ansactions.RegistryLoginTransaction.execute(Regist ryLoginTransaction.java:77)
at com.electrotank.electroserver5.servers.registry.tr ansactions.RegistryLoginTransaction.execute(Regist ryLoginTransaction.java:22)
at com.electrotank.electroserver5.servers.registry.tr ansactions.TransactionHandlerImpl.processMessage(T ransactionHandlerImpl.java:173)
... 10 more

i'm more as3 guy then server technique but i need to set my testing enviro before the server guys come.

tcarr
02-28-2011, 09:11 PM
Odds are you have a bad install or zip file. Did you follow the directions in Installing to a Remote Linux Server (http://www.electrotank.com/docs/es5/manual/installing_to_a_remote_linux_s.htm)? If not read it and try again. If so, then try a fresh download, or making the zip again (after making sure that ES5 isn't running before you zip). And make sure that you use "ps -ef | grep java" to check that ES5 isn't already running on the server before you try to start it.

BTW, it usually takes less than an hour for me to do a remote Linux install and configure. Electrotank charges approx $150/hr for me to do it for you.

nikolajcz
03-01-2011, 10:27 AM
Well surely i went through the manual and as i stated i installed locally and remotely ES4 not only one time - so i thought i would be able to do it without paying to electrotank representative. I have downloaded it few times, uploaded through ftp and also wget it directly from there. I am aware of checking it with ps command.

So you say that couple of downloads more should fix this? That's not very happy answer but still I thank you very much for your time and kind response.

tcarr
03-01-2011, 10:43 AM
The only time I've seen that particular error message on startup, a fresh download fixed it.

I wasn't trying to push our service, just didn't know how frustrated you were getting. I've been helping a lot of people lately who are unfamiliar with Linux (and some of whom haven't even noticed the manual yet). Good luck, and let me know if it works or not.

nikolajcz
03-01-2011, 10:53 AM
Well it seems, we've advanced somehow - but friend of mine playing with the setup now (and he says it just had to be run on root privilegies to work ok and that it works ok - on non root privilegies it tended to start quickly twice in a row, strange behaviour) - he somehow messed the password and is not able to login again to admin :D how sad. is there any way to reset it from shell?

tcarr
03-01-2011, 11:24 AM
When we release ES5.2 there is a command line utility that allows you to make changes to fields in the database (and more importantly to make readable backups for SVN so that you check what changed in your configuration when). In the meantime, it's a bit more complicated to look up the admin password or change it, but it's possible: see Manual Inspection of ES5 Database (http://www.electrotank.com/docs/es5/manual/manual_inspection_of_es5_datab.htm). Let me know if you have problems figuring out which table stores the password and I'll look it up for you.

Of course, you could just reinstall ES5 one more time.... ;)

nikolajcz
03-01-2011, 11:50 AM
so we've reinstalled that - to no luck for us. stopped, deleted, installed, runned - cannot login with administrator/password :( will keep on examining

tcarr
03-01-2011, 11:57 AM
Check server/config/Configuration.xml. What IP and port is it using, and is SSL turned off? If that is set to 127.0.0.1 then you won't be able to use ES Admin remotely. If you are trying to connect remotely you will also need to check that the port in Configuration.xml is open.

edit: the computer you are using to run ES Admin may need to have AIR2 installed, or to set the Flash global security settings to allow swfs in that area of the hard drive to use sockets.

nikolajcz
03-01-2011, 12:24 PM
ok, thank you for writing to me things written all over this forum, i have to say that i admire your calmness with which you'are able to repeat it. also as i pointed out i am aware of the existence of manual. the fact i was able to read you a message from the esadmin also suggests i was previously able to connect to it, so i have the air2 and i've noticed the configuration.xml before.

thanks anyway for a round up of basic stuff, it might be of some helping value to someone else... i'm going to give it another try or two and then look for other options of server solution :(

tcarr
03-01-2011, 12:29 PM
Even if you were able to connect using ES Admin previously, since you reinstalled that may have wiped out your changes to Configuration.xml. That's what I would check if I were doing this myself.

Please also check both server/logs/ElectroServer5.log and server/logs/Console.log to see if there are any error messages showing. If the ES5 log doesn't say "started successfully" then the error messages might explain why ES Admin can't connect.