You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@airavata.apache.org by saurav kumar jha <im...@gmail.com> on 2023/05/30 06:42:23 UTC

questions regarding dashboards to get quick statistics.

Hi Suresh & Eroma,
I have got overview of technical requirements of the following jira::
[AIRAVATA-3594] Dashboards to get quick statistics - ASF JIRA (apache.org)
<https://issues.apache.org/jira/browse/AIRAVATA-3594>

I have a few questions related to it.

Should I do development setup of Airavata Django portal
<https://github.com/apache/airavata-django-portal> on linux or on windows
for working on above jira?

Can you please assign this jira to me?

What are the repositories other than Airavata Django Portal
<https://github.com/apache/airavata-django-portal> which I should set up
locally for development purposes?

Thanks & Regards,
Saurav Kumar Jha

Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Error thrown on running
/modules/ide-integration/src/main/java/org/apache/airavata/ide/integration/
*APIServerStarter.java*

[main] ERROR
org.apache.airavata.registry.core.repositories.AbstractRepository {} -
Failed to get EntityManager
*org.apache.openjpa.persistence.ArgumentException: This configuration
disallows runtime optimization, but the following listed types were not
enhanced at build time or at class load time with a javaagent: "*
org.apache.airavata.registry.core.entities.expcatalog.ExperimentEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.UserEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessErrorEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessOutputEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessWorkflowEntity
org.apache.airavata.registry.core.entities.expcatalog.TaskEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessResourceScheduleEntity
org.apache.airavata.registry.core.entities.expcatalog.TaskStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.UserConfigurationDataEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessInputEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessEntity
org.apache.airavata.registry.core.entities.expcatalog.JobStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.TaskErrorEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentOutputEntity
org.apache.airavata.registry.core.entities.expcatalog.ComputationalResourceSchedulingEntity
org.apache.airavata.registry.core.entities.expcatalog.NotificationEntity
org.apache.airavata.registry.core.entities.expcatalog.GatewayEntity
org.apache.airavata.registry.core.entities.expcatalog.JobEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentInputEntity
org.apache.airavata.registry.core.entities.expcatalog.ProjectUserEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentErrorEntity".
        at
org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:116)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:316)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:240)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:216)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:166)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:262)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:177)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:167)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:64)
~[openjpa-3.1.0.jar:3.1.0]
        at
org.apache.airavata.registry.core.utils.JPAUtil.ExpCatalogJPAUtils.getEntityManager(ExpCatalogJPAUtils.java:35)
~[classes/:?]
        at
org.apache.airavata.registry.core.repositories.expcatalog.ExpCatAbstractRepository.getEntityManager(ExpCatAbstractRepository.java:16)
~[classes/:?]
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:134)
~[classes/:?]
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
~[classes/:?]
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
~[classes/:?]
        at
org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
~[classes/:?]
        at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
~[classes/:?]
        at
org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
~[classes/:?]
        at
org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
~[classes/:?]
        at
org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
~[classes/:?]
        at
org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)
~[classes/:?]
Exception in thread "main" java.lang.RuntimeException: Failed to
post-initialize the expcatalog database
        at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:81)
        at
org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
        at
org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
        at
org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
        at
org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)
Caused by: java.lang.RuntimeException: Failed to get EntityManager
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:137)
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
        at
org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
        at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
        ... 4 more
Caused by: <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0
nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This
configuration disallows runtime optimization, but the following listed
types were not enhanced at build time or at class load time with a
javaagent: "
org.apache.airavata.registry.core.entities.expcatalog.ExperimentEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.UserEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessErrorEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessOutputEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessWorkflowEntity
org.apache.airavata.registry.core.entities.expcatalog.TaskEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessResourceScheduleEntity
org.apache.airavata.registry.core.entities.expcatalog.TaskStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.UserConfigurationDataEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessInputEntity
org.apache.airavata.registry.core.entities.expcatalog.ProcessEntity
org.apache.airavata.registry.core.entities.expcatalog.JobStatusEntity
org.apache.airavata.registry.core.entities.expcatalog.TaskErrorEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentOutputEntity
org.apache.airavata.registry.core.entities.expcatalog.ComputationalResourceSchedulingEntity
org.apache.airavata.registry.core.entities.expcatalog.NotificationEntity
org.apache.airavata.registry.core.entities.expcatalog.GatewayEntity
org.apache.airavata.registry.core.entities.expcatalog.JobEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentInputEntity
org.apache.airavata.registry.core.entities.expcatalog.ProjectUserEntity
org.apache.airavata.registry.core.entities.expcatalog.ExperimentErrorEntity".
        at
org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:116)
        at
org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:316)
        at
org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:240)
        at
org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:216)
        at
org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:166)
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:262)
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:177)
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:167)
        at
org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:64)
        at
org.apache.airavata.registry.core.utils.JPAUtil.ExpCatalogJPAUtils.getEntityManager(ExpCatalogJPAUtils.java:35)
        at
org.apache.airavata.registry.core.repositories.expcatalog.ExpCatAbstractRepository.getEntityManager(ExpCatAbstractRepository.java:16)
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:134)
        ... 8 more

On Sun, Jun 11, 2023 at 7:45 PM saurav kumar jha <
imsauravgauravjha@gmail.com> wrote:

> Hi Marcus,
> Thanks a lot for the responses.
>
> 1. Now I am not getting any issues from Airavata-Django-Portal.
> *airavata.host* was somehow removed from /etc/hosts. After adding it
> doesn't give ssl version related error. but login still fails saying
>  Login failed: Could not connect to any of [('127.0.0.1', 8962)]. Please
> try again.
>
> and workspace/dashboard gives the following error:
> Could not connect to any of [('127.0.0.1', 9930)]
>
> API Server is down.
>  Checking status ...
> 2. I am still not able to run APIServerStarter.
>
> I ran *mvn clean install -DskipTests *but still had the same error which
> I have pasted below.
>
> I use VS Code ide but I couldn't find any option *"Auto Build" *. It will
> be very helpful if you can elaborate on where I can find this option.
>
> Thanks & Regards,
> Saurav Kumar Jha
>
> On Fri, Jun 9, 2023 at 12:18 AM Christie, Marcus Aaron <ma...@iu.edu>
> wrote:
>
>> Hi Saurav,
>>
>> > On Jun 7, 2023, at 10:34 AM, saurav kumar jha <
>> imsauravgauravjha@gmail.com> wrote:
>> >
>> > 2. Fixing 1 fixed the second one as you said. but there is another
>> exception related to expcatalog database:
>> >
>>
>> I just went through the instructions to make sure I could bring up the
>> API server and django portal locally.
>>
>> One thing I'll mention, you may want to disable any sort of "auto build"
>> option in your IDE (in VS Code it's called "Auto Build"). The reason is
>> that the auto build will tend to overwrite the enhanced entity classes.
>>
>> > Exception in thread "main" java.lang.RuntimeException: Failed to
>> post-initialize the expcatalog database
>> >         at
>> org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:81)
>> >         at
>> org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
>> >         at
>> org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
>> >         at
>> org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
>> >         at
>> org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)
>> > Caused by: java.lang.RuntimeException: Failed to get EntityManager
>> >         at
>> org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:137)
>> >         at
>> org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
>> >         at
>> org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
>> >         at
>> org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
>> >         at
>> org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
>> >         ... 4 more
>> > Caused by: <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0
>> nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This
>> configuration disallows runtime optimization, but the following listed
>> types were not enhanced at build time or at class load time with a
>> javaagent: "
>> >
>> > 3. I copied the django_airavata/settings_local.py.ide to my
>> settings_local.py file and still the issue exists. I have attached the
>> settings_local.py file with this email.
>> >
>>
>> I was able to use the settings_local.py.ide successfully. If you are
>> still getting errors after fixing #2 above, then make sure you are using a
>> Python version from 3.6 to 3.10.
>>
>> Thanks,
>>
>> Marcus
>
>

Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Hi Everyone,
I have a few questions related to this jira
<https://issues.apache.org/jira/browse/AIRAVATA-3594>

   1. Currently Airavata Django Portal has a tab (left navigation menu)
   named Experiment Statistics.
   There are requirements for user related statistics and resources related
   statistics.
   Should we introduce two more tabs with name user statistics and resource
   statistics? or should we show all statistics in the existing Experiment
   Statistics tab?

   2. For visualizations (charts, graphs etc) should we use Apache Superset
   or some other library?

   If superset then, I think currently Airavata projects are not using
   superset, so we need to set it up.
   I don't have a complete idea but
   option a.)  As Superset needs to communicate directly with Database,
   should we run Superset on airavata backend in a separate container? and
   show it in the airavata django portal using i-frames?
   option b.) OR, should we run Superset on Airavata django portal, connect
   it with sqlite db and build some pipeline to fetch data and store it in
   sqlite.
   option c.)  Can superset use data fetched using rest api instead of
   directly connecting to db? I couldn't find anything for this.

   If not superset then which library should we use? Can we use vue
   chart.js?


Thanks & Regards,
Saurav Kumar Jha

On Wed, Jun 14, 2023 at 9:25 PM saurav kumar jha <
imsauravgauravjha@gmail.com> wrote:

> Thanks a lot Marcus.
> Your last tip of getting into error producing directory and doing a clean
> install was super helpful in resolving errors !
>
> Now, APIServer and Django-portal are working great locally.
>
> Thanks & Regards,
> Saurav Kumar Jha
>
>
> On Wed, Jun 14, 2023 at 12:26 AM Christie, Marcus Aaron <ma...@iu.edu>
> wrote:
>
>> Hi Saurav,
>>
>>
>>
>> Yeah, I’ve seen this issue where it takes a few tries to get it to work.
>> What I would suggest is that you see what Entities aren’t enhanced, then go
>> into that module and do a “mvn install -DskipTests” in just that module and
>> try again.
>>
>>
>>
>> For example, if ExperimentEntity isn’t enhanced, go into
>> modules/registry/registry-core and run “mvn install -DskipTests”.
>>
>>
>>
>> That will be faster than rebuilding the whole thing. But again, you might
>> have to do it a couple of times.
>>
>>
>>
>> *From: *saurav kumar jha <im...@gmail.com>
>> *Date: *Monday, June 12, 2023 at 10:45 PM
>> *To: *Christie, Marcus Aaron <ma...@iu.edu>
>> *Cc: *dev@airavata.apache.org <de...@airavata.apache.org>
>> *Subject: *Re: questions regarding dashboards to get quick statistics.
>>
>> Hi Marcus,
>>
>> I turned off the Autobuild : Enabled option.
>>
>> Did a clean install, cloned the repo again but getting the same openJpa
>> error  in all cases.
>>
>>
>>
>> Thanks & Regards,
>>
>> Saurav Kumar Jha
>>
>>
>>
>>
>>
>>
>>
>> On Tue, Jun 13, 2023 at 2:08 AM Christie, Marcus Aaron <ma...@iu.edu>
>> wrote:
>>
>> Hi Saurav,
>>
>> > On Jun 11, 2023, at 10:15 AM, saurav kumar jha <
>> imsauravgauravjha@gmail.com> wrote:
>> >
>> > I use VS Code ide but I couldn't find any option "Auto Build" . It will
>> be very helpful if you can elaborate on where I can find this option.
>> >
>>
>> Go into Settings, and search for "Auto Build". Turn off the "Java >
>> Autobuild: Enabled" option.
>>
>>

Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Thanks a lot Marcus.
Your last tip of getting into error producing directory and doing a clean
install was super helpful in resolving errors !

Now, APIServer and Django-portal are working great locally.

Thanks & Regards,
Saurav Kumar Jha


On Wed, Jun 14, 2023 at 12:26 AM Christie, Marcus Aaron <ma...@iu.edu>
wrote:

> Hi Saurav,
>
>
>
> Yeah, I’ve seen this issue where it takes a few tries to get it to work.
> What I would suggest is that you see what Entities aren’t enhanced, then go
> into that module and do a “mvn install -DskipTests” in just that module and
> try again.
>
>
>
> For example, if ExperimentEntity isn’t enhanced, go into
> modules/registry/registry-core and run “mvn install -DskipTests”.
>
>
>
> That will be faster than rebuilding the whole thing. But again, you might
> have to do it a couple of times.
>
>
>
> *From: *saurav kumar jha <im...@gmail.com>
> *Date: *Monday, June 12, 2023 at 10:45 PM
> *To: *Christie, Marcus Aaron <ma...@iu.edu>
> *Cc: *dev@airavata.apache.org <de...@airavata.apache.org>
> *Subject: *Re: questions regarding dashboards to get quick statistics.
>
> Hi Marcus,
>
> I turned off the Autobuild : Enabled option.
>
> Did a clean install, cloned the repo again but getting the same openJpa
> error  in all cases.
>
>
>
> Thanks & Regards,
>
> Saurav Kumar Jha
>
>
>
>
>
>
>
> On Tue, Jun 13, 2023 at 2:08 AM Christie, Marcus Aaron <ma...@iu.edu>
> wrote:
>
> Hi Saurav,
>
> > On Jun 11, 2023, at 10:15 AM, saurav kumar jha <
> imsauravgauravjha@gmail.com> wrote:
> >
> > I use VS Code ide but I couldn't find any option "Auto Build" . It will
> be very helpful if you can elaborate on where I can find this option.
> >
>
> Go into Settings, and search for "Auto Build". Turn off the "Java >
> Autobuild: Enabled" option.
>
>

