Is SCM command session by the same user conflicted?
Is SCM command session by the same user conflicted?
on Solaris, 2 JBEs are launched from the same user's home directory '/home/uusbt00'.
su - uusbt00 -c "bash ${JBESH_HOME}/JBE_START_TLMS_bt0cts01.sh"
su - uusbt00 -c "bash ${JBESH_HOME}/JBE_START_TLMS_batch_bt0cts01.sh"
Build definitions for each JBEs specify the different workspaces and load directories. Each builds run SCM commands as well.
When both builds runs at the same time, there is the error in the either of them.
** RTC_BUILD/batch log **
scm_checkin:
date:
[echo] 2014/07/17 04:25:10 scm_checkin start
[exec] lscm checkin -d /home/uusbt00/RTC_BUILD/batch_tmp/BT /home/uusbt00/RTC_BUILD/batch_tmp/BT
[exec] Committing...
err:
scm_daemon_stop:
date:
[echo] 2014/07/17 04:25:52 scm_daemon_stop start
[exec] daemon exited successfully.
firstbuild:
BUILD SUCCESSFUL
** RTC_BUILD/online log **
scm_checkin:
date:
[echo] 2014/07/17 04:25:09 scm_checkin start
[exec] lscm checkin -d /home/uusbt00/RTC_BUILD/online_tmp /home/uusbt00/RTC_BUILD/online_tmp
[exec] Commiting...
err:
scm_daemon_stop:
date:
[echo] 2014/07/17 04:25:53 scm_daemon_stop start
[exec] Problem about execution of 'daemon stop' :
[exec] daemon could not be found in /home/uusbt00/RTC_BUILD/online_tmp
BUILD FAILED
/home/uusbt00/RTC_BUILD/online_tmp/RTC_build_online/build_online.xml:344: exec returned: 30
|
One answer
I think the recommended approach is to not use the daemon when using the CLI in scripts. If you execute commands with 'scm' there will be no daemon left running in the background.
|
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.
Comments
Here is the part of scm_daemon_stop in the both build xml.