dadaemon process shows as running but not listening to port 8581

Document ID : KB000048467
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

User cannot add the data aggregator as a data source in CAPC. When SSH'ing the data aggregator (DA), the dadaemon process shows as running as per the command:

service dadaemon status

However, the DA server is not listening to port 8581. Since this port is the DA front end web service to CAPC, user is unable to add the DA as a data source to CAPC.

It looks like the VM DA is running has a small amount of memory.

The DA fails to completely start, then you adjust memory, but then the DA says it has started, but you see no port listener (TCP 8581).

This appears to be occurring because the generated bundle cache is incomplete.

Solution:

/etc/init.d/dadaemon stop
mv /opt/IMDataAggregator/apache-karaf-2.1.3/data /opt/IMDataAggregator/apache-karaf-2.1.3/data.OLD
/etc/init.d/dadaemon start

(Wait for 5 minutes)
#netstat -an
should show:
tcp 0 0 :::8581 :::* LISTEN
#wget http://127.0.0.1:8581/rest;cat rest
Should show you a whole lot of XML