Hi Saurav,

> On Jun 7, 2023, at 10:34 AM, saurav kumar jha <[email protected]> 
> 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

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to