Hi Karan,

I tried installing Airavata using the staging branch and was able to
recreate your issue. Please follow the below steps to fix it.

   - Stop all running instances with
/home/pga/master-deployment/api-orchestrator/apache-airavata-server-0.17-SNAPSHOT/bin/airavata-server-stop.sh
   -f api-orch
   - Drop app_catalog database and recreate it with CREATE DATABASE
   app_catalog;
   - Configure KeyCloak if you haven't done it after creating databases.
   Since, you have already installed PGA, the auth_client_secret (see image)
   can be set directly to Laravel config at
   /var/www/portals/default/app/config/pga_config.php
   - ( Run php artisan cache:clear to reload Laravel configurations)

[image: keycloak.png]

   - Goto
   
/home/pga/master-deployment/api-orchestrator/apache-airavata-server-0.17-SNAPSHOT/bin/database_scripts
   and open appcatalog-mysql.sql
   - Search for USER_COMPUTE_RESOURCE_PREFERENCE table and replace the
line SCRATCH_LOCATION
   varchar(255) NOT NULL DEFAULT NULL, with SCRATCH_LOCATION varchar(255)
   DEFAULT NULL,
   - Start servers again with
/home/pga/master-deployment/api-orchestrator/apache-airavata-server-0.17-SNAPSHOT/bin/airavata-server-start.sh
   -d api-orch

Please note that this is just a workaround and it needs to be fixed. Let me
know if anything needs to be explained.

Regards

On Sat, Jul 28, 2018 at 10:51 AM Kotabagi, Karan <[email protected]> wrote:

