Re: Airavata Django Portal

2022-06-30 Thread DImuthu Upeksha
Hi Lahiru,

Good investigation. If you can make it work with two separate key stores,
please go ahead and do that one until we bump up the keycloak version

Thanks
Dimuthu

On Thu, Jun 30, 2022 at 2:56 PM Lahiru Jayathilake <
lahirujayathil...@gmail.com> wrote:

> Hi Dimuthu,
>
> Thanks for the help via the call to identify the issue was related to the
> keystores. I did a bit of a search and found that the default encryption
> algorithm used in a PKCS12 keystore has been updated on JDK 11.0.12 (and
> up).[1],[2],[3],[4] Since keycloak:2.5.4.Final is using JDK 1.8.0_111, it
> cannot handle a keystore that is generated by 11.0.12+.
>
> [1] -
> https://www.oracle.com/java/technologies/javase/11-0-12-relnotes.html#JDK-8153005
> [2] - https://bugs.openjdk.org/browse/JDK-8202837
> [3] - https://bugs.openjdk.org/browse/JDK-8264362
> [4] - https://bugs.openjdk.org/browse/JDK-8242069
>
> Thanks
>
> On Mon, Jun 27, 2022 at 11:58 PM Lahiru Jayathilake <
> lahirujayathil...@gmail.com> wrote:
>
>> Hi Dimuthu,
>>
>> Performed a maven build and it was successful. And I tried it again.
>> However, I'm getting the same error.
>> Herewith I've attached the logs
>>
>> On Mon, Jun 27, 2022 at 11:16 PM DImuthu Upeksha <
>> dimuthu.upeks...@gmail.com> wrote:
>>
>>> Seems like your API server is not running properly. There are
>>> unoptimized JPA classes. Can you do a maven build again and run
>>> ApiServerStarter again?
>>>
>>> Thanks
>>> Dimuthu
>>>
>>> On Mon, Jun 27, 2022 at 1:40 PM Lahiru Jayathilake <
>>> lahirujayathil...@gmail.com> wrote:
>>>
 Hi Dimuthu,

 When I telnet to airavata.host:8443 I get the following. And I've
 attached the logs as well. Hope these help. Thanks in advance.

 [image: Screenshot 2022-06-27 at 22.47.59.png]

 On Sun, Jun 26, 2022 at 9:52 PM DImuthu Upeksha <
 dimuthu.upeks...@gmail.com> wrote:

