Alpine agent doesn't start - Name or service not known

Alpine agent doesn't start - Name or service not known

book

Article ID: KB0082670

calendar_today

Updated On:

Products Versions
Spotfire Data Science 5.x, 6.x

Description

Alpine agent doesn't start - Name or service not known

Issue/Introduction

Alpine agent doesn't start - Name or service not known

Resolution

Alpine agent doesn't start - Name or service not known

Problem

After restarting Alpine, when trying to run a flow, an error message pops up saying that there is no agent to run the flow. Looking into the enabled agent logs (e.g. in this directory $CHORUS_HOME/alpine-releases/alpine-5.8.0.0-20-e0c78da65/agent/scripts/4/) we see the following error message:

java.lang.RuntimeException: Error to start agent.
at com.alpine.agent.AgentInitializer.bootstrapAgentActorSystem$1(AgentInitializer.scala:39)
at com.alpine.agent.AgentInitializer.com$alpine$agent$AgentInitializer$$bootstrapActorSystem(AgentInitializer.scala:43)
at com.alpine.agent.AgentInitializer$$anonfun$contextInitialized$1.apply$mcV$sp(AgentInitializer.scala:24)
at akka.util.Switch.transcend(LockUtil.scala:27)
at akka.util.Switch.switchOn(LockUtil.scala:48)
...
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.jetty.xml.XmlConfiguration.main(XmlConfiguration.java:1197)
Caused by:
java.net.UnknownHostException: alpine02: alpine02: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1475)
at com.alpine.utility.common.NetworkUtils$.getHostAddresses(NetworkUtils.scala:32)
at com.alpine.agent.utils.AgentHelper.replaceLocalHost(AgentHelper.scala:241)
at com.alpine.agent.utils.AgentHelper.createAgentInfo(AgentHelper.scala:218)
at com.alpine.agent.utils.AgentHelper.initAgentInfo(AgentHelper.scala:206)
at com.alpine.agent.utils.AgentHelper.startAgentActorSystem(AgentHelper.scala:68)
...

Cause

The Agent doesn't seem to be able to recognize the configured hostname (although the "hostname" command does return the correct hostname).

Resolution

Add the hostname with the IP address of the server to the /etc/hosts file and restart Alpine:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.0.0.216  alpine02