Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

Accrev Reference Tree #271

kevinrtucker ·
I'm getting the following error in my build log now. How should it be resolved?

2007-10-05 09:15:48,689 [Thread-3472] INFO - Update reference tree to sync replica...
2007-10-05 09:15:48,692 [Thread-3472] INFO - Getting reference tree info for reference tree "QuickBuild.sparc-sf9.23".
2007-10-05 09:15:49,038 [Thread-3472] INFO - Creating reference tree "QuickBuild.sparc-sf9.23".
2007-10-05 09:15:49,335 [Thread-3477] WARN - Workspace/ref tree location already in use.
2007-10-05 09:15:49,336 [Thread-3477] WARN - Existing workspace/ref tree: QuickBuild.sparc-sf9.raima.com.23 at /raima/builds/Dev/RDMe/PSP_nightly/checkouts
2007-10-05 09:15:49,337 [Thread-3472] ERROR - Step "Checkout" is failed: ERROR: Failed to run command: Executing '/raima/accurev/bin/accurev' with arguments:
'mkref'
'-r'
'QuickBuild.sparc-sf9.23'
'-b'
'RDMe-PSP-KRT'
'-l'
'/raima/builds/Dev/RDMe/PSP_nightly/checkouts'

The ' characters around the executable and arguments are
not part of the command.
, returned code: 1
2007-10-05 09:15:49,342 [Thread-3472] ERROR - Step "default" is failed: Composite step "default" failed due to unsatisfication of step success condition.
2007-10-05 09:15:49,342 [Thread-3472] INFO - Finished triggering step "default". Saving build status based on triggering result...
2007-10-05 09:15:49,342 [Thread-3472] INFO - Build failed: 1.0.112
  • replies 3
  • views 3324
  • stars 0
robinshen ADMIN ·
Hi Kevin,

It seems that the directory "/raima/builds/Dev/RDMe/PSP_nightly/checkouts" is still being used by reference tree "QuickBuild.sparc-sf9.raima.com.23" while QuickBuild tries to associate it with the new reference tree "QuickBuild.sparc-sf9.23".

The reason for this might be that your host name has been changed from "sparc-sf9.raima.com" to "sparc-sf9" which leads to name of automatically generated reference tree changing.

To solve the issue, please open accurev client and edit reference "QuickBuild.sparc-sf9.raima.com.23" to change its workspace directory to another directory.


Regards.
Robin
kevinrtucker ·
Hi Robin,

Discovered today that if someone has put a lock onto the stream when QB tries to open a reference tree, we get this same error and continue to get it even after the lock has been removed. I consider this a bug in Accurev, but we need a work-around for now. I found the command

accurev show locks

That shows a list of all the locked streams, so it could be searched to check if the parent for the reference tree is locked or not and avoid trying to access it until the lock has been removed.

Do you think that would be an easy change to add to QB to work around this problem?

Thanks,
Kevin
robinshen ADMIN ·
Hi Kevin,

This improvement has been tracked as http://jira.pmease.com/browse/QB-330.

For now, you may change the buildNecessaryCondition to be:

system.execute("/path/to/script") == 0 && effectingRepositoriesModified

The "/path/to/script" represents an external script which you need to write to determine whether or not the stream relating to current reference tree is locked. If locked, just return a non-zero value and QuickBuild will not try to checkout and build against the reference tree.

Regards.
Robin