> Hi Lahiru,
>
> Thanks for the PR. I just merged it. For the error in django portal,
> you need to verify whether you can telnet to airavata.host:8443. If not,
> there is some issue in API Server. Please send API server logs as well
>
> Dimuthu
>
> On Sun, Jun 26, 2022 at 7:06 AM Lahiru Jayathilake <
> lahirujayathil...@gmail.com> wrote:
>
>> Hello Everyone,
>>
>> A PR was created addressing the following issues. (
>> https://github.com/apache/airavata/pull/306)
>> * Due to some recent security changes were done to "less secure Gmail
>> accounts" on 30-May-2022[1] (Updated the
>> airavata/modules/ide-integration/README.md)
>> * An Enum error when running the JobMonitorStarter (updated the
>> email-config.yaml file)
>>
>> I was following
>> https://github.com/apache/airavata/tree/develop/modules/ide-integration 
>> doc
>> and when I tried to log in to the portal using "default-admin/123456"
>> credentials I'm getting the following error.
>>
>> HTTPSConnectionPool(host='airavata.host', port=8443): Max retries
>>> exceeded with url: /auth/realms/default/protocol/openid-connect/token
>>> (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of 
>>> protocol
>>> (_ssl.c:1122)')))
>>
>>
>> Full log - https://dpaste.com/3MLV5CSKH
>>
>> Does anyone know how to resolve this?
>>
>> [1] - https://support.google.com/accounts/answer/6010255?hl=en
>>
>> Thanks,
>> Lahiru
>>
>>
>> On Fri, Jun 24, 2022 at 2:24 AM Lahiru Jayathilake <
>> lahirujayathil...@gmail.com> wrote:
>>
>>> Hi Everyone,
>>>
>>> I've been going through the following documentation to set up a
>>> local Airavata Django development environment and try out the given
>>> samples.
>>>
>>> *
>>> https://github.com/apache/airavata/tree/develop/modules/ide-integration
>>> * https://github.com/apache/airavata-django-portal#getting-started
>>> *
>>> https://apache-airavata-django-portal.readthedocs.io/en/latest/dev/new_django_app/
>>>
>>> Due to some code changes, one of the docs needed to be updated.
>>> I've already created a pull request for that -
>>> https://github.com/apache/airavata-django-portal/pull/105
>>>
>>>
>>> When starting the API server (according to this
>>> 
>>> guide) I encountered an issue with the IntelliJ Idea version 2022.1.3.
>>> (MacOS)
>>>
>>> Exception - Module 'platform-monitoring' production:
 java.lang.NoClassDefFoundError: com/intellij/openapi/vfs/VfsUtil
>>>
>>>
>>> Tried updating the relevant plugins and a few ways suggested in the
>>> Jetbrains issue track. However, the only way I could resolve this was to
>>> downgrade the Intellij Idea. (working for 2020.3.4 version). Has anyone
>>> faced a similar issue?
>>>
>>> Cheers!
>>> Lahiru
>>>
>>
>>
>> --
>> Lahiru 

Re: Clarification on dashboard for quick statistics development

2022-06-30 Thread Christie, Marcus Aaron
Hi Shubham,

My apologies for taking so long to get back to you, and thanks to Suresh for 
following up.

I agree with everything that Suresh said. Also, for developing new Airavata 
APIs take a look at 
https://github.com/apache/airavata/tree/develop/modules/ide-integration 
 for 
setting up a dev environment where you have a local Airavata API server 
instance and local Django Portal instance.

Thanks,

Marcus

> On Jun 29, 2022, at 9:58 PM, Suresh Marru  wrote:
> 
> Hi Shubham,
> 
> See below: 
> 
>> On Jun 28, 2022, at 12:39 PM, Bipin Kumar, Shubham > > wrote:
>> 
>> Hi Marcus,
>> 
>> I had the following question on dashboard developments . Can you please 
>> clarify these:
>> Can I use React for frontend development or is it compulsory to use VueJs?
> 
> As such we would not have opinion, but in this case please use VueJS since 
> rest of the apps are built in it and It. 
> 
>> Should the dashboard be an independent application, or it should be 
>> integrated as a page in Django portal?
> It should be a Django app to be deployed within the Airavata Django 
> Framework. 
> 
>> For getting the data like user details, experiment details or resources 
>> details should we establish direct connections to respective databases or 
>> use the Airavata API's to fetch those details. In case there aren't any 
>> API's to support the data needed what should be the course of action?
> Always only use API’s we suggest database interactions do not go beyond the 
> respective components. So if you need to get any data Client -> Airavata 
> API->Component CPI -> Database
> 
> Suresh
> 
>> 
>> Regards,
>> Shubham
> 



smime.p7s
Description: S/MIME cryptographic signature


Re: Airavata Django Portal

2022-06-30 Thread Lahiru Jayathilake
Hi Dimuthu,

Thanks for the help via the call to identify the issue was related to the
keystores. I did a bit of a search and found that the default encryption
algorithm used in a PKCS12 keystore has been updated on JDK 11.0.12 (and
up).[1],[2],[3],[4] Since keycloak:2.5.4.Final is using JDK 1.8.0_111, it
cannot handle a keystore that is generated by 11.0.12+.

[1] -
https://www.oracle.com/java/technologies/javase/11-0-12-relnotes.html#JDK-8153005
[2] - https://bugs.openjdk.org/browse/JDK-8202837
[3] - https://bugs.openjdk.org/browse/JDK-8264362
[4] - https://bugs.openjdk.org/browse/JDK-8242069

Thanks

On Mon, Jun 27, 2022 at 11:58 PM Lahiru Jayathilake <
lahirujayathil...@gmail.com> wrote:

> Hi Dimuthu,
>
> Performed a maven build and it was successful. And I tried it again.
> However, I'm getting the same error.
> Herewith I've attached the logs
>
> On Mon, Jun 27, 2022 at 11:16 PM DImuthu Upeksha <
> dimuthu.upeks...@gmail.com> wrote:
>
>> Seems like your API server is not running properly. There are unoptimized
>> JPA classes. Can you do a maven build again and run ApiServerStarter again?
>>
>> Thanks
>> Dimuthu
>>
>> On Mon, Jun 27, 2022 at 1:40 PM Lahiru Jayathilake <
>> lahirujayathil...@gmail.com> wrote:
>>
>>> Hi Dimuthu,
>>>
>>> When I telnet to airavata.host:8443 I get the following. And I've
>>> attached the logs as well. Hope these help. Thanks in advance.
>>>
>>> [image: Screenshot 2022-06-27 at 22.47.59.png]
>>>
>>> On Sun, Jun 26, 2022 at 9:52 PM DImuthu Upeksha <
>>> dimuthu.upeks...@gmail.com> wrote:
>>>
 Hi Lahiru,

 Thanks for the PR. I just merged it. For the error in django portal,
 you need to verify whether you can telnet to airavata.host:8443. If not,
 there is some issue in API Server. Please send API server logs as well

 Dimuthu

 On Sun, Jun 26, 2022 at 7:06 AM Lahiru Jayathilake <
 lahirujayathil...@gmail.com> wrote:

> Hello Everyone,
>
> A PR was created addressing the following issues. (
> https://github.com/apache/airavata/pull/306)
> * Due to some recent security changes were done to "less secure Gmail
> accounts" on 30-May-2022[1] (Updated the
> airavata/modules/ide-integration/README.md)
> * An Enum error when running the JobMonitorStarter (updated the
> email-config.yaml file)
>
> I was following
> https://github.com/apache/airavata/tree/develop/modules/ide-integration 
> doc
> and when I tried to log in to the portal using "default-admin/123456"
> credentials I'm getting the following error.
>
> HTTPSConnectionPool(host='airavata.host', port=8443): Max retries
>> exceeded with url: /auth/realms/default/protocol/openid-connect/token
>> (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol
>> (_ssl.c:1122)')))
>
>
> Full log - https://dpaste.com/3MLV5CSKH
>
> Does anyone know how to resolve this?
>
> [1] - https://support.google.com/accounts/answer/6010255?hl=en
>
> Thanks,
> Lahiru
>
>
> On Fri, Jun 24, 2022 at 2:24 AM Lahiru Jayathilake <
> lahirujayathil...@gmail.com> wrote:
>
>> Hi Everyone,
>>
>> I've been going through the following documentation to set up a local
>> Airavata Django development environment and try out the given samples.
>>
>> *
>> https://github.com/apache/airavata/tree/develop/modules/ide-integration
>> * https://github.com/apache/airavata-django-portal#getting-started
>> *
>> https://apache-airavata-django-portal.readthedocs.io/en/latest/dev/new_django_app/
>>
>> Due to some code changes, one of the docs needed to be updated.
>> I've already created a pull request for that -
>> https://github.com/apache/airavata-django-portal/pull/105
>>
>>
>> When starting the API server (according to this
>> 
>> guide) I encountered an issue with the IntelliJ Idea version 2022.1.3.
>> (MacOS)
>>
>> Exception - Module 'platform-monitoring' production:
>>> java.lang.NoClassDefFoundError: com/intellij/openapi/vfs/VfsUtil
>>
>>
>> Tried updating the relevant plugins and a few ways suggested in the
>> Jetbrains issue track. However, the only way I could resolve this was to
>> downgrade the Intellij Idea. (working for 2020.3.4 version). Has anyone
>> faced a similar issue?
>>
>> Cheers!
>> Lahiru
>>
>
>
> --
> Lahiru Jayathilake
> Department of Computer Science and Engineering,
> Faculty of Engineering,
> University of Moratuwa
>
> mobile : +94 (71) 912 8355
>
> 
>