bfagent not working properly in RHEL 3

Friends,
I was able to compile buildforge agent from source on RHEL 3 and successfully installed it.
However when i tried to start the agent, I got following warning and agent is shown as running when i search process list.
/home/myuser> /usr/local/bin/bfagent -s
bfdaemon: socket: Address family not supported by protocol
/home/myuser> ps -ef | grep bfagent
root 5869 1 0 May26 ? 00:00:01 /usr/local/bin/bfagent -s
When i try to test the connection from buildforge server, i am getting following error.
Host: rtslnx1.princeton.usnj.ibm.com:5556
Agent Version:
Authentication:
Platform:
Status: Connection failure
Duration: 0
View Test Details
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:585)
at com.buildforge.services.server.dispatch.callback.UTF8SocketChannel.connect(UTF8SocketChannel.java:89)
at com.buildforge.services.server.dispatch.callback.LineBufferedSocketChannel.connect(LineBufferedSocketChannel.java:95)
at com.ibm.jas.agent.AgentConnection.connect(AgentConnection.java:82)
at com.ibm.jas.agent.action.OpenAgentConnection.action(OpenAgentConnection.java:27)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.fiber.action.flow.Block.action(Block.java:63)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.agent.AgentFiber.action(AgentFiber.java:234)
at com.ibm.jas.agent.AgentFiber$AgentFiberAction.action(AgentFiber.java:339)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.fiber.Fiber.runFiber(Fiber.java:670)
at com.ibm.jas.fiber.FiberThread.runFibers(FiberThread.java:258)
at com.ibm.jas.fiber.FiberThread.run(FiberThread.java:246)
Any help is greatly appreciated.
Thanks,
Aruljothi.S
I was able to compile buildforge agent from source on RHEL 3 and successfully installed it.
However when i tried to start the agent, I got following warning and agent is shown as running when i search process list.
/home/myuser> /usr/local/bin/bfagent -s
bfdaemon: socket: Address family not supported by protocol
/home/myuser> ps -ef | grep bfagent
root 5869 1 0 May26 ? 00:00:01 /usr/local/bin/bfagent -s
When i try to test the connection from buildforge server, i am getting following error.
Host: rtslnx1.princeton.usnj.ibm.com:5556
Agent Version:
Authentication:
Platform:
Status: Connection failure
Duration: 0
View Test Details
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:585)
at com.buildforge.services.server.dispatch.callback.UTF8SocketChannel.connect(UTF8SocketChannel.java:89)
at com.buildforge.services.server.dispatch.callback.LineBufferedSocketChannel.connect(LineBufferedSocketChannel.java:95)
at com.ibm.jas.agent.AgentConnection.connect(AgentConnection.java:82)
at com.ibm.jas.agent.action.OpenAgentConnection.action(OpenAgentConnection.java:27)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.fiber.action.flow.Block.action(Block.java:63)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.agent.AgentFiber.action(AgentFiber.java:234)
at com.ibm.jas.agent.AgentFiber$AgentFiberAction.action(AgentFiber.java:339)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.fiber.Fiber.runFiber(Fiber.java:670)
at com.ibm.jas.fiber.FiberThread.runFibers(FiberThread.java:258)
at com.ibm.jas.fiber.FiberThread.run(FiberThread.java:246)
Any help is greatly appreciated.
Thanks,
Aruljothi.S
2 answers

Friends,
I was able to compile buildforge agent from source on RHEL 3 and successfully installed it.
However when i tried to start the agent, I got following warning and agent is shown as running when i search process list.
/home/myuser> /usr/local/bin/bfagent -s
bfdaemon: socket: Address family not supported by protocol
/home/myuser> ps -ef | grep bfagent
root 5869 1 0 May26 ? 00:00:01 /usr/local/bin/bfagent -s
When i try to test the connection from buildforge server, i am getting following error.
Host: rtslnx1.princeton.usnj.ibm.com:5556
Agent Version:
Authentication:
Platform:
Status: Connection failure
Duration: 0
View Test Details
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:585)
at com.buildforge.services.server.dispatch.callback.UTF8SocketChannel.connect(UTF8SocketChannel.java:89)
at com.buildforge.services.server.dispatch.callback.LineBufferedSocketChannel.connect(LineBufferedSocketChannel.java:95)
at com.ibm.jas.agent.AgentConnection.connect(AgentConnection.java:82)
at com.ibm.jas.agent.action.OpenAgentConnection.action(OpenAgentConnection.java:27)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.fiber.action.flow.Block.action(Block.java:63)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.agent.AgentFiber.action(AgentFiber.java:234)
at com.ibm.jas.agent.AgentFiber$AgentFiberAction.action(AgentFiber.java:339)
at com.ibm.jas.fiber.FiberAction.call(FiberAction.java:197)
at com.ibm.jas.fiber.Fiber.runFiber(Fiber.java:670)
at com.ibm.jas.fiber.FiberThread.runFibers(FiberThread.java:258)
at com.ibm.jas.fiber.FiberThread.run(FiberThread.java:246)
Any help is greatly appreciated.
Thanks,
Aruljothi.S
Hi,
There could be a few things, but I'll just start with something that you might have already verified. I noticed that your Build Forge server is trying to connect to rtslnx1.princeton.usnj.ibm.com:5556 . The default bfagent listener port is 5555. Have you modified the bfagent.conf 'port' property to 5556? If you already have, I would also recommend starting bfagent with the -f option and specify the location of your bfagent.conf (ex: ./bfagent -s -f /my/home/bfagent.conf).
Brent Ulbricht
Developer/Lead - RTC Build