I am trying to setup faban to run from 2 ec2 instances (1 master, 1 agent). I can ping, ssh, etc. and the master is able to successfully start the CmdAgent via ssh (I'm using Ubuntu on both nodes) and regsiters it successfully.
The agent then pulls down all the benchmark files - so far so good.
However, when CmdService tries to Connect to the CmdAgent and FileAgent on this node, it fails complaining "Error accessing command agent on system <host>"
The Exception is:
java.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:
java.net.ConnectException: Connection refused
Stack Trace:
| Class |
Method |
Line |
| sun.rmi.transport.tcp.TCPEndpoint |
newSocket |
619 |
| sun.rmi.transport.tcp.TCPChannel |
createConnection |
216 |
| sun.rmi.transport.tcp.TCPChannel |
newConnection |
202 |
| sun.rmi.server.UnicastRef |
invoke |
128 |
| com.sun.faban.harness.agent.CmdAgentImpl_Stub |
getHostName |
|
| com.sun.faban.harness.engine.CmdService |
getCmdAgent |
641 |
| com.sun.faban.harness.engine.CmdService |
setup |
503 |
| com.sun.faban.harness.engine.GenericBenchmark |
start |
154 |
| com.sun.faban.harness.engine.RunDaemon |
run |
338 |
| java.lang.Thread |
run |
679 |
I have tried everything and am now out of ideas. I have opened up all ports on both instances for TCP, enabled ICMP, ssh, etc.
What could be causing this problem?
Here are the entries from the 'hosts' file on the agent instance. Note that 127.0.1.1 is added by ec2.
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
# Added by cloud-init
127.0.1.1 ip-10-245-123-136.ec2.internal ip-10-245-123-136