> Hi Yasas,
>
>
> As discussed please find the attached files.​
>
>
> Regards
>
> Karan
> ------------------------------
> *From:* Kotabagi, Karan <[email protected]>
> *Sent:* Friday, July 27, 2018 11:41 PM
> *To:* Lahiru Jayathilake
> *Cc:* [email protected]
> *Subject:* Re: Installation of Apache Airavata
>
>
> Hi Lahiru,
>
>
> Please find the terminal output in the file attached.
>
>
> Regards
>
> Karan​
> ------------------------------
> *From:* Lahiru Jayathilake <[email protected]>
> *Sent:* Friday, July 27, 2018 11:19 PM
> *To:* Kotabagi, Karan
> *Subject:* Re: Installation of Apache Airavata
>
> Hi Karan,
>
> According to the banner the Airavata server is not active. Can you share
> the terminal output running the command,
> *ps -ef | grep airavata*
>
> gfac is not needed if you are going with the helix-integration
> (helix-controller, helix-participant, helix-pre-wm, and helix-post-wm) if
> not you need it as well.
>
> Regards,
>
> On 28 July 2018 at 06:05, Kotabagi, Karan <[email protected]> wrote:
>
>> Hi Yasas / Lahiru,
>>
>>
>> After the set-up is completed from the guide the pga portal starts up but
>> I am unable to login with the default-admin and I have attached the
>> screenshot.
>>
>>
>> I have followed these troubleshooting steps:
>>
>>
>> 1>  Check if the service httpd is running (It was active and running).
>>
>>
>> 2> . Started the airavata server at the following path in VM:
>>
>>    1.
>>
>>    A) go to
>>    
>> /home/pga/master-deployment/api-orchestrator/apache-airavata-server-<version>-SNAPSHOT/bin
>>    and run ./airavata-server-start.sh -d api-orch​
>>
>>
>> Although I was not able to find the gfac-instance to start it with 
>> "./airavata-server-start.sh
>> -d gfac", I believe that gfac won't be there with the staging?
>>
>>
>> Please can you further advise if I have to do any more configuration to
>> successfully login and set the pga configuration?
>>
>>
>> Regards
>>
>> Karan​
>> ------------------------------
>> *From:* Kotabagi, Karan <[email protected]>
>> *Sent:* Friday, July 27, 2018 7:53 PM
>> *To:* [email protected]
>> *Cc:* [email protected]
>>
>> *Subject:* Re: Installation of Apache Airavata
>>
>>
>> Hi Lahiru,
>>
>>
>> Thanks, I was able to run it with the modifications suggested by Yasas.
>>
>>
>> I believe it should be fine?
>>
>>
>> Regards
>>
>> Karan
>> ------------------------------
>> *From:* Lahiru Jayathilake <[email protected]>
>> *Sent:* Friday, July 27, 2018 6:57 PM
>> *To:* [email protected]
>> *Subject:* Re: Installation of Apache Airavata
>>
>> Hi Karan,
>>
>> You can fix it adding the following code block before line number 120 in
>> /ansible/roles/database/tasks/main.yml
>>
>> - name: update facts
>> setup:
>> delegate_to: '{{item}}'
>> delegate_facts: yes
>> when: hostvars[item]["ansible_default_ipv4"] is not defined
>> with_items:
>> - '{{groups["api-orch"]}}'
>> - "localhost"
>> become: sudo
>> tags:
>> - always
>>
>> Regards,
>> Lahiru
>>
>> On 28 July 2018 at 03:30, Kotabagi, Karan <[email protected]> wrote:
>>
>>> ​Hi Yasas,
>>>
>>>
>>> ​Thanks, it worked now, I will continue with the set-up.
>>>
>>>
>>> Regards
>>>
>>> Karan
>>> ------------------------------
>>> *From:* Yasas Gunarathne <[email protected]>
>>> *Sent:* Friday, July 27, 2018 5:38 PM
>>>
>>> *To:* [email protected]
>>> *Subject:* Re: Installation of Apache Airavata
>>>
>>> Hi Karan,
>>>
>>> I think for the moment you can modify line number 121 and 128 at
>>> dev-tools/ansible/roles/database/tasks/main.yml as follows and continue.
>>>
>>>   mysql_user: name="{{ db_user }}" password="{{ db_password }}" host="{{
>>> item }}"
>>>
>>> Regards
>>>
>>> On Sat, Jul 28, 2018 at 2:06 AM Kotabagi, Karan <[email protected]> wrote:
>>>
>>>> Hi Yasas,
>>>>
>>>>
>>>> I have attached the result of the "ip r"(from VM) in the screenshot.
>>>>
>>>>
>>>> Can you please check and advise, if it is Ok?
>>>>
>>>>
>>>> Also please note that this is the error I am facing with the ​staging
>>>> branch, this had worked in the master branch.
>>>>
>>>>
>>>> Regards
>>>>
>>>> Karan
>>>> ------------------------------
>>>> *From:* Yasas Gunarathne <[email protected]>
>>>> *Sent:* Friday, July 27, 2018 4:05 PM
>>>> *To:* [email protected]
>>>> *Subject:* Re: Installation of Apache Airavata
>>>>
>>>> Hi Karan,
>>>>
>>>> If you have no default routes defined for your IPv4 or IPv6 addresses
>>>> ansible_default_ipv4 will stay undefined. Can you check this with, ip r
>>>> and confirm?
>>>>
>>>> Regards
>>>>
>>>> On Sat, Jul 28, 2018 at 1:02 AM Kotabagi, Karan <[email protected]>
>>>> wrote:
>>>>
>>>>>
>>>>> *************Re-sending the mail with the attached error
>>>>> screenshot*****************
>>>>>
>>>>>
>>>>> Hi All,
>>>>>
>>>>>
>>>>> I working to set-up the Apache Airavata locally using a CentOS VM.
>>>>>
>>>>>
>>>>> I have set-up using the guide at the link:
>>>>>
>>>>> *https://docs.google.com/document/d/1dFhajiYlPtNymIKbMvCXeLivLHujLjvE107QyUDEgdA/edit?usp=sharing
>>>>> <https://docs.google.com/document/d/1dFhajiYlPtNymIKbMvCXeLivLHujLjvE107QyUDEgdA/edit?usp=sharing>*
>>>>>   for
>>>>> the master branch and completed the set-up but was getting the error with
>>>>> the pga not starting up at the port 8008.
>>>>>
>>>>>
>>>>> Since, in order to debug or test the new adapter locally I was advised
>>>>> by Dimuthu to use the staging branch and use some settings to debug the 
>>>>> pga
>>>>> client to start up.
>>>>>
>>>>>
>>>>> At the stage of setting up the database using the ansible with the
>>>>> following command:
>>>>>
>>>>>
>>>>> *    ansible-playbook -i inventories/standalone database.yml*
>>>>>
>>>>>
>>>>> *(Error Screenshot as attached in error.png)*
>>>>>
>>>>>
>>>>> Although, this was successful with the master branch.
>>>>>
>>>>>
>>>>> I am getting this error with the staging branch and  I have checked
>>>>> the quotes message in the error and I believe the error is not related to
>>>>> this?
>>>>>
>>>>>
>>>>> Please provide your inputs to resolve this issue and move ahead with
>>>>> the set-up.
>>>>>
>>>>>
>>>>> Regards
>>>>>
>>>>> Karan
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> --
>>>> *Yasas Gunarathne*
>>>> Undergraduate at Department of Computer Science and Engineering
>>>> Faculty of Engineering - University of Moratuwa Sri Lanka
>>>> LinkedIn <https://www.linkedin.com/in/yasasgunarathne/> | GitHub
>>>> <https://github.com/yasgun> | Mobile : +94 77 4893616
>>>>
>>>
>>>
>>> --
>>> *Yasas Gunarathne*
>>> Undergraduate at Department of Computer Science and Engineering
>>> Faculty of Engineering - University of Moratuwa Sri Lanka
>>> LinkedIn <https://www.linkedin.com/in/yasasgunarathne/> | GitHub
>>> <https://github.com/yasgun> | Mobile : +94 77 4893616
>>>
>>
>>
>>
>> --
>> Lahiru Jayathilake
>> Department of Computer Science and Engineering,
>> Faculty of Engineering,
>> University of Moratuwa
>>
>> <https://lk.linkedin.com/in/lahirujayathilake>
>>
>
>
>
> --
> Lahiru Jayathilake
> Department of Computer Science and Engineering,
> Faculty of Engineering,
> University of Moratuwa
>
> <https://lk.linkedin.com/in/lahirujayathilake>
>


-- 
*Yasas Gunarathne*
Undergraduate at Department of Computer Science and Engineering
Faculty of Engineering - University of Moratuwa Sri Lanka
LinkedIn <https://www.linkedin.com/in/yasasgunarathne/> | GitHub
<https://github.com/yasgun> | Mobile : +94 77 4893616

Reply via email to