Re: questions regarding dashboards to get quick statistics.

Posted by "Christie, Marcus Aaron" <ma...@iu.edu>.
Hi Saurav, 

Yeah, I’ve seen this issue where it takes a few tries to get it to work. What I would suggest is that you see what Entities aren’t enhanced, then go into that module and do a “mvn install -DskipTests” in just that module and try again. 

For example, if ExperimentEntity isn’t enhanced, go into modules/registry/registry-core and run “mvn install -DskipTests”. 

That will be faster than rebuilding the whole thing. But again, you might have to do it a couple of times. 

From: saurav kumar jha <im...@gmail.com>
Date: Monday, June 12, 2023 at 10:45 PM
To: Christie, Marcus Aaron <ma...@iu.edu>
Cc: dev@airavata.apache.org <de...@airavata.apache.org>
Subject: Re: questions regarding dashboards to get quick statistics. 

Hi Marcus, 
I turned off the Autobuild : Enabled option. 

Did a clean install, cloned the repo again but getting the same openJpa error in all cases. 



Thanks & Regards, 

Saurav Kumar Jha 







On Tue, Jun 13, 2023 at 2:08 AM Christie, Marcus Aaron <machrist@iu.edu <ma...@iu.edu>> wrote: 

Hi Saurav,

> On Jun 11, 2023, at 10:15 AM, saurav kumar jha <imsauravgauravjha@gmail.com <_blank>> wrote:
> 
> I use VS Code ide but I couldn't find any option "Auto Build" . It will be very helpful if you can elaborate on where I can find this option.
> 

Go into Settings, and search for "Auto Build". Turn off the "Java > Autobuild: Enabled" option. 





Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Hi Marcus,
I turned off the Autobuild : Enabled option.
Did a clean install, cloned the repo again but getting the same openJpa
error  in all cases.

Thanks & Regards,
Saurav Kumar Jha



On Tue, Jun 13, 2023 at 2:08 AM Christie, Marcus Aaron <ma...@iu.edu>
wrote:

> Hi Saurav,
>
> > On Jun 11, 2023, at 10:15 AM, saurav kumar jha <
> imsauravgauravjha@gmail.com> wrote:
> >
> > I use VS Code ide but I couldn't find any option "Auto Build" . It will
> be very helpful if you can elaborate on where I can find this option.
> >
>
> Go into Settings, and search for "Auto Build". Turn off the "Java >
> Autobuild: Enabled" option.

Re: questions regarding dashboards to get quick statistics.

Posted by "Christie, Marcus Aaron" <ma...@iu.edu>.
Hi Saurav,

> On Jun 11, 2023, at 10:15 AM, saurav kumar jha <im...@gmail.com> wrote:
> 
> I use VS Code ide but I couldn't find any option "Auto Build" . It will be very helpful if you can elaborate on where I can find this option.
> 

Go into Settings, and search for "Auto Build". Turn off the "Java > Autobuild: Enabled" option.

Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Hi Marcus,
Thanks a lot for the responses.

1. Now I am not getting any issues from Airavata-Django-Portal.
*airavata.host* was somehow removed from /etc/hosts. After adding it
doesn't give ssl version related error. but login still fails saying
 Login failed: Could not connect to any of [('127.0.0.1', 8962)]. Please
try again.

and workspace/dashboard gives the following error:
Could not connect to any of [('127.0.0.1', 9930)]

API Server is down.
 Checking status ...
2. I am still not able to run APIServerStarter.

I ran *mvn clean install -DskipTests *but still had the same error which I
have pasted below.

I use VS Code ide but I couldn't find any option *"Auto Build" *. It will
be very helpful if you can elaborate on where I can find this option.

Thanks & Regards,
Saurav Kumar Jha

On Fri, Jun 9, 2023 at 12:18 AM Christie, Marcus Aaron <ma...@iu.edu>
wrote:

> Hi Saurav,
>
> > On Jun 7, 2023, at 10:34 AM, saurav kumar jha <
> imsauravgauravjha@gmail.com> wrote:
> >
> > 2. Fixing 1 fixed the second one as you said. but there is another
> exception related to expcatalog database:
> >
>
> I just went through the instructions to make sure I could bring up the API
> server and django portal locally.
>
> One thing I'll mention, you may want to disable any sort of "auto build"
> option in your IDE (in VS Code it's called "Auto Build"). The reason is
> that the auto build will tend to overwrite the enhanced entity classes.
>
> > Exception in thread "main" java.lang.RuntimeException: Failed to
> post-initialize the expcatalog database
> >         at
> org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:81)
> >         at
> org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
> >         at
> org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
> >         at
> org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
> >         at
> org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)
> > Caused by: java.lang.RuntimeException: Failed to get EntityManager
> >         at
> org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:137)
> >         at
> org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
> >         at
> org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
> >         at
> org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
> >         at
> org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
> >         ... 4 more
> > Caused by: <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0
> nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This
> configuration disallows runtime optimization, but the following listed
> types were not enhanced at build time or at class load time with a
> javaagent: "
> >
> > 3. I copied the django_airavata/settings_local.py.ide to my
> settings_local.py file and still the issue exists. I have attached the
> settings_local.py file with this email.
> >
>
> I was able to use the settings_local.py.ide successfully. If you are still
> getting errors after fixing #2 above, then make sure you are using a Python
> version from 3.6 to 3.10.
>
> Thanks,
>
> Marcus

Re: questions regarding dashboards to get quick statistics.

Posted by "Christie, Marcus Aaron" <ma...@iu.edu>.
Hi Saurav,

> On Jun 7, 2023, at 10:34 AM, saurav kumar jha <im...@gmail.com> wrote:
> 
> 2. Fixing 1 fixed the second one as you said. but there is another exception related to expcatalog database:
> 

I just went through the instructions to make sure I could bring up the API server and django portal locally.

One thing I'll mention, you may want to disable any sort of "auto build" option in your IDE (in VS Code it's called "Auto Build"). The reason is that the auto build will tend to overwrite the enhanced entity classes.

> Exception in thread "main" java.lang.RuntimeException: Failed to post-initialize the expcatalog database
>         at org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:81)
>         at org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
>         at org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
>         at org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
>         at org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)
> Caused by: java.lang.RuntimeException: Failed to get EntityManager
>         at org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:137)
>         at org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
>         at org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
>         at org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
>         at org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
>         ... 4 more
> Caused by: <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: "
> 
> 3. I copied the django_airavata/settings_local.py.ide to my settings_local.py file and still the issue exists. I have attached the settings_local.py file with this email.
> 

I was able to use the settings_local.py.ide successfully. If you are still getting errors after fixing #2 above, then make sure you are using a Python version from 3.6 to 3.10.

Thanks,

Marcus

Re: questions regarding dashboards to get quick statistics.

Posted by "Christie, Marcus Aaron" <ma...@iu.edu>.
Hi Saurav,

> On Jun 7, 2023, at 10:34 AM, saurav kumar jha <im...@gmail.com> wrote:
> 
> Hi Marcus,
> Thanks for the help!
> 1. Applying database migrations worked as you said to look at running containers using docker ps  I observed that the name of the container was  containers_db_1 and not containers-db-1 as shown in documentation here. I think we can update it in documentation.

What version of docker-compose are you using? v2 names containers with hyphens whereas v1 uses underscores. I suspect you are using version 1 of docker compose. I would recommend version 2.

We should then update the documentation to clarify either way.

> 
> 2. Fixing 1 fixed the second one as you said. but there is another exception related to expcatalog database:
> 
> Exception in thread "main" java.lang.RuntimeException: Failed to post-initialize the expcatalog database
>         at org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:81)
>         at org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
>         at org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
>         at org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
>         at org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)
> Caused by: java.lang.RuntimeException: Failed to get EntityManager
>         at org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:137)
>         at org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
>         at org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
>         at org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
>         at org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
>         ... 4 more
> Caused by: <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization, but the following listed types were not enhanced at build time or at class load time with a javaagent: "
> 


You need to run `mvn clean install -DskipTests` first as described in the README which will instrument the openjpa entities. You pretty much always have to rerun the build before starting the API server.

> 3. I copied the django_airavata/settings_local.py.ide to my settings_local.py file and still the issue exists. I have attached the settings_local.py file with this email.
> 

Yeah, your settings_local.py file looks fine. Do you have airavata.host in your /etc/hosts?

Thanks,

Marcus


Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Hi Marcus,
Thanks for the help!
1. Applying database migrations worked as you said to look at running
containers using *docker ps  *I observed that the name of the container
was  containers_db_1 and not containers-db-1 as shown in documentation here
<https://github.com/apache/airavata/blob/develop/modules/ide-integration/README.md#starting-backend-components-database-keycloak-kafka-rabbitmq-sshd-server>.
I think we can update it in documentation.

2. Fixing 1 fixed the second one as you said. but there is another
exception related to *expcatalog database*:

Exception in thread "main" java.lang.RuntimeException: Failed to
post-initialize the expcatalog database
        at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:81)
        at
org.apache.airavata.common.utils.DBInitializer.initializeDB(DBInitializer.java:46)
        at
org.apache.airavata.registry.api.service.RegistryAPIServer.StartRegistryServer(RegistryAPIServer.java:69)
        at
org.apache.airavata.registry.api.service.RegistryAPIServer.start(RegistryAPIServer.java:151)
        at
org.apache.airavata.ide.integration.APIServerStarter.main(APIServerStarter.java:23)
Caused by: java.lang.RuntimeException: Failed to get EntityManager
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.execute(AbstractRepository.java:137)
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:75)
        at
org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:113)
        at
org.apache.airavata.registry.core.repositories.expcatalog.GatewayRepository.isGatewayExist(GatewayRepository.java:99)
        at
org.apache.airavata.registry.core.utils.ExpCatalogDBInitConfig.postInit(ExpCatalogDBInitConfig.java:62)
        ... 4 more
Caused by: <openjpa-3.1.0-rafcec21a1d489dff682a3ce7986fac6a1c80e8e0
nonfatal user error> org.apache.openjpa.persistence.ArgumentException: This
configuration disallows runtime optimization, but the following listed
types were not enhanced at build time or at class load time with a
javaagent: "

3. I copied the *django_airavata/settings_local.py.ide* to my
*settings_local.py* file and still the issue exists. I have attached the
settings_local.py file with this email.

Thanks & Regards,
Saurav Kumar Jha

On Wed, Jun 7, 2023 at 3:18 AM Christie, Marcus Aaron <ma...@iu.edu>
wrote:

>
> Hi Saurav,
>
> > On Jun 6, 2023, at 12:51 PM, saurav kumar jha <
> imsauravgauravjha@gmail.com> wrote:
> >
> > 1. While Following the steps mentioned at below link:
> >     airavata/README.md at develop · apache/airavata · GitHub
> >
> >     Apply any database migrations. Go to src/main/containers directory
> and run
> >    cat ./database_scripts/init/*-migrations.sql | docker exec -i
> containers-db-1 mysql -p123456
> >
> >    Above command produces following error:
> >    Error response from daemon: No such container: containers-db-1
> >
>
>
> You need to run docker-compose up first. Make sure that the
> 'containers-db-1' container is running, maybe by doing 'docker ps'.
>
> > 2. Running the APIServerStarter produces following error:
> >
> > Caused by: org.apache.openjpa.persistence.ArgumentException: Table
> "COMPUTE_RESOURCE_SCHEDULING" given for
> "org.apache.airavata.registry.core.entities.expcatalog.ComputationalResourceSchedulingEntity"
> does not exist.
> >
>
> Fixing #1 will fix this one.
>
> > 3. Running Django-Portal works and app frontend is loaded but when I try
> to login, it gives SSL version related error:
> >
> >
>
> I'm not sure about this one. Did you use the
> django_airavata/settings_local.py.ide as your settings_local.py file? If
> you are still having issues, please share your settings_local.py file.

Re: questions regarding dashboards to get quick statistics.

Posted by "Christie, Marcus Aaron" <ma...@iu.edu>.
Hi Saurav,

> On Jun 6, 2023, at 12:51 PM, saurav kumar jha <im...@gmail.com> wrote:
> 
> 1. While Following the steps mentioned at below link:
>     airavata/README.md at develop · apache/airavata · GitHub
> 
>     Apply any database migrations. Go to src/main/containers directory and run
>    cat ./database_scripts/init/*-migrations.sql | docker exec -i containers-db-1 mysql -p123456
> 
>    Above command produces following error:
>    Error response from daemon: No such container: containers-db-1
> 


You need to run docker-compose up first. Make sure that the 'containers-db-1' container is running, maybe by doing 'docker ps'.

> 2. Running the APIServerStarter produces following error:
> 
> Caused by: org.apache.openjpa.persistence.ArgumentException: Table "COMPUTE_RESOURCE_SCHEDULING" given for "org.apache.airavata.registry.core.entities.expcatalog.ComputationalResourceSchedulingEntity" does not exist.
> 

Fixing #1 will fix this one.

> 3. Running Django-Portal works and app frontend is loaded but when I try to login, it gives SSL version related error:
> 
> 

I'm not sure about this one. Did you use the django_airavata/settings_local.py.ide as your settings_local.py file? If you are still having issues, please share your settings_local.py file.

Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Hi Everyone,
Thanks for your responses.

I am having problems running airavata locally. Please help me solve these
issues.

1. While Following the steps mentioned at below link:
    airavata/README.md at develop · apache/airavata · GitHub
<https://github.com/apache/airavata/blob/develop/modules/ide-integration/README.md#starting-backend-components-database-keycloak-kafka-rabbitmq-sshd-server>

    Apply any database migrations. Go to src/main/containers directory and
run
   cat ./database_scripts/init/*-migrations.sql | docker exec -i
containers-db-1 mysql -p123456

   Above command produces following error:
   Error response from daemon: No such container: containers-db-1

2. Running the APIServerStarter produces following error:

Caused by: org.apache.openjpa.persistence.ArgumentException: Table
"COMPUTE_RESOURCE_SCHEDULING" given for
"org.apache.airavata.registry.core.entities.expcatalog.ComputationalResourceSchedulingEntity"
does not exist.

3. Running Django-Portal works and app frontend is loaded but when I try to
login, it gives SSL version related error:

[2023-06-06 16:04:15,715 django_airavata.apps.auth.backends:90 WARNING]
login failed
Traceback (most recent call last):
  File
"/home/mysauravnitw2019/code/airavata-django-portal/venv/lib/python3.9/site-packages/urllib3/connectionpool.py",
line 714, in urlopen
    httplib_response = self._make_request(
  File
"/home/mysauravnitw2019/code/airavata-django-portal/venv/lib/python3.9/site-packages/urllib3/connectionpool.py",
line 403, in _make_request
    self._validate_conn(conn)
  File
"/home/mysauravnitw2019/code/airavata-django-portal/venv/lib/python3.9/site-packages/urllib3/connectionpool.py",
line 1053, in _validate_conn
    conn.connect()
  File
"/home/mysauravnitw2019/code/airavata-django-portal/venv/lib/python3.9/site-packages/urllib3/connection.py",
line 419, in connect
    self.sock = ssl_wrap_socket(
  File
"/home/mysauravnitw2019/code/airavata-django-portal/venv/lib/python3.9/site-packages/urllib3/util/ssl_.py",
line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File
"/home/mysauravnitw2019/code/airavata-django-portal/venv/lib/python3.9/site-packages/urllib3/util/ssl_.py",
line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.9/ssl.py", line 501, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.9/ssl.py", line 1041, in _create
    self.do_handshake()
  File "/usr/lib/python3.9/ssl.py", line 1310, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)


Thanks & Regards,
Saurav Kumar Jha



On Fri, Jun 2, 2023 at 4:44 PM saurav kumar jha <im...@gmail.com>
wrote:

> Hi Lahiru,
> Thanks a lot for the response.
>
> while trying to run Airavata locally on Ubuntu using this command
>  ```docker-compose -f
> modules/ide-integration/src/main/containers/docker-compose.yml -f
> modules/distribution/src/main/docker/docker-compose.yml up```
>
> Email store Authentication related error comes up. I have pasted the log
> below. I have done nothing for authentication nor have I started any db
> separately. All that I am doing is running above command after creating a
> docker image using the steps mentioned in the readme file of Airavata. What
> should I do to fix this?
>
> emailmonitor_1  | 2023-06-02 07:56:34,488 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> emailmonitor_1  |       at
> com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:34,489 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
> throwable while closing email store
> emailmonitor_1  | java.lang.NullPointerException: null
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:35,595 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> emailmonitor_1  |       at
> com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:35,596 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
> throwable while closing email store
> emailmonitor_1  | java.lang.NullPointerException: null
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> apiserver_1     | 2023-06-02 07:56:35,753 [main] INFO
> org.apache.airavata.common.utils.ApplicationSettings {} - Settings loaded
> from file:/opt/apache-airavata-api-server/bin/airavata-server.properties
> apiserver_1     | Exception in thread "main"
> org.apache.airavata.common.exception.ApplicationSettingsException:
> api.server.monitoring.enabled
> apiserver_1     |       at
> org.apache.airavata.common.utils.ApplicationSettings.getSettingImpl(ApplicationSettings.java:196)
> apiserver_1     |       at
> org.apache.airavata.common.utils.ApplicationSettings.getBooleanSetting(ApplicationSettings.java:350)
> apiserver_1     |       at
> org.apache.airavata.server.ServerMain.main(ServerMain.java:175)
> emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> emailmonitor_1  |       at
> com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
> throwable while closing email store
> emailmonitor_1  | java.lang.NullPointerException: null
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> containers_apiserver_1 exited with code 1
> emailmonitor_1  | 2023-06-02 07:56:37,968 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
>
> Thanks & Regards,
> Saurav Kumar Jha
>
> On Tue, May 30, 2023 at 9:18 PM Lahiru Jayathilake <
> lahirujayathilake@gmail.com> wrote:
>
>> Hi Saurav,
>>
>> Regarding the development environments.
>> You can do the development with the OS that you prefer. (However, based
>> on my experience, I'd recommend going with Linux)
>>
>> You can follow this document [1, 2] to set up a local Airavata
>> development environment and use it in the settings file. Alternatively, if
>> you select any of the options mentioned in this section [3], you just need
>> to set up the Airavata Django Portal as your development environment.
>>
>>
>> [1] - https://github.com/apache/airavata/blob/develop/README.md
>> [2] - https://github.com/apache/airavata/tree/develop
>> [3] -
>> https://github.com/apache/airavata-django-portal#:~:text=Create%20a%20local%20settings%20file
>> .
>>
>> Cheers!
>> Lahiru
>>
>> On Tue, May 30, 2023 at 12:12 PM saurav kumar jha <
>> imsauravgauravjha@gmail.com> wrote:
>>
>>> Hi Suresh & Eroma,
>>> I have got overview of technical requirements of the following jira::
>>> [AIRAVATA-3594] Dashboards to get quick statistics - ASF JIRA
>>> (apache.org) <https://issues.apache.org/jira/browse/AIRAVATA-3594>
>>>
>>> I have a few questions related to it.
>>>
>>> Should I do development setup of Airavata Django portal
>>> <https://github.com/apache/airavata-django-portal> on linux or on
>>> windows for working on above jira?
>>>
>>> Can you please assign this jira to me?
>>>
>>> What are the repositories other than Airavata Django Portal
>>> <https://github.com/apache/airavata-django-portal> which I should set
>>> up locally for development purposes?
>>>
>>> Thanks & Regards,
>>> Saurav Kumar Jha
>>>
>>>
>>>
>>>

Re: questions regarding dashboards to get quick statistics.

Posted by "Pamidighantam, Sudhakar V" <sp...@illinois.edu>.
Saurav:
While you are at it, Please do a pull request for the documentation as well.

Thanks,
Sudhakar.

From: Lahiru Jayathilake <la...@gmail.com>
Date: Sunday, June 4, 2023 at 11:53 AM
To: saurav kumar jha <im...@gmail.com>
Cc: dev@airavata.apache.org <de...@airavata.apache.org>, smarru@apache.org <sm...@apache.org>, Abeysinghe, Eroma <ea...@iu.edu>
Subject: Re: questions regarding dashboards to get quick statistics.
Hi Saurav,

The reason for the issue is missing account credentials for email job monitoring. To resolve this, follow the instructions in section [1] to create an email account. Then, update the 'email.based.monitor.address' and 'email.based.monitor.password' properties within the modules/distribution/src/main/docker/docker-compose.yml file.
This will resolve the issue you're having.

[1] - https://github.com/apache/airavata/tree/develop/modules/ide-integration#starting-job-monitoring-components<https://urldefense.com/v3/__https:/github.com/apache/airavata/tree/develop/modules/ide-integration*starting-job-monitoring-components__;Iw!!DZ3fjg!_Pbihslf0F0F8Q8PKFGS_3qeMiruEDXhBNI_7xWbDEupVotcm_HcCPZh2Kboc4uZ59tucI-eRwnBO5qi2cvsfuUOFv-kyw$>

Cheers!
Lahiru

On Fri, Jun 2, 2023 at 4:44 PM saurav kumar jha <im...@gmail.com>> wrote:
Hi Lahiru,
Thanks a lot for the response.
while trying to run Airavata locally on Ubuntu using this command
 ```docker-compose -f modules/ide-integration/src/main/containers/docker-compose.yml -f modules/distribution/src/main/docker/docker-compose.yml up```
Email store Authentication related error comes up. I have pasted the log below. I have done nothing for authentication nor have I started any db separately. All that I am doing is running above command after creating a docker image using the steps mentioned in the readme file of Airavata. What should I do to fix this?

emailmonitor_1  | 2023-06-02 07:56:34,488 [Thread-0] ERROR org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure)
emailmonitor_1  |       at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185) ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:34,489 [Thread-0] ERROR org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a throwable while closing email store
emailmonitor_1  | java.lang.NullPointerException: null
emailmonitor_1  |       at org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231) ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:35,595 [Thread-0] ERROR org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure)
emailmonitor_1  |       at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185) ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:35,596 [Thread-0] ERROR org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a throwable while closing email store
emailmonitor_1  | java.lang.NullPointerException: null
emailmonitor_1  |       at org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231) ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
apiserver_1     | 2023-06-02 07:56:35,753 [main] INFO  org.apache.airavata.common.utils.ApplicationSettings {} - Settings loaded from file:/opt/apache-airavata-api-server/bin/airavata-server.properties
apiserver_1     | Exception in thread "main" org.apache.airavata.common.exception.ApplicationSettingsException: api.server.monitoring.enabled
apiserver_1     |       at org.apache.airavata.common.utils.ApplicationSettings.getSettingImpl(ApplicationSettings.java:196)
apiserver_1     |       at org.apache.airavata.common.utils.ApplicationSettings.getBooleanSetting(ApplicationSettings.java:350)
apiserver_1     |       at org.apache.airavata.server.ServerMain.main(ServerMain.java:175)
emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure)
emailmonitor_1  |       at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246) ~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185) ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a throwable while closing email store
emailmonitor_1  | java.lang.NullPointerException: null
emailmonitor_1  |       at org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231) ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
containers_apiserver_1 exited with code 1
emailmonitor_1  | 2023-06-02 07:56:37,968 [Thread-0] ERROR org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException: [AUTHENTICATIONFAILED] Invalid credentials (Failure)

Thanks & Regards,
Saurav Kumar Jha

On Tue, May 30, 2023 at 9:18 PM Lahiru Jayathilake <la...@gmail.com>> wrote:
Hi Saurav,

Regarding the development environments.
You can do the development with the OS that you prefer. (However, based on my experience, I'd recommend going with Linux)

You can follow this document [1, 2] to set up a local Airavata development environment and use it in the settings file. Alternatively, if you select any of the options mentioned in this section [3], you just need to set up the Airavata Django Portal as your development environment.


[1] - https://github.com/apache/airavata/blob/develop/README.md<https://urldefense.com/v3/__https:/github.com/apache/airavata/blob/develop/README.md__;!!DZ3fjg!_Pbihslf0F0F8Q8PKFGS_3qeMiruEDXhBNI_7xWbDEupVotcm_HcCPZh2Kboc4uZ59tucI-eRwnBO5qi2cvsfuWy5WNnRw$>
[2] - https://github.com/apache/airavata/tree/develop<https://urldefense.com/v3/__https:/github.com/apache/airavata/tree/develop__;!!DZ3fjg!_Pbihslf0F0F8Q8PKFGS_3qeMiruEDXhBNI_7xWbDEupVotcm_HcCPZh2Kboc4uZ59tucI-eRwnBO5qi2cvsfuWaFHTPQA$>
[3] - https://github.com/apache/airavata-django-portal#:~:text=Create%20a%20local%20settings%20file<https://urldefense.com/v3/__https:/github.com/apache/airavata-django-portal*:*:text=Create*20a*20local*20settings*20file__;I34lJSUl!!DZ3fjg!_Pbihslf0F0F8Q8PKFGS_3qeMiruEDXhBNI_7xWbDEupVotcm_HcCPZh2Kboc4uZ59tucI-eRwnBO5qi2cvsfuWVQzSqjQ$>.

Cheers!
Lahiru

On Tue, May 30, 2023 at 12:12 PM saurav kumar jha <im...@gmail.com>> wrote:
Hi Suresh & Eroma,
I have got overview of technical requirements of the following jira::
[AIRAVATA-3594] Dashboards to get quick statistics - ASF JIRA (apache.org)<https://urldefense.com/v3/__https:/issues.apache.org/jira/browse/AIRAVATA-3594__;!!DZ3fjg!_Pbihslf0F0F8Q8PKFGS_3qeMiruEDXhBNI_7xWbDEupVotcm_HcCPZh2Kboc4uZ59tucI-eRwnBO5qi2cvsfuUByAyDGQ$>

I have a few questions related to it.

Should I do development setup of Airavata Django portal<https://urldefense.com/v3/__https:/github.com/apache/airavata-django-portal__;!!DZ3fjg!_Pbihslf0F0F8Q8PKFGS_3qeMiruEDXhBNI_7xWbDEupVotcm_HcCPZh2Kboc4uZ59tucI-eRwnBO5qi2cvsfuULzfYE4w$> on linux or on windows for working on above jira?

Can you please assign this jira to me?

What are the repositories other than Airavata Django Portal<https://urldefense.com/v3/__https:/github.com/apache/airavata-django-portal__;!!DZ3fjg!_Pbihslf0F0F8Q8PKFGS_3qeMiruEDXhBNI_7xWbDEupVotcm_HcCPZh2Kboc4uZ59tucI-eRwnBO5qi2cvsfuULzfYE4w$> which I should set up locally for development purposes?

Thanks & Regards,
Saurav Kumar Jha




Re: questions regarding dashboards to get quick statistics.

Posted by Lahiru Jayathilake <la...@gmail.com>.
Hi Saurav,

The reason for the issue is missing account credentials for email job
monitoring. To resolve this, follow the instructions in section [1] to
create an email account. Then, update the 'email.based.monitor.address' and
'email.based.monitor.password' properties within the
modules/distribution/src/main/docker/docker-compose.yml file.
This will resolve the issue you're having.

[1] -
https://github.com/apache/airavata/tree/develop/modules/ide-integration#starting-job-monitoring-components

Cheers!
Lahiru

On Fri, Jun 2, 2023 at 4:44 PM saurav kumar jha <im...@gmail.com>
wrote:

> Hi Lahiru,
> Thanks a lot for the response.
>
> while trying to run Airavata locally on Ubuntu using this command
>  ```docker-compose -f
> modules/ide-integration/src/main/containers/docker-compose.yml -f
> modules/distribution/src/main/docker/docker-compose.yml up```
>
> Email store Authentication related error comes up. I have pasted the log
> below. I have done nothing for authentication nor have I started any db
> separately. All that I am doing is running above command after creating a
> docker image using the steps mentioned in the readme file of Airavata. What
> should I do to fix this?
>
> emailmonitor_1  | 2023-06-02 07:56:34,488 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> emailmonitor_1  |       at
> com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:34,489 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
> throwable while closing email store
> emailmonitor_1  | java.lang.NullPointerException: null
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:35,595 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> emailmonitor_1  |       at
> com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:35,596 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
> throwable while closing email store
> emailmonitor_1  | java.lang.NullPointerException: null
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> apiserver_1     | 2023-06-02 07:56:35,753 [main] INFO
> org.apache.airavata.common.utils.ApplicationSettings {} - Settings loaded
> from file:/opt/apache-airavata-api-server/bin/airavata-server.properties
> apiserver_1     | Exception in thread "main"
> org.apache.airavata.common.exception.ApplicationSettingsException:
> api.server.monitoring.enabled
> apiserver_1     |       at
> org.apache.airavata.common.utils.ApplicationSettings.getSettingImpl(ApplicationSettings.java:196)
> apiserver_1     |       at
> org.apache.airavata.common.utils.ApplicationSettings.getBooleanSetting(ApplicationSettings.java:350)
> apiserver_1     |       at
> org.apache.airavata.server.ServerMain.main(ServerMain.java:175)
> emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
> emailmonitor_1  |       at
> com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
> ~[javax.mail-1.6.2.jar:1.6.2]
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
> throwable while closing email store
> emailmonitor_1  | java.lang.NullPointerException: null
> emailmonitor_1  |       at
> org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
> ~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
> emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
> containers_apiserver_1 exited with code 1
> emailmonitor_1  | 2023-06-02 07:56:37,968 [Thread-0] ERROR
> org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
> connect to the store
> emailmonitor_1  | javax.mail.AuthenticationFailedException:
> [AUTHENTICATIONFAILED] Invalid credentials (Failure)
>
> Thanks & Regards,
> Saurav Kumar Jha
>
> On Tue, May 30, 2023 at 9:18 PM Lahiru Jayathilake <
> lahirujayathilake@gmail.com> wrote:
>
>> Hi Saurav,
>>
>> Regarding the development environments.
>> You can do the development with the OS that you prefer. (However, based
>> on my experience, I'd recommend going with Linux)
>>
>> You can follow this document [1, 2] to set up a local Airavata
>> development environment and use it in the settings file. Alternatively, if
>> you select any of the options mentioned in this section [3], you just need
>> to set up the Airavata Django Portal as your development environment.
>>
>>
>> [1] - https://github.com/apache/airavata/blob/develop/README.md
>> [2] - https://github.com/apache/airavata/tree/develop
>> [3] -
>> https://github.com/apache/airavata-django-portal#:~:text=Create%20a%20local%20settings%20file
>> .
>>
>> Cheers!
>> Lahiru
>>
>> On Tue, May 30, 2023 at 12:12 PM saurav kumar jha <
>> imsauravgauravjha@gmail.com> wrote:
>>
>>> Hi Suresh & Eroma,
>>> I have got overview of technical requirements of the following jira::
>>> [AIRAVATA-3594] Dashboards to get quick statistics - ASF JIRA
>>> (apache.org) <https://issues.apache.org/jira/browse/AIRAVATA-3594>
>>>
>>> I have a few questions related to it.
>>>
>>> Should I do development setup of Airavata Django portal
>>> <https://github.com/apache/airavata-django-portal> on linux or on
>>> windows for working on above jira?
>>>
>>> Can you please assign this jira to me?
>>>
>>> What are the repositories other than Airavata Django Portal
>>> <https://github.com/apache/airavata-django-portal> which I should set
>>> up locally for development purposes?
>>>
>>> Thanks & Regards,
>>> Saurav Kumar Jha
>>>
>>>
>>>
>>>

Re: questions regarding dashboards to get quick statistics.

Posted by saurav kumar jha <im...@gmail.com>.
Hi Lahiru,
Thanks a lot for the response.

while trying to run Airavata locally on Ubuntu using this command
 ```docker-compose -f
modules/ide-integration/src/main/containers/docker-compose.yml -f
modules/distribution/src/main/docker/docker-compose.yml up```

Email store Authentication related error comes up. I have pasted the log
below. I have done nothing for authentication nor have I started any db
separately. All that I am doing is running above command after creating a
docker image using the steps mentioned in the readme file of Airavata. What
should I do to fix this?

emailmonitor_1  | 2023-06-02 07:56:34,488 [Thread-0] ERROR
org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException:
[AUTHENTICATIONFAILED] Invalid credentials (Failure)
emailmonitor_1  |       at
com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at
org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:34,489 [Thread-0] ERROR
org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
throwable while closing email store
emailmonitor_1  | java.lang.NullPointerException: null
emailmonitor_1  |       at
org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:35,595 [Thread-0] ERROR
org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException:
[AUTHENTICATIONFAILED] Invalid credentials (Failure)
emailmonitor_1  |       at
com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at
org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:35,596 [Thread-0] ERROR
org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
throwable while closing email store
emailmonitor_1  | java.lang.NullPointerException: null
emailmonitor_1  |       at
org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
apiserver_1     | 2023-06-02 07:56:35,753 [main] INFO
org.apache.airavata.common.utils.ApplicationSettings {} - Settings loaded
from file:/opt/apache-airavata-api-server/bin/airavata-server.properties
apiserver_1     | Exception in thread "main"
org.apache.airavata.common.exception.ApplicationSettingsException:
api.server.monitoring.enabled
apiserver_1     |       at
org.apache.airavata.common.utils.ApplicationSettings.getSettingImpl(ApplicationSettings.java:196)
apiserver_1     |       at
org.apache.airavata.common.utils.ApplicationSettings.getBooleanSetting(ApplicationSettings.java:350)
apiserver_1     |       at
org.apache.airavata.server.ServerMain.main(ServerMain.java:175)
emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR
org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException:
[AUTHENTICATIONFAILED] Invalid credentials (Failure)
emailmonitor_1  |       at
com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:732)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:366)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at javax.mail.Service.connect(Service.java:246)
~[javax.mail-1.6.2.jar:1.6.2]
emailmonitor_1  |       at
org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:185)
~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
emailmonitor_1  | 2023-06-02 07:56:36,848 [Thread-0] ERROR
org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Caught a
throwable while closing email store
emailmonitor_1  | java.lang.NullPointerException: null
emailmonitor_1  |       at
org.apache.airavata.monitor.email.EmailBasedMonitor.run(EmailBasedMonitor.java:231)
~[email-monitor-0.21-SNAPSHOT.jar:0.21-SNAPSHOT]
emailmonitor_1  |       at java.lang.Thread.run(Thread.java:829) ~[?:?]
containers_apiserver_1 exited with code 1
emailmonitor_1  | 2023-06-02 07:56:37,968 [Thread-0] ERROR
org.apache.airavata.monitor.email.EmailBasedMonitor {} - [EJM]: Couldn't
connect to the store
emailmonitor_1  | javax.mail.AuthenticationFailedException:
[AUTHENTICATIONFAILED] Invalid credentials (Failure)

Thanks & Regards,
Saurav Kumar Jha

On Tue, May 30, 2023 at 9:18 PM Lahiru Jayathilake <
lahirujayathilake@gmail.com> wrote:

> Hi Saurav,
>
> Regarding the development environments.
> You can do the development with the OS that you prefer. (However, based on
> my experience, I'd recommend going with Linux)
>
> You can follow this document [1, 2] to set up a local Airavata development
> environment and use it in the settings file. Alternatively, if you select
> any of the options mentioned in this section [3], you just need to set up
> the Airavata Django Portal as your development environment.
>
>
> [1] - https://github.com/apache/airavata/blob/develop/README.md
> [2] - https://github.com/apache/airavata/tree/develop
> [3] -
> https://github.com/apache/airavata-django-portal#:~:text=Create%20a%20local%20settings%20file
> .
>
> Cheers!
> Lahiru
>
> On Tue, May 30, 2023 at 12:12 PM saurav kumar jha <
> imsauravgauravjha@gmail.com> wrote:
>
>> Hi Suresh & Eroma,
>> I have got overview of technical requirements of the following jira::
>> [AIRAVATA-3594] Dashboards to get quick statistics - ASF JIRA (apache.org)
>> <https://issues.apache.org/jira/browse/AIRAVATA-3594>
>>
>> I have a few questions related to it.
>>
>> Should I do development setup of Airavata Django portal
>> <https://github.com/apache/airavata-django-portal> on linux or on
>> windows for working on above jira?
>>
>> Can you please assign this jira to me?
>>
>> What are the repositories other than Airavata Django Portal
>> <https://github.com/apache/airavata-django-portal> which I should set up
>> locally for development purposes?
>>
>> Thanks & Regards,
>> Saurav Kumar Jha
>>
>>
>>
>>

Re: questions regarding dashboards to get quick statistics.

Posted by Lahiru Jayathilake <la...@gmail.com>.
Hi Saurav,

Regarding the development environments.
You can do the development with the OS that you prefer. (However, based on
my experience, I'd recommend going with Linux)

You can follow this document [1, 2] to set up a local Airavata development
environment and use it in the settings file. Alternatively, if you select
any of the options mentioned in this section [3], you just need to set up
the Airavata Django Portal as your development environment.


[1] - https://github.com/apache/airavata/blob/develop/README.md
[2] - https://github.com/apache/airavata/tree/develop
[3] -
https://github.com/apache/airavata-django-portal#:~:text=Create%20a%20local%20settings%20file
.

Cheers!
Lahiru

On Tue, May 30, 2023 at 12:12 PM saurav kumar jha <
imsauravgauravjha@gmail.com> wrote:

> Hi Suresh & Eroma,
> I have got overview of technical requirements of the following jira::
> [AIRAVATA-3594] Dashboards to get quick statistics - ASF JIRA (apache.org)
> <https://issues.apache.org/jira/browse/AIRAVATA-3594>
>
> I have a few questions related to it.
>
> Should I do development setup of Airavata Django portal
> <https://github.com/apache/airavata-django-portal> on linux or on windows
> for working on above jira?
>
> Can you please assign this jira to me?
>
> What are the repositories other than Airavata Django Portal
> <https://github.com/apache/airavata-django-portal> which I should set up
> locally for development purposes?
>
> Thanks & Regards,
> Saurav Kumar Jha
>
>
>
>