Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
Dear Brent Ulbricht,

Thanks your suggestion resolved my issue. i did not uncomment and update port property on bfagent.conf. I thought it is taken care by default which happenned to some of my other installations.

Thanks & Regards,
Aruljothi.S

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 27 '11, 3:20 p.m.

Question was seen: 6,178 times

Last updated: May 27 '11, 3:20 p.m.

Confirmation Cancel Confirm