This is an automated email from the ASF dual-hosted git repository.

yasith pushed a commit to branch feat/single-jvm
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/feat/single-jvm by this push:
     new bd3e19c037 fix: startup issues — localhost binding, null-guard 
publishers, update properties
bd3e19c037 is described below

commit bd3e19c037c8c67224918325c87c065cea1cab87
Author: yasithdev <[email protected]>
AuthorDate: Thu Mar 26 01:27:59 2026 -0500

    fix: startup issues — localhost binding, null-guard publishers, update 
properties
    
    - Change apiserver.host from airavata.localhost to 0.0.0.0
    - Change all airavata.localhost refs to localhost in properties
    - Add null guards on experimentPublisher.publish() calls
    - Update apiserver.class to AiravataUnifiedServer
    
    Server now starts successfully with all 8 multiplexed Thrift services
    on port 8930 (requires only MariaDB; RabbitMQ/Kafka/ZK are optional).
---
 .../api/server/handler/AiravataServerHandler.java  | 12 +++++++---
 .../src/main/resources/airavata-server.properties  | 28 +++++++++++-----------
 2 files changed, 23 insertions(+), 17 deletions(-)

diff --git 
a/airavata-api/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
 
b/airavata-api/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
index d085214005..fbb8e9a106 100644
--- 
a/airavata-api/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
+++ 
b/airavata-api/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
@@ -6483,7 +6483,9 @@ public class AiravataServerHandler implements 
Airavata.Iface {
         MessageContext messageContext = new MessageContext(
                 event, MessageType.EXPERIMENT, "LAUNCH.EXP-" + 
UUID.randomUUID().toString(), gatewayId);
         messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp());
-        experimentPublisher.publish(messageContext);
+        if (experimentPublisher != null) {
+            experimentPublisher.publish(messageContext);
+        }
     }
 
     private void submitCancelExperiment(String gatewayId, String experimentId) 
throws AiravataException {
@@ -6494,7 +6496,9 @@ public class AiravataServerHandler implements 
Airavata.Iface {
                 "CANCEL.EXP-" + UUID.randomUUID().toString(),
                 gatewayId);
         messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp());
-        experimentPublisher.publish(messageContext);
+        if (experimentPublisher != null) {
+            experimentPublisher.publish(messageContext);
+        }
     }
 
     private void submitExperimentIntermediateOutputsEvent(
@@ -6508,7 +6512,9 @@ public class AiravataServerHandler implements 
Airavata.Iface {
                 "INTERMEDIATE_OUTPUTS.EXP-" + UUID.randomUUID().toString(),
                 gatewayId);
         messageContext.setUpdatedTime(AiravataUtils.getCurrentTimestamp());
-        experimentPublisher.publish(messageContext);
+        if (experimentPublisher != null) {
+            experimentPublisher.publish(messageContext);
+        }
     }
 
     private void shareEntityWithAdminGatewayGroups(
diff --git a/airavata-api/src/main/resources/airavata-server.properties 
b/airavata-api/src/main/resources/airavata-server.properties
index 7be72262d2..685a329151 100644
--- a/airavata-api/src/main/resources/airavata-server.properties
+++ b/airavata-api/src/main/resources/airavata-server.properties
@@ -20,15 +20,15 @@
 airavata.config.dir=.
 
 api.server.monitoring.enabled=true
-api.server.monitoring.host=airavata.localhost
+api.server.monitoring.host=localhost
 api.server.monitoring.port=9097
-apiserver.host=airavata.localhost
+apiserver.host=0.0.0.0
 apiserver.port=8930
-apiserver.class=org.apache.airavata.api.server.AiravataAPIServer
+apiserver.class=org.apache.airavata.api.server.AiravataUnifiedServer
 
 # Unified Database Configuration
 airavata.jdbc.driver=org.mariadb.jdbc.Driver
-airavata.jdbc.url=jdbc:mariadb://airavata.localhost:13306/airavata
+airavata.jdbc.url=jdbc:mariadb://localhost:13306/airavata
 airavata.jdbc.user=airavata
 airavata.jdbc.password=123456
 airavata.jdbc.validationQuery=SELECT 1
@@ -72,7 +72,7 @@ 
host.scheduler=org.apache.airavata.orchestrator.core.schedule.DefaultHostSchedul
 
 iam.server.super.admin.password=admin
 iam.server.super.admin.username=admin
-iam.server.url=http://airavata.localhost:18080
+iam.server.url=http://localhost:18080
 
 in.memory.cache.size=1000
 
@@ -84,10 +84,10 @@ job.monitor.broker.consumer.group=MonitoringConsumer
 
 job.notification.emailids=
 job.notification.enable=true
-job.status.publish.endpoint=http://airavata.localhost:8082/topics/helix-airavata-mq
+job.status.publish.endpoint=http://localhost:8082/topics/helix-airavata-mq
 
job.validators=org.apache.airavata.orchestrator.core.validator.impl.BatchQueueValidator,org.apache.airavata.orchestrator.core.validator.impl.ExperimentStatusValidator
 
-kafka.broker.url=airavata.localhost:9092
+kafka.broker.url=localhost:9092
 
 data.parser.broker.consumer.group=ParsingConsumer
 data.parser.topic=parsing-data
@@ -96,7 +96,7 @@ local.data.location=/tmp
 
 metaschedluer.job.scanning.enable=false
 
-orchestrator.server.host=airavata.localhost
+orchestrator.server.host=localhost
 orchestrator.server.min.threads=50
 orchestrator.server.port=8940
 orchestrator=org.apache.airavata.orchestrator.server.OrchestratorServer
@@ -104,27 +104,27 @@ 
orchestrator=org.apache.airavata.orchestrator.server.OrchestratorServer
 data.parser.storage.resource.id=CHANGE_ME
 
 participant.monitoring.enabled=true
-participant.monitoring.host=airavata.localhost
+participant.monitoring.host=localhost
 participant.monitoring.port=9096
 
 post.workflow.manager.loadbalance.clusters=false
 post.workflow.manager.monitoring.enabled=true
-post.workflow.manager.monitoring.host=airavata.localhost
+post.workflow.manager.monitoring.host=localhost
 post.workflow.manager.monitoring.port=9094
 post.workflow.manager.name=AiravataPostWM
 
 pre.workflow.manager.loadbalance.clusters=false
 pre.workflow.manager.monitoring.enabled=true
-pre.workflow.manager.monitoring.host=airavata.localhost
+pre.workflow.manager.monitoring.host=localhost
 pre.workflow.manager.monitoring.port=9093
 pre.workflow.manager.name=AiravataPreWM
 
 
profile_service.class=org.apache.airavata.service.profile.server.ProfileServiceServer
-profile.service.server.host=airavata.localhost
+profile.service.server.host=localhost
 profile.service.server.port=8962
 
 # RabbitMQ Settings
-rabbitmq.broker.url=amqp://airavata:[email protected]:5672
+rabbitmq.broker.url=amqp://airavata:airavata@localhost:5672
 rabbitmq.experiment.exchange.name=experiment_exchange
 rabbitmq.process.exchange.name=process_exchange
 rabbitmq.status.exchange.name=status_exchange
@@ -158,5 +158,5 @@ 
security.manager.class=org.apache.airavata.service.security.KeyCloakSecurityMana
 validationQuery=SELECT 1
 
 
-zookeeper.server.connection=airavata.localhost:2181
+zookeeper.server.connection=localhost:2181
 StrictHostKeyChecking=no
\ No newline at end of file

Reply via email to