Cloning requires access to the data (inputs etc) from the previous experiment 
for reuse that are usually at the service host. Perhaps the permissions may be 
the issue in your case.

Sudhakar.
On Dec 27, 2017, at 1:52 PM, Saurabh Agrawal 
<agras...@umail.iu.edu<mailto:agras...@umail.iu.edu>> wrote:

Hi all,
Got this exception while trying to clone an experiment on SEAGrid using my 
Python script.

(ENV) [js-17-195] sa0412 ~/test/airavata-jupyter-notebook-client-->python3.6 
test.py
Traceback (most recent call last):
  File "test.py", line 26, in <module>
    main()
  File "test.py", line 23, in main
    username, existing_exp_id, new_exp_name, new_exp_proj_id)
  File "/home/sa0412/test/airavata-jupyter-notebook-client/api.py", line 116, 
in clone_experiment
    cloned_exp_id = airavataClient.cloneExperiment(auth_token, existing_exp_id, 
new_exp_name, new_exp_proj_id)
  File 
"/home/sa0412/test/airavata-jupyter-notebook-client/apache/airavata/api/Airavata.py",
 line 6244, in cloneExperiment
    return self.recv_cloneExperiment()
  File 
"/home/sa0412/test/airavata-jupyter-notebook-client/apache/airavata/api/Airavata.py",
 line 6277, in recv_cloneExperiment
    raise result.ase
apache.airavata.api.error.ttypes.AiravataSystemException: 
AiravataSystemException(airavataErrorType=2, message='Error while cloning the 
experiment with existing configuration. More info : Error while getting the 
experiment. More info : User does not have permission to access this resource')

The following statement clones an experiment:
airavataClient.cloneExperiment(auth_token, existing_exp_id, new_exp_name, 
new_exp_proj_id)

BTW, I am able to launch an experiment using the following statement:
airavata_client.launchExperiment(auth_token, experiment_id, gateway_id)

Please suggest.

Thanks in advance,
Saurabh Agrawal

Reply via email to