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

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



0 votes

Comments
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?

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
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.

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
× 1,202

Question asked: Jul 30 '14, 7:05 a.m.

Question was seen: 4,452 times

Last updated: Jul 31 '14, 1:32 a.m.

Confirmation Cancel Confirm