[ 
https://issues.apache.org/jira/browse/AIRAVATA-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17009894#comment-17009894
 ] 

Marcus Christie commented on AIRAVATA-3276:
-------------------------------------------

When input is type URI, isRequired=true but it is hidden (and "showOptions" 
"toggle" config is not applied), then the Orchestrator fails to create input 
data staging tasks:
{noformat}
2020-01-07 16:42:26,519 [pool-31-thread-4] ERROR 
o.a.a.o.s.OrchestratorServerHandler 
experiment_id=Gaussian_on_Jan_7,_2020_11:42_AM_3e083097-4505-49e7-8983-f6842532eabe,
 gateway_id=seagrid - Experiment launch failed due to Thrift conversion error, 
experimentId: 
Gaussian_on_Jan_7,_2020_11:42_AM_3e083097-4505-49e7-8983-f6842532eabe, 
gatewayId: seagrid
org.apache.thrift.TException: Experiment 
'Gaussian_on_Jan_7,_2020_11:42_AM_3e083097-4505-49e7-8983-f6842532eabe' launch 
failed. Unable to figureout execution type for application 
Gaussian_bd41aa7e-5ec0-4a11-a321-f35ba8bfce91
        at 
org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchExperiment(OrchestratorServerHandler.java:263)
        at 
org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchExperiment(OrchestratorServerHandler.java:723)
        at 
org.apache.airavata.orchestrator.server.OrchestratorServerHandler$ExperimentHandler.onMessage(OrchestratorServerHandler.java:677)
        at 
org.apache.airavata.messaging.core.impl.ExperimentConsumer.handleDelivery(ExperimentConsumer.java:84)
        at 
com.rabbitmq.client.impl.ConsumerDispatcher$5.run(ConsumerDispatcher.java:144)
        at 
com.rabbitmq.client.impl.ConsumerWorkService$WorkPoolRunnable.run(ConsumerWorkService.java:99)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: 
org.apache.airavata.orchestrator.core.exception.OrchestratorException: Error 
during creating process
        at 
org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.createAndSaveTasks(SimpleOrchestratorImpl.java:358)
        at 
org.apache.airavata.orchestrator.server.OrchestratorServerHandler.launchExperiment(OrchestratorServerHandler.java:231)
        ... 8 common frames omitted
Caused by: org.apache.airavata.common.exception.AiravataException: Error while 
serializing data staging sub task model
        at 
org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.createAndSaveInputDataStagingTasks(SimpleOrchestratorImpl.java:432)
        at 
org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.createAndSaveTasks(SimpleOrchestratorImpl.java:324)
        ... 9 common frames omitted
Caused by: org.apache.thrift.protocol.TProtocolException: Required field 
'source' is unset! Struct:DataStagingTaskModel(source:null, 
destination:SCP://[email protected]:22/oasis/scratch/comet/gridchem/temp_project/seagrid_workdirs/PROCESS_4a4185a2-fa00-45b6-9fe2-069f3e825c09/,
 type:INPUT, processInput:InputDataObjectType(name:test, type:URI, 
standardInput:false, metaData:{"editor": {"dependencies": {"show": 
{"Input-File": {"comparison": "equals", "value": "no"}}}}}, inputOrder:1, 
isRequired:true, requiredToAddedToCommandLine:false, dataStaged:false, 
isReadOnly:false))
        at 
org.apache.airavata.model.task.DataStagingTaskModel.validate(DataStagingTaskModel.java:847)
        at 
org.apache.airavata.model.task.DataStagingTaskModel$DataStagingTaskModelStandardScheme.write(DataStagingTaskModel.java:979)
        at 
org.apache.airavata.model.task.DataStagingTaskModel$DataStagingTaskModelStandardScheme.write(DataStagingTaskModel.java:891)
        at 
org.apache.airavata.model.task.DataStagingTaskModel.write(DataStagingTaskModel.java:767)
        at org.apache.thrift.TSerializer.serialize(TSerializer.java:79)
        at 
org.apache.airavata.common.utils.ThriftUtils.serializeThriftObject(ThriftUtils.java:27)
        at 
org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.getInputDataStagingTask(SimpleOrchestratorImpl.java:646)
        at 
org.apache.airavata.orchestrator.cpi.impl.SimpleOrchestratorImpl.createAndSaveInputDataStagingTasks(SimpleOrchestratorImpl.java:426)
        ... 10 common frames omitted
{noformat}

> BUG: non uploaded files argument appears in command-line in job script
> ----------------------------------------------------------------------
>
>                 Key: AIRAVATA-3276
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3276
>             Project: Airavata
>          Issue Type: Sub-task
>          Components: Django Portal
>    Affects Versions: 0.18
>         Environment: https://seagrid.org/
>            Reporter: Eroma
>            Assignee: Marcus Christie
>            Priority: Major
>             Fix For: 0.19
>
>
> 1. Created new application ABAQUS-6.14-1
> 2. In this application a file need to be uploaded as optional file.
> 3. This particular input also has an argument.
> 4. When the file is not uploaded the argument appears in command-line without 
> the file.
> 5. The argument should only appear with the filename when the file is 
> uploaded.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to