Hi Priyanshu, I assume you are using a freshly build airavata instance from master. I build airavata, start airavata server and then run registerSample.sh script and I'm able to register all the applications without any issue.
149-160-168-138:samples chathuri$ ./registerSample.sh /Users/chathuri/dev/airavata/source/pull/airavata/modules/distribution/server/target/apache-airavata-server-0.15-SNAPSHOT/samples/scripts SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/chathuri/dev/airavata/source/pull/airavata/modules/distribution/server/target/apache-airavata-server-0.15-SNAPSHOT/lib/slf4j-log4j12-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/chathuri/dev/airavata/source/pull/airavata/modules/distribution/server/target/apache-airavata-server-0.15-SNAPSHOT/lib/slf4j-simple-1.7.6.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. #### Registering Localhost Computational Resource #### LOCAL_01923119-2c89-4339-82d8-0f3ce5cb8110 LocalHost Resource Id is localhost_6764410a-eeef-4cb2-b2c9-65b8616f041c #### Registering Application Deployments on Localhost #### Successfully registered Echo application on localhost, application Id = localhost_6764410a-eeef-4cb2-b2c9-65b8616f041c_Echo Successfully registered Add application on localhost, application Id = localhost_6764410a-eeef-4cb2-b2c9-65b8616f041c_Add Successfully registered Multiply application on localhost, application Id = localhost_6764410a-eeef-4cb2-b2c9-65b8616f041c_Multiply Successfully registered Subtract application on localhost, application Id = localhost_6764410a-eeef-4cb2-b2c9-65b8616f041c_Subtract Successfully registered tinker monte application on localhost, application Id = localhost_6764410a-eeef-4cb2-b2c9-65b8616f041c_Tinker Monte Successfully registered Gaussian application on localhost, application Id = localhost_6764410a-eeef-4cb2-b2c9-65b8616f041c_Gaussian #### Registering Add Application Interface #### Add Application Interface Id Add_e18d455d-e010-4828-8db6-2e46d15dc194 #### Registering Subtract Application Interface #### Subtract Application Interface Id Subtract_9e5ca490-a450-42b9-8b42-e641e23bae5f #### Registering Multiply Application Interface #### Multiply Application Interface Id Multiply_3b5ac2d0-48a0-4174-835f-4914842afc72 #### Registering Echo Interface #### Echo Application Interface Id Echo_93fee88f-5ea5-48f8-9a1f-b938342ef851 #### Registering Tinker Monte Application Interface #### Monte Application Interface Id Tinker_Monte_f7d8fcdd-62a9-4be6-a6d0-cf870a6972a4 #### Registering Gaussian Application Interface #### Gaussian Application Interface Id Gaussian_ae51b454-fec7-4356-a8b3-c0c15222f7b2 On Mon, Mar 30, 2015 at 1:13 PM, priyanshu patra <[email protected]> wrote: > Hi Chathuri, > > On registring sample scripts and local host by running sh > registerSample.sh(or ./registerSample.sh) following > https://cwiki.apache.org/confluence/display/AIRAVATA/XBAYA+Quick-Start+Tutorial > (Step > 10), I get the following error > Exception in thread "main" > AiravataSystemException(airavataErrorType:INTERNAL_ERROR) > at > org.apache.airavata.api.Airavata$registerGatewayResourceProfile_result$registerGatewayResourceProfile_resultStandardScheme.read(Airavata.java) > at > org.apache.airavata.api.Airavata$registerGatewayResourceProfile_result$registerGatewayResourceProfile_resultStandardScheme.read(Airavata.java) > at > org.apache.airavata.api.Airavata$registerGatewayResourceProfile_result.read(Airavata.java) > at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) > at > org.apache.airavata.api.Airavata$Client.recv_registerGatewayResourceProfile(Airavata.java:5017) > at > org.apache.airavata.api.Airavata$Client.registerGatewayResourceProfile(Airavata.java:5004) > at > org.apache.airavata.client.samples.RegisterSampleData.registerGatewayProfile(RegisterSampleData.java:93) > at > org.apache.airavata.client.samples.RegisterSampleData.register(RegisterSampleData.java:81) > at > org.apache.airavata.client.samples.RegisterSampleData.main(RegisterSampleData.java:64) > > and the main server running throws the following error simultaneously > [ERROR] Gateway does not exist.Please provide a valid gateway id... > > Can you please tell me why is it so? > > Thanks > > > > On Fri, Mar 27, 2015 at 10:26 PM, Chathuri Wimalasena < > [email protected]> wrote: > >> Hi Priyanshu, >> >> Please refer this. >> https://cwiki.apache.org/confluence/display/AIRAVATA/XBAYA+Quick-Start+Tutorial. >> The document that you refer is out of date. For OutOfMemoryError error, >> you can increase heap memory using JAVA_OPTS (export set >> JAVA_OPTS=”-Xms256m -Xmx512m). >> >> Thanks.. >> Chathuri >> >> On Fri, Mar 27, 2015 at 12:50 PM, priyanshu patra <[email protected]> >> wrote: >> >>> Hello Supun, >>> >>> Sir, now I am able to run the server but it throws OutOfMemoryError >>> [ERROR] Thread Thread[pool-4-thread-5,5,main] died >>> java.lang.OutOfMemoryError: Java heap space >>> at >>> org.apache.thrift.protocol.TBinaryProtocol.readStringBody(TBinaryProtocol.java:339) >>> at >>> org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:202) >>> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27) >>> at >>> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:225) >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >>> at java.lang.Thread.run(Thread.java:745) >>> >>> Morover, the server doesn't run on port 8080 as mentioned in Quick >>> Start Tutorials >>> <https://airavata.apache.org/documentation/quickstart-tutorials.html> . >>> [INFO] Starting Orchestrator Server on Port 8940 >>> [INFO] Starting Gfac Server on Port 8950 >>> >>> Which of these should I use as Server Port to setup Airavata Registry in >>> XBaya Dashboard. >>> >>> Thanks, >>> Priyanshu >>> >>> >>> On Fri, Mar 27, 2015 at 1:02 PM, Supun Nakandala < >>> [email protected]> wrote: >>> >>>> Hi Priyanshu, >>>> >>>> If you want to run the binaries that you build from maven do as follows. >>>> >>>> 1. Go to $HOME/gsoc/airavata/modules/distribution/server/target >>>> 2. There you will find a *.tar.gz and .zip distributions extract one of >>>> your choice >>>> 3. Inside the extracted folder you will find the bin folder. Go to that >>>> folder and run ./airavata-server.sh (start - to run in daemon mode) >>>> >>>> To run XBaya >>>> 1. Go to $HOME/gsoc/airavata/modules/distribution/xbaya-gui/target and >>>> follow steps similar to the previous one >>>> >>>> -Supun >>>> >>>> On Fri, Mar 27, 2015 at 12:50 PM, priyanshu patra <[email protected]> >>>> wrote: >>>> >>>>> Hi everyone, >>>>> >>>>> After building distribution source following build from source >>>>> <https://airavata.apache.org/development/build.html> , I followed the >>>>> steps here Quick Tutorials >>>>> <https://airavata.apache.org/documentation/quickstart-tutorials.html> to >>>>> start Airavata Server and Launch GUI. >>>>> The server and GUI work fine when I download the binaries from Downloads >>>>> page <https://airavata.apache.org/about/downloads.html> ,extract the >>>>> distributions, and run *airavata-server.sh* (or *xbaya-gui.sh*) >>>>> >>>>> But here is what happens when I try to do the same using binaries >>>>> generated from source >>>>> running >>>>> >>>>> - $AIRAVATA_SERVER_HOME/bin/airavata-server.sh >>>>> >>>>> throws the following error- >>>>> Error: Could not find or load main class >>>>> org.apache.airavata.server.ServerMain >>>>> and running the same with sudo throws- >>>>> You must set the JAVA_HOME variable before running Airavata Scripts. >>>>> >>>>> I setup the following in *.bashrc* file >>>>> export AIRAVATA_XBAYA_HOME= >>>>> $HOME/gsoc/airavata/modules/distribution/xbaya-gui/src/main/resources >>>>> >>>>> export AIRAVATA_SERVER_HOME= >>>>> $HOME/gsoc/airavata/modules/distribution/server/src/main/resources >>>>> >>>>> export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 >>>>> export PATH=$PATH:$JAVA_HOME/bin >>>>> >>>>> Can anyone pointt me in which step did I go wrong. >>>>> >>>>> Thanks, >>>>> Priyanshu >>>>> >>>> >>>> >>>> >>>> -- >>>> Thank you >>>> Supun Nakandala >>>> Dept. Computer Science and Engineering >>>> University of Moratuwa >>>> >>> >>> >> >
