It's all about the answers!

Ask a question

Is SCM command session by the same user conflicted?


Taki Nakajo (1.1k2246) | asked Jul 30 '14, 7:05 a.m.
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




Comments
Shashikant Padur commented Jul 30 '14, 11:43 p.m.
JAZZ DEVELOPER
If the load directories (known as sandbox) is different then there should be two separate daemons running. If you kill only one daemon then the other should still be active. How is the daemon stopped? based on the port/share root? or --all option?

Taki Nakajo commented Jul 31 '14, 1:32 a.m.

Here is the part of scm_daemon_stop in the both build xml.

<target name="scm_daemon_stop">
<antcall target="date">
<param name="param1" value="scm_daemon_stop start"/>
</antcall>
<exec executable="/opt/IBM/jazz/scmtools/eclipse/scm.sh" failonerror="true">
<arg value="daemon"/>
<arg value="stop"/>
<arg value="${LOAD_DIR}"/>
</exec>

One answer



permanent link
Tim Mok (6.6k38) | answered Jul 30 '14, 3:12 p.m.
JAZZ DEVELOPER
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


Register or to post your answer.