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

Build Engine not starting correctly and requests abandoned

I am using the RTC build system toolkit to create ant scripts that interact with RTC. To make that run, I am using build engines running in a VM so they work as an agent in the VM and I can trigger the ant scripts from RTC client (using a build definition pointing to that build engine).

The problem that I have is that I am not able o correctly start the build engine in some VMs. I have two VMs were the build engine runs fine, with no problem and other two were the Build Engine doesn't start correctly. When I run the command to start the build engine from windows prompt, it freezes and nothing happens(instead of the common message saying that it is running and accepting requests). On RTC client I see the build engine status as idle giving me the impression that it is running. But when I try to run a build definition on that build engine, it starts to run and is immediately abandoned indicating that there is a problem in the Build Engine. I am suspecting that there is a network problem between the VM and the RTC server because our servers and network are configured with high restrictive permissions (any necessary access must be explicitly requested). But I can access for example the RTC Web Client using a web browser. The two VMs that are working fine are old ones and in the past I needed to make some privileged network permissions for the IP of those vms, I just don t know what are exactly the necessary permissions needed. Maybe the RTC build system toolkit (jbe) access RTC through some specific port or protocol that is currently blocked on our network. I am not sure if this is the problem but I couldn t find what is the difference between the working VMs and the failing ones. Also there is no log from the build engine the indicates clearly what is the problem (at least I don't if jbe generates some kind of log ).

This is the command that I run to start the build engine
jbe -repository https:/myrtcserver.com:9443/jazz -userId myuser -passwordFile mypassfile -engineId MyEngineId


And this is the error that I receive when I start a build definition in that build engine and is is immediately abandoned.

This build has been automatically abandoned by the build engine 'MyBuildEngine'.
This can happen if the build engine stops while it is processing a build, or if it fails to communicate with the server (e.g. due to the server crashing, or a network break).
As a result, the build is left in the in-progress state.

Such builds are automatically abandoned for the following reasons:
1. When the build engine is restarted, new builds will be processed, however the old builds would otherwise remain in the in-progress state indefinitely.
2. As a result the build engine would appear as busy when it is not.


Anyone have any idea ? I appreciate any help, this is blocking a big continuous integration project and we may skip using RTC if I don't solve this problem.

2 votes


Accepted answer

Permanent link
Another cause that gives this error message is when there are 2 build engines running with the same Id. It can occur easily when you are cloning VM...

I don't know if RTC writes the correct error somewhere, but the build log (which is the first one the administrator checks) contains only a generic message.


Leandro David selected this answer as the correct answer

1 vote

Comments

Hi, that was the problem. I had the BE running in another VM with the same id by mistake


2 other answers

Permanent link
I am using the RTC build system toolkit to create ant scripts that interact with RTC. To make that run, I am using build engines running in a VM so they work as an agent in the VM and I can trigger the ant scripts from RTC client (using a build definition pointing to that build engine).

The problem that I have is that I am not able o correctly start the build engine in some VMs. I have two VMs were the build engine runs fine, with no problem and other two were the Build Engine doesn't start correctly. When I run the command to start the build engine from windows prompt, it freezes and nothing happens(instead of the common message saying that it is running and accepting requests). On RTC client I see the build engine status as idle giving me the impression that it is running. But when I try to run a build definition on that build engine, it starts to run and is immediately abandoned indicating that there is a problem in the Build Engine. I am suspecting that there is a network problem between the VM and the RTC server because our servers and network are configured with high restrictive permissions (any necessary access must be explicitly requested). But I can access for example the RTC Web Client using a web browser. The two VMs that are working fine are old ones and in the past I needed to make some privileged network permissions for the IP of those vms, I just don t know what are exactly the necessary permissions needed. Maybe the RTC build system toolkit (jbe) access RTC through some specific port or protocol that is currently blocked on our network. I am not sure if this is the problem but I couldn t find what is the difference between the working VMs and the failing ones. Also there is no log from the build engine the indicates clearly what is the problem (at least I don't if jbe generates some kind of log ).

This is the command that I run to start the build engine
jbe -repository https:/myrtcserver.com:9443/jazz -userId myuser -passwordFile mypassfile -engineId MyEngineId


And this is the error that I receive when I start a build definition in that build engine and is is immediately abandoned.

This build has been automatically abandoned by the build engine 'MyBuildEngine'.
This can happen if the build engine stops while it is processing a build, or if it fails to communicate with the server (e.g. due to the server crashing, or a network break).
As a result, the build is left in the in-progress state.

Such builds are automatically abandoned for the following reasons:
1. When the build engine is restarted, new builds will be processed, however the old builds would otherwise remain in the in-progress state indefinitely.
2. As a result the build engine would appear as busy when it is not.


Anyone have any idea ? I appreciate any help, this is blocking a big continuous integration project and we may skip using RTC if I don't solve this problem.


Hi

I am sorry you are having these problems.

If the JBE freezes, that could be because it can't see the RTC server, or the parameters on the JBE are incorrect (typo's, wrong parameters, etc).

You should only need https access to the JBE on your VM. I would check this is allowed on your firewalls.

You may also want to check the version of the JVM you are using - maybe the new vm has a different version of Java.

Also check you have disk space and write access to any directories referenced by the JBE.

Just some ideas - I am sure other people will chime in with better suggestions

anthony

1 vote


Permanent link
Hi Guys
I am also facing similar issue, can some one tell what exactly I need to do to fix this issue.? Thanks in advance!

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 15 '12, 4:23 p.m.

Question was seen: 7,315 times

Last updated: Oct 21 '15, 7:53 p.m.

Confirmation Cancel Confirm