If GFac server was properly started you should get something like this in the airavata server log
. . . [INFO] Registering listener: org.apache.airavata.gfac.core.monitor.GfacInternalStatusUpdator [INFO] Starting Gfac Server on Port 8950 [INFO] Listening to Gfac Clients .... [ERROR] The Credential Store Server did not start!!! On Sun, Apr 19, 2015 at 9:59 PM, DImuthu Upeksha <[email protected] > wrote: > Hi Supun, > > Yes I changed it before I execute that class. > > > sampleScriptDir="/Users/dimuthuupeksha/Documents/Academic/gsoc2105/airavata/airavata/modules/distribution/server/src/main/resources/samples/scripts"; > > Error mentions that "There is no active GFac instance to route the request". > Is there anything to do with Gfac instances before launching an experiment? > > > On Sun, Apr 19, 2015 at 9:50 PM, Supun Nakandala < > [email protected]> wrote: > >> Hi Upeksha, >> >> Are you using the absolute path of the directory where the script files >> are located. If not can you try changing the path location to absolute path >> at >> https://github.com/apache/airavata/blob/0.14_release/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/RegisterSampleData.java#L69 >> >> On Sun, Apr 19, 2015 at 9:20 PM, DImuthu Upeksha < >> [email protected]> wrote: >> >>> Hi all, >>> >>> I'm working on running a simple echo experiment on localhost using >>> Airavata API. Here are the steps I followed. >>> >>> 1. I registered echo application by running >>> https://github.com/apache/airavata/blob/0.14_release/airavata-api/airavata-client-sdks/java-client-samples/src/main/java/org/apache/airavata/client/samples/RegisterSampleData.java >>> >>> 2. Ran following code to create and launch an experiment >>> >>> String appId = "Echo_e82aa96b-66ea-4f31-97e7-1182a32e55d2"; >>> >>> List<InputDataObjectType> exInputs = new >>> ArrayList<InputDataObjectType>(); >>> InputDataObjectType input = new InputDataObjectType(); >>> input.setName("Input_to_Echo"); >>> input.setType(DataType.STRING); >>> input.setValue("Echoed_Output=Hello World"); >>> exInputs.add(input); >>> >>> List<OutputDataObjectType> exOut = new ArrayList<OutputDataObjectType>(); >>> OutputDataObjectType output = new OutputDataObjectType(); >>> output.setName("Echoed_Output"); >>> output.setType(DataType.STRING); >>> output.setValue(""); >>> exOut.add(output); >>> >>> Experiment simpleExperiment = >>> ExperimentModelUtil.createSimpleExperiment("default", "admin", >>> "echoExperiment", "Echo Exp", appId, exInputs); >>> simpleExperiment.setExperimentOutputs(exOut); >>> >>> Map<String,String> computeResources = >>> getClient().getAvailableAppInterfaceComputeResources(appId); >>> String id = computeResources.keySet().iterator().next(); >>> String resourceName = computeResources.get(id); >>> System.out.println(computeResources.size()); >>> System.out.println(id); >>> System.out.println(resourceName); >>> ComputationalResourceScheduling scheduling = >>> ExperimentModelUtil.createComputationResourceScheduling(id, 1, 1, 1, >>> "normal", 30, 0, 1, "sds128"); >>> UserConfigurationData userConfigurationData = new >>> UserConfigurationData(); >>> userConfigurationData.setAiravataAutoSchedule(false); >>> userConfigurationData.setOverrideManualScheduledParams(false); >>> userConfigurationData.setComputationalResourceScheduling(scheduling); >>> simpleExperiment.setUserConfigurationData(userConfigurationData); >>> >>> String exp = getClient().createExperiment(simpleExperiment); >>> getClient().launchExperiment(exp,"sample"); >>> >>> ------------------------------------------------------- >>> Once I run above code I got following exception from Airavata Server. >>> What could be the reason for that? >>> >>> [INFO] Publishing status to rabbitmq... >>> >>> [INFO] Id:echoExperiment_26d8741d-90a6-40f6-9b64-40f52f8aed26 : Created >>> new experiment with experiment name echoExperiment >>> >>> [INFO] Validation of >>> org.apache.airavata.orchestrator.core.validator.impl.SimpleAppDataValidator >>> is SUCCESSFUL >>> >>> [INFO] Validation of >>> org.apache.airavata.orchestrator.core.validator.impl.ExperimentStatusValidator >>> is SUCCESSFUL >>> >>> [INFO] Publishing status to rabbitmq... >>> >>> [INFO] Id:IDontNeedaNode_4b2f42fc-e555-422d-ad87-8d3f47a4f364 : Updated >>> task IDontNeedaNode_4b2f42fc-e555-422d-ad87-8d3f47a4f364 status to >>> TaskStatus(executionState:UNKNOWN, timeOfStateChange:1429457203697). >>> >>> [INFO] Id:IDontNeedaNode_4b2f42fc-e555-422d-ad87-8d3f47a4f364 : Updated >>> task IDontNeedaNode_4b2f42fc-e555-422d-ad87-8d3f47a4f364 status to >>> TaskStatus(executionState:UNKNOWN, timeOfStateChange:1429457203697). >>> >>> org.apache.airavata.orchestrator.core.exception.OrchestratorException: >>> There is no active GFac instance to route the request >>> >>> at >>> org.apache.airavata.orchestrator.core.impl.GFACServiceJobSubmitter.submit(GFACServiceJobSubmitter.java:91) >>> >>> at >>> org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.launchExperiment(SimpleOrchestratorImpl.java:75) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(OrchestratorServerHandler.java:415) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.launchSingleAppExperiment(OrchestratorServerHandler.java:683) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.run(OrchestratorServerHandler.java:645) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> >>> at java.lang.Thread.run(Thread.java:722) >>> >>> [ERROR] Id:IDontNeedaNode_4b2f42fc-e555-422d-ad87-8d3f47a4f364 : Error >>> while launching task >>> >>> org.apache.airavata.orchestrator.core.exception.OrchestratorException: >>> Error launching the job >>> >>> at >>> org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.launchExperiment(SimpleOrchestratorImpl.java:77) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(OrchestratorServerHandler.java:415) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.launchSingleAppExperiment(OrchestratorServerHandler.java:683) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.run(OrchestratorServerHandler.java:645) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> >>> at java.lang.Thread.run(Thread.java:722) >>> >>> Caused by: java.lang.NullPointerException >>> >>> at >>> org.apache.airavata.orchestrator.core.impl.GFACServiceJobSubmitter.submit(GFACServiceJobSubmitter.java:120) >>> >>> at >>> org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.launchExperiment(SimpleOrchestratorImpl.java:75) >>> >>> ... 6 more >>> >>> [ERROR] Id:echoExperiment_26d8741d-90a6-40f6-9b64-40f52f8aed26 : Error >>> while updating task status, hence updated experiment status to >>> ExperimentStatus(experimentState:FAILED, timeOfStateChange:1429457204498) >>> >>> org.apache.thrift.TException: >>> org.apache.airavata.orchestrator.core.exception.OrchestratorException: >>> Error launching the job >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(OrchestratorServerHandler.java:423) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.launchSingleAppExperiment(OrchestratorServerHandler.java:683) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.run(OrchestratorServerHandler.java:645) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> >>> at java.lang.Thread.run(Thread.java:722) >>> >>> Caused by: >>> org.apache.airavata.orchestrator.core.exception.OrchestratorException: >>> Error launching the job >>> >>> at >>> org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.launchExperiment(SimpleOrchestratorImpl.java:77) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(OrchestratorServerHandler.java:415) >>> >>> ... 5 more >>> >>> Caused by: java.lang.NullPointerException >>> >>> at >>> org.apache.airavata.orchestrator.core.impl.GFACServiceJobSubmitter.submit(GFACServiceJobSubmitter.java:120) >>> >>> at >>> org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.launchExperiment(SimpleOrchestratorImpl.java:75) >>> >>> ... 6 more >>> >>> org.apache.thrift.TException: org.apache.thrift.TException: >>> org.apache.airavata.orchestrator.core.exception.OrchestratorException: >>> Error launching the job >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.launchSingleAppExperiment(OrchestratorServerHandler.java:703) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.run(OrchestratorServerHandler.java:645) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >>> >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >>> >>> at java.lang.Thread.run(Thread.java:722) >>> >>> Caused by: org.apache.thrift.TException: >>> org.apache.airavata.orchestrator.core.exception.OrchestratorException: >>> Error launching the job >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(OrchestratorServerHandler.java:423) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler$SingleAppExperimentRunner.launchSingleAppExperiment(OrchestratorServerHandler.java:683) >>> >>> ... 4 more >>> >>> Caused by: >>> org.apache.airavata.orchestrator.core.exception.OrchestratorException: >>> Error launching the job >>> >>> at >>> org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.launchExperiment(SimpleOrchestratorImpl.java:77) >>> >>> at >>> org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchTask(OrchestratorServerHandler.java:415) >>> >>> ... 5 more >>> >>> Caused by: java.lang.NullPointerException >>> >>> at >>> org.apache.airavata.orchestrator.core.impl.GFACServiceJobSubmitter.submit(GFACServiceJobSubmitter.java:120) >>> >>> at >>> org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.launchExperiment(SimpleOrchestratorImpl.java:75) >>> >>> ... 6 more >>> >>> >>> Thanks >>> >>> Dimuthu >>> -- >>> Regards >>> >>> W.Dimuthu Upeksha >>> Undergraduate >>> Department of Computer Science And Engineering >>> >>> University of Moratuwa, Sri Lanka >>> >> >> >> >> -- >> Thank you >> Supun Nakandala >> Dept. Computer Science and Engineering >> University of Moratuwa >> > > > > -- > Regards > > W.Dimuthu Upeksha > Undergraduate > Department of Computer Science And Engineering > > University of Moratuwa, Sri Lanka > -- Thank you Supun Nakandala Dept. Computer Science and Engineering University of Moratuwa
