Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52B3F17FB0 for ; Mon, 30 Mar 2015 17:15:00 +0000 (UTC) Received: (qmail 39751 invoked by uid 500); 30 Mar 2015 17:15:00 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 39713 invoked by uid 500); 30 Mar 2015 17:15:00 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 39698 invoked by uid 99); 30 Mar 2015 17:14:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 17:14:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pri.patra@gmail.com designates 209.85.216.181 as permitted sender) Received: from [209.85.216.181] (HELO mail-qc0-f181.google.com) (209.85.216.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Mar 2015 17:14:33 +0000 Received: by qcgx3 with SMTP id x3so20010375qcg.3 for ; Mon, 30 Mar 2015 10:13:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=A7kq04GcVnPx9he4SMLtweIR6SjVTGRn9zUuiu3WtsI=; b=shKpxgAM+e0kqD2waurwSHe1WcMNlQqgqK1EY/7sCiya9NI7pacd2pBPTqbkbHeSPi 4khq4R+Se1iw7uPd5PtwKPSxdlgy3bRSnKUKBQr2tj2Umi/4ofLB71rzxBIobE7lbMh3 F5I70S2pGVcMN8oEldNofOVFD/3OAhAAHXH7iiXq4gKX4cMDLrobLUUwo/MaECcPsQUf EQ54KjRYHQ+iZlFfqD3+sxugLjtgc4FIluDZW+S4grR85qyX0qNmub+wYmfqb22xbfPb I4el0PejwO/KnPlgZXIOw8gcxUZ79EFo388OUdDKyFFp9oJADGcR+LEFfFhWMbQgg0IA ZVFQ== X-Received: by 10.140.192.15 with SMTP id n15mr43935881qha.28.1427735626309; Mon, 30 Mar 2015 10:13:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.140.2 with HTTP; Mon, 30 Mar 2015 10:13:25 -0700 (PDT) In-Reply-To: References: From: priyanshu patra Date: Mon, 30 Mar 2015 22:43:25 +0530 Message-ID: Subject: Re: Error running Airavata Server To: dev@airavata.apache.org Content-Type: multipart/alternative; boundary=001a1141816ed6e7d70512849a38 X-Virus-Checked: Checked by ClamAV on apache.org --001a1141816ed6e7d70512849a38 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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+Tuto= rial (Step 10), I get the following error Exception in thread "main" AiravataSystemException(airavataErrorType:INTERNAL_ERROR) at org.apache.airavata.api.Airavata$registerGatewayResourceProfile_result$regi= sterGatewayResourceProfile_resultStandardScheme.read(Airavata.java) at org.apache.airavata.api.Airavata$registerGatewayResourceProfile_result$regi= sterGatewayResourceProfile_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(Aira= vata.java:5004) at org.apache.airavata.client.samples.RegisterSampleData.registerGatewayProfil= e(RegisterSampleData.java:93) at org.apache.airavata.client.samples.RegisterSampleData.register(RegisterSamp= leData.java:81) at org.apache.airavata.client.samples.RegisterSampleData.main(RegisterSampleDa= ta.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 wrote: > Hi Priyanshu, > > Please refer this. > https://cwiki.apache.org/confluence/display/AIRAVATA/XBAYA+Quick-Start+Tu= torial. > The document that you refer is out of date. For OutOfMemoryError error, > you can increase heap memory using JAVA_OPTS (export set > JAVA_OPTS=3D=E2=80=9D-Xms256m -Xmx512m). > > Thanks.. > Chathuri > > On Fri, Mar 27, 2015 at 12:50 PM, priyanshu patra > 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(TBinaryProtoco= l.java:339) >> at >> org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProto= col.java:202) >> at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:27) >> at >> org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPool= Server.java:225) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav= a:1142) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja= va:617) >> at java.lang.Thread.run(Thread.java:745) >> >> Morover, the server doesn't run on port 8080 as mentioned in Quick Start >> Tutorials >> . >> [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 < >> supun.nakandala@gmail.com> 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 >>> wrote: >>> >>>> Hi everyone, >>>> >>>> After building distribution source following build from source >>>> , I followed the >>>> steps here Quick Tutorials >>>> = to >>>> start Airavata Server and Launch GUI. >>>> The server and GUI work fine when I download the binaries from Downloa= ds >>>> page ,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=3D >>>> $HOME/gsoc/airavata/modules/distribution/xbaya-gui/src/main/resources >>>> >>>> export AIRAVATA_SERVER_HOME=3D >>>> $HOME/gsoc/airavata/modules/distribution/server/src/main/resources >>>> >>>> export JAVA_HOME=3D/usr/lib/jvm/java-8-openjdk-amd64 >>>> export PATH=3D$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 >>> >> >> > --001a1141816ed6e7d70512849a38 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Chathuri,

On registring sample= scripts and local host by running sh registerSample.sh(or ./registerSample= .sh) following=C2=A0https://cwiki.apache.org/confluence/di= splay/AIRAVATA/XBAYA+Quick-Start+Tutorial=C2=A0(Step 10), I get the fol= lowing error
Exception in thread "mai= n" AiravataSystemException(airavataErrorType:INTERNAL_ERROR)
= at org.apache.airavata.api.Airavata$registerGatewayResourceProfile_= result$registerGatewayResourceProfile_resultStandardScheme.read(Airavata.ja= va)
at org.apache.airavata.api.Airavata$registerGatewayRes= ourceProfile_result$registerGatewayResourceProfile_resultStandardScheme.rea= d(Airavata.java)
at org.apache.airavata.api.Airavata$regis= terGatewayResourceProfile_result.read(Airavata.java)
at or= g.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78)
at org.apache.airavata.api.Airavata$Client.recv_registerGatewayRes= ourceProfile(Airavata.java:5017)
<= span class=3D"" style=3D"white-space:pre"> at org.apache.airavata.ap= i.Airavata$Client.registerGatewayResourceProfile(Airavata.java:5004)=
at org.apache.airavata.client.samples.RegisterSampleData.registe= rGatewayProfile(RegisterSampleData.java:93)
at org.apache.= airavata.client.samples.RegisterSampleData.register(RegisterSampleData.java= :81)
at org.apache.airavata.client.samples.RegisterSampleD= ata.main(RegisterSampleData.java:64)

and the main server running throws the follo= wing error simultaneously
[ERROR] Gateway does not exist.Please provide a va= lid gateway id...

Can you please tell me why is it so?

Thanks



On Fri, Mar 27, 2015 at 10:= 26 PM, Chathuri Wimalasena <kamalasini@gmail.com> wrote:<= br>
Hi Priyanshu,=C2=A0
=
Please refer this.=C2=A0h= ttps://cwiki.apache.org/confluence/display/AIRAVATA/XBAYA+Quick-Start+Tutor= ial. The document that you refer is out of date. For=C2=A0OutOfMemoryError error, you can increase = heap memory using JAVA_OPTS (export set JAVA_OPTS=3D=E2=80=9D-Xms256= m -Xmx512m).=C2=A0

Thanks..
Chathuri

On Fri, Mar 27, 2015 at 12:50 PM, priyanshu patra <pri.= patra@gmail.com> 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.TBinary= Protocol.readMessageBegin(TBinaryProtocol.java:202)
at org.apach= e.thrift.TBaseProcessor.process(TBaseProcessor.java:27)
at org.a= pache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.j= ava:225)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Th= readPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolEx= ecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thre= ad.run(Thread.java:745)

Morover, the = server doesn't run on port 8080 as mentioned in=C2=A0Quick Start Tutorials=C2=A0.=C2=A0
[INFO] Starting Orchestrator Server on Port 8940
=
[INFO] Starting Gfac Server on Port 8950<= /div>

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 <supun.nakandala= @gmail.com> wrote:
Hi Priyanshu,

If you want to run the binaries t= hat you build from maven do as follows.

1. Go to $= HOME/gsoc/airavata/modules/distribution/server/target
2. There yo= u 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 previ= ous one

-Supun

On Fri, Mar 27, 2015 at 12:50 P= M, priyanshu patra <pri.patra@gmail.com> wrote:
Hi everyone,

Af= ter building distribution source following=C2=A0build from source= =C2=A0, I followed the steps here=C2=A0Quick Tutoria= ls=C2=A0to start Airavata Server and Launch GUI.=C2=A0
The se= rver and GUI work fine when I download the binaries from=C2=A0Downloads= page=C2=A0,extract the distributions, and run airavata-server.sh (or xbaya-gui.sh)

But here is what happen= s when I try to do the same using binaries generated from source
= running=C2=A0
  • $AIRAVATA_SERVER_H= OME/bin/airavata-server.sh=C2=A0
throws the following = error-
Error: Could not find or load main class org.apache.air= avata.server.ServerMain
and running the same wi= th sudo throws-
You must set the JAVA_HOM= E variable before running Airavata Scripts.

I setup the following in=C2=A0.= bashrc=C2=A0file
export AIRAVATA_XBAYA_HOME=3D
$HOME/gsoc/airavata/modules/distribution/xbaya-gui/src/main/resources

export AIRAVATA_SERVER_HOME=3D
$HOME/gsoc/ai= ravata/modules/distribution/server/src/main/resources

<= /div>
export JAVA_HOME=3D/usr/lib/jvm/java-8-openjdk-amd64
export PATH=3D$PATH:$JAVA_HOME/bin

= Can anyone pointt me in which step did I go wrong.

Thanks,
Priyanshu



<= font color=3D"#888888">--
Thank you
Supun Nakandala
Dept. Co= mputer Science and Engineering
University of Moratuwa



--001a1141816ed6e7d70512849a38--