airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <>
Subject [jira] [Commented] (AIRAVATA-2374) Create init scripts for airavata servers
Date Thu, 21 Feb 2019 22:06:00 GMT


Marcus Christie commented on AIRAVATA-2374:

RegisterAPIServer fails to start with this error when RabbitMQ is down on startup:
2019-02-21 16:26:09,707 [Thread-4] ERROR o.a.a.r.a.s.RegistryAPIServer  - Failed to start
database event handlers, reason: RabbitMQ connection issue for exchange :
org.apache.airavata.common.exception.AiravataException: RabbitMQ connection issue for exchange
        at org.apache.airavata.messaging.core.impl.RabbitMQPublisher.connect(
        at org.apache.airavata.messaging.core.impl.RabbitMQPublisher.<init>(
        at org.apache.airavata.messaging.core.MessagingFactory.getDBEventPublisher(
        at org.apache.airavata.registry.api.service.messaging.RegistryServiceDBEventMessagingFactory.getDBEventPublisher(
        at org.apache.airavata.registry.api.service.messaging.RegistryServiceDBEventMessagingFactory.registerRegistryServiceWithPublishers(
        at org.apache.airavata.registry.api.service.RegistryAPIServer.startDatabaseEventHandlers(
        at org.apache.airavata.registry.api.service.RegistryAPIServer.access$300(
        at org.apache.airavata.registry.api.service.RegistryAPIServer$
Caused by: Connection refused (Connection refused)
        at Method)
        at com.rabbitmq.client.impl.FrameHandlerFactory.create(
        at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(
        at com.rabbitmq.client.impl.recovery.AutorecoveringConnection.init(
        at com.rabbitmq.client.ConnectionFactory.newConnection(
        at com.rabbitmq.client.ConnectionFactory.newConnection(
        at org.apache.airavata.messaging.core.impl.RabbitMQPublisher.connect(
        ... 7 common frames omitted

I think it would be better if RegistryAPIServer just waited until it can connect to RabbitMQ
before starting.

Also note that ServerMain justs waits forever for the RegisterAPIServer to start.

> Create init scripts for airavata servers
> ----------------------------------------
>                 Key: AIRAVATA-2374
>                 URL:
>             Project: Airavata
>          Issue Type: Bug
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>             Fix For: 0.18

This message was sent by Atlassian JIRA

View raw message