Hi Bibrak,
This sounds similar to the problem Lahiru ran into [1]. See what Lahiru did, looks like Lahiru was able to work around it. [1] https://markmail.org/thread/gh26dlze5evfx3vl From: Bibrak Qamar <[email protected]> Reply-To: "[email protected]" <[email protected]> Date: Tuesday, May 14, 2019 at 1:55 AM To: "[email protected]" <[email protected]> Subject: Login failed: Could not connect to any of [('::1', 8962, 0, 0), ('127.0.0.1', 8962), ('fe80::1%lo0', 8962, 0, 1)]. Please try again. Hi all, So, I have managed to follow the ide-integration guide provided here: https://github.com/apache/airavata/tree/develop/modules/ide-integration When I login to the portal it shows the following error message: Login failed: Could not connect to any of [('::1', 8962, 0, 0), ('127.0.0.1', 8962), ('fe80::1%lo0', 8962, 0, 1)]. Please try again. I am also copying the output of my APIServerStarter. It seems it might have issue? What do you think could be the problem? ......:...::/Users/bibrakqamar/.m2/repository/javax/mail/mail/1.4.5/mail-1.4.5.jar org.apache.airavata.ide.integration.APIServerStarter objc[5362]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java (0x108f324c0) and /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib (0x109f114e0). One of the two will be used. Which one is undefined. SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/bibrakqamar/.m2/repository/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/bibrakqamar/.m2/repository/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 01:48:39,495 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml] 01:48:39,497 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy] 01:48:39,497 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/ide-integration/target/classes/logback.xml] 01:48:39,502 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs multiple times on the classpath. 01:48:39,509 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/configuration/server/target/classes/logback.xml] 01:48:39,509 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/airavata-helix/helix-spectator/target/classes/logback.xml] 01:48:39,509 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/job-monitor/email-monitor/target/classes/logback.xml] 01:48:39,509 |-WARN in ch.qos.logback.classic.LoggerContext[default] - Resource [logback.xml] occurs at [file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/ide-integration/target/classes/logback.xml] 01:48:39,986 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - debug attribute not set 01:48:40,042 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender] 01:48:40,094 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [CONSOLE] 01:48:40,143 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 01:48:40,480 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender] 01:48:40,493 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [LOGFILE] 01:48:40,498 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property 01:48:40,522 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@797925218 - setting totalSizeCap to 1 GB 01:48:40,543 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@797925218 - No compression will be used 01:48:40,553 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@797925218 - Will use the pattern ../logs/airavata.log.%d{yyyy-MM-dd} for the active file 01:48:40,568 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - The date pattern is 'yyyy-MM-dd' from file name pattern '../logs/airavata.log.%d{yyyy-MM-dd}'. 01:48:40,568 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Roll-over at midnight. 01:48:40,569 |-INFO in c.q.l.core.rolling.DefaultTimeBasedFileNamingAndTriggeringPolicy - Setting initial period to Tue May 14 01:48:36 EDT 2019 01:48:40,581 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[LOGFILE] - Active log file name: ../logs/airavata.log 01:48:40,581 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[LOGFILE] - File property is set to [../logs/airavata.log] 01:48:40,586 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [ch.qos.logback] to WARN 01:48:40,586 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.helix] to WARN 01:48:40,586 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.zookeeper] to ERROR 01:48:40,586 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.apache.airavata] to INFO 01:48:40,586 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting level of logger [org.hibernate] to ERROR 01:48:40,586 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to INFO 01:48:40,595 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - Could not find an appender named [RELAXED-KAFKA-APPENDER]. Did you define it below instead of above in the configuration file? 01:48:40,595 |-ERROR in ch.qos.logback.core.joran.action.AppenderRefAction - See http://logback.qos.ch/codes.html#appender_order for more details. 01:48:40,595 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [CONSOLE] to Logger[ROOT] 01:48:40,597 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [LOGFILE] to Logger[ROOT] 01:48:40,597 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration. 01:48:40,599 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@1068e947 - Registering current configuration as safe fallback point SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder] [INFO] Starting the DB Event Manager runner. [INFO] Starting DB Event manager publisher 2019-05-14 01:48:41,151 [Thread-0] INFO o.a.a.d.e.m.m.DBEventManagerMessagingFactory Creating DB Event publisher..... [] 2019-05-14 01:48:41,283 [Thread-0] INFO o.a.a.c.u.ApplicationSettings Settings loaded from file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/ide-integration/target/classes/airavata-server.properties [] 2019-05-14 01:48:41,496 [Thread-0] INFO o.a.a.m.c.i.RabbitMQPublisher connected to rabbitmq: amqp://[email protected]:5672develop for db.event.exchange [] 2019-05-14 01:48:41,496 [Thread-0] INFO o.a.a.d.e.m.m.DBEventManagerMessagingFactory DB Event publisher created [] [INFO] Starting DB Event manager subscriber 2019-05-14 01:48:41,497 [Thread-0] INFO o.a.a.d.e.m.m.DBEventManagerMessagingFactory Creating DB Event subscriber..... [] 2019-05-14 01:48:41,689 [Thread-0] INFO o.a.c.f.i.CuratorFrameworkImpl Starting [] 2019-05-14 01:48:41,906 [Thread-0] INFO o.a.a.m.c.i.RabbitMQSubscriber connected to rabbitmq: amqp://[email protected]:5672develop for db.event.exchange [] 2019-05-14 01:48:42,002 [Thread-0] INFO o.a.a.d.e.m.m.DBEventManagerMessagingFactory DB Event subscriber created [] 2019-05-14 01:48:42,045 [Thread-0-EventThread] INFO o.a.c.f.s.ConnectionStateManager State change: CONNECTED [] 2019-05-14 01:48:43,228 [main] INFO o.a.a.r.a.s.RegistryAPIServer Initializing databases... [] 2019-05-14 01:48:43,569 [main] INFO o.a.a.c.utils.DBInitializer Table CONFIGURATION already exists. Skipping database init script database_scripts/expcatalog [] 36 experiment_data_new WARN [main] openjpa.Runtime - The persistence unit "experiment_data_new" was found multiple times in the following resources "[file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/ide-integration/target/classes/META-INF/persistence.xml, file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/registry/registry-core/target/classes/META-INF/persistence.xml]", but persistence unit names should be unique. The first persistence unit matching the provided name in "file:/Users/bibrakqamar/work/GSoC/gitrops/airavata/modules/ide-integration/target/classes/META-INF/persistence.xml" is being used. 756 experiment_data_new INFO [main] openjpa.Runtime - OpenJPA dynamically loaded the class enhancer. Any classes that were not enhanced at build time will be enhanced when they are loaded by the JVM. 791 experiment_data_new INFO [main] openjpa.Runtime - Starting OpenJPA 2.4.3 977 experiment_data_new INFO [main] openjpa.jdbc.JDBC - Using dictionary class "org.apache.openjpa.jdbc.sql.MySQLDictionary" (MySQL 5.7.21 ,MariaDB connector/J 2.0.2). 1050 experiment_data_new INFO [main] openjpa.jdbc.JDBC - Connected to MySQL version 5.5 using JDBC driver MariaDB connector/J version 2.0.2. 790 experiment_data_new WARN [main] openjpa.Runtime - Fields "org.apache.airavata.registry.core.entities.expcatalog.ProcessEntity.emailAddresses" are not a default persistent type, and do not have any annotations indicating their persistence strategy. They will be treated as non-persistent. If you intended for these fields to be persistent, be sure to annotate them appropriately or declare them in orm.xml. Otherwise annotate them with @Transient. 838 experiment_data_new WARN [main] openjpa.Runtime - Fields "org.apache.airavata.registry.core.entities.expcatalog.ExperimentEntity.emailAddresses" are not a default persistent type, and do not have any annotations indicating their persistence strategy. They will be treated as non-persistent. If you intended for these fields to be persistent, be sure to annotate them appropriately or declare them in orm.xml. Otherwise annotate them with @Transient. 1348 experiment_data_new WARN [main] openjpa.MetaData - The composite identity class "class org.apache.airavata.registry.core.entities.expcatalog.UserPK" for entity "class org.apache.airavata.registry.core.entities.expcatalog.UserEntity" is not serializable. 2091 experiment_data_new WARN [main] openjpa.Runtime - Fields "org.apache.airavata.registry.core.entities.expcatalog.ExperimentEntity.emailAddresses" are not a default persistent type, and do not have any annotations indicating their persistence strategy. They will be treated as non-persistent. If you intended for these fields to be persistent, be sure to annotate them appropriately or declare them in orm.xml. Otherwise annotate them with @Transient. 2145 experiment_data_new WARN [main] openjpa.Runtime - Fields "org.apache.airavata.registry.core.entities.expcatalog.ProcessEntity.emailAddresses" are not a default persistent type, and do not have any annotations indicating their persistence strategy. They will be treated as non-persistent. If you intended for these fields to be persistent, be sure to annotate them appropriately or declare them in orm.xml. Otherwise annotate them with @Transient. 2919 experiment_data_new WARN [main] openjpa.MetaData - The composite identity class "class org.apache.airavata.registry.core.entities.expcatalog.UserPK" for entity "class org.apache.airavata.registry.core.entities.expcatalog.UserEntity" is not serializable. 3238 experiment_data_new WARN [main] openjpa.Enhance - Unenhanced classes were detected even though the enhancer has ran. Ensure that the EntityManagerFactory is created prior to creating any Entities. 2019-05-14 01:48:47,788 [main] ERROR o.a.a.r.c.r.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.ProjectEntity org.apache.airavata.registry.core.entities.expcatalog.ProcessErrorEntity org.apache.airavata.registry.core.entities.expcatalog.ProcessOutputEntity org.apache.airavata.registry.core.entities.expcatalog.TaskEntity org.apache.airavata.registry.core.entities.expcatalog.TaskStatusEntity org.apache.airavata.registry.core.entities.expcatalog.ExperimentSummaryEntity 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.NotificationEntity org.apache.airavata.registry.core.entities.expcatalog.GatewayEntity org.apache.airavata.registry.core.entities.expcatalog.JobEntity org.apache.airavata.registry.core.entities.expcatalog.QueueStatusEntity org.apache.airavata.registry.core.entities.expcatalog.ExperimentErrorEntity". at org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:115) at org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:311) at org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:235) at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:211) at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:154) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:226) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:153) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:59) 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:111) at org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:67) at org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:105) 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) 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) 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:114) at org.apache.airavata.registry.core.repositories.AbstractRepository.get(AbstractRepository.java:67) at org.apache.airavata.registry.core.repositories.AbstractRepository.isExists(AbstractRepository.java:105) 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-2.4.3-r422266:1833086 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.ProjectEntity org.apache.airavata.registry.core.entities.expcatalog.ProcessErrorEntity org.apache.airavata.registry.core.entities.expcatalog.ProcessOutputEntity org.apache.airavata.registry.core.entities.expcatalog.TaskEntity org.apache.airavata.registry.core.entities.expcatalog.TaskStatusEntity org.apache.airavata.registry.core.entities.expcatalog.ExperimentSummaryEntity 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.NotificationEntity org.apache.airavata.registry.core.entities.expcatalog.GatewayEntity org.apache.airavata.registry.core.entities.expcatalog.JobEntity org.apache.airavata.registry.core.entities.expcatalog.QueueStatusEntity org.apache.airavata.registry.core.entities.expcatalog.ExperimentErrorEntity". at org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:115) at org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:311) at org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:235) at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:211) at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:154) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:226) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:153) at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:59) 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:111) ... 8 more Bibrak Qamar
smime.p7s
Description: S/MIME cryptographic signature
