Unable to lock file /.jazz5/.jazzlock null
I encounterd this error when Accepting changes into workspace during the JBE build.
RTC Version :3.0.1.1
RTC Server :Windows2003 R2 SP2(Tomcat/Derby)
RTC Client :WindowsXP SP3
Build Server:Solaris10
The build log;
-----------------------------------------------------------------------
2012-04-09 20:43:50
2012-04-09 20:43:50 running on host: solaris10
2012-04-09 20:43:50 Should build occur?
2012-04-09 20:43:50 Yes: Always build a user initiated request.
2012-04-09 20:43:50 invoking pre-build participant "com.ibm.team.build.jazzscm"
2012-04-09 20:43:50 Accepting changes into workspace "blduser_batch_ws" ....
com.ibm.team.filesystem.client.CopyFileAreaLockedByOtherProcess: Status INFO: com.ibm.team.filesystem.client code=0 Unable to lock file /tmp/RTC/test5/.jazz5/.jazzlock null
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.ensureExclusiveCFAAccess(SharingMetadata2.java:3074)
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.<init>(SharingMetadata2.java:1636)
at com.ibm.team.filesystem.client.internal.core.SharingMetadataFactory.getSharingMetadata(SharingMetadataFactory.java:43)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createSharingMetadata(CopyFileAreaManager.java:167)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:315)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:1)
at com.ibm.team.filesystem.client.internal.SharingManager.register(SharingManager.java:1002)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:188)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:845)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:651)
at java.lang.Thread.run(Thread.java:662)
-----------------------------------------------------------------------
My question is:
a) The build repo workspace has one local workspace. No one use this as the develop workspase. Then what locks the local workspace? (JBE daemon, lscm command daemon or something other?)
b) As a workaround, I deleted the file /.jazz5/.jazzlock manually and required the build again, then it works successfully.
Is deleting .jazzlock a problem? Does it cause another issue?
Thanks in advance!
RTC Version :3.0.1.1
RTC Server :Windows2003 R2 SP2(Tomcat/Derby)
RTC Client :WindowsXP SP3
Build Server:Solaris10
The build log;
-----------------------------------------------------------------------
2012-04-09 20:43:50
2012-04-09 20:43:50 running on host: solaris10
2012-04-09 20:43:50 Should build occur?
2012-04-09 20:43:50 Yes: Always build a user initiated request.
2012-04-09 20:43:50 invoking pre-build participant "com.ibm.team.build.jazzscm"
2012-04-09 20:43:50 Accepting changes into workspace "blduser_batch_ws" ....
com.ibm.team.filesystem.client.CopyFileAreaLockedByOtherProcess: Status INFO: com.ibm.team.filesystem.client code=0 Unable to lock file /tmp/RTC/test5/.jazz5/.jazzlock null
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.ensureExclusiveCFAAccess(SharingMetadata2.java:3074)
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.<init>(SharingMetadata2.java:1636)
at com.ibm.team.filesystem.client.internal.core.SharingMetadataFactory.getSharingMetadata(SharingMetadataFactory.java:43)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createSharingMetadata(CopyFileAreaManager.java:167)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:315)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:1)
at com.ibm.team.filesystem.client.internal.SharingManager.register(SharingManager.java:1002)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:188)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:845)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:651)
at java.lang.Thread.run(Thread.java:662)
-----------------------------------------------------------------------
My question is:
a) The build repo workspace has one local workspace. No one use this as the develop workspase. Then what locks the local workspace? (JBE daemon, lscm command daemon or something other?)
b) As a workaround, I deleted the file /.jazz5/.jazzlock manually and required the build again, then it works successfully.
Is deleting .jazzlock a problem? Does it cause another issue?
Thanks in advance!
5 answers
Probably the scm daemon process is still alive and did not shutdown and is holding a lock to the sandbox. I am not too familiar with JBE as to when does it shutdown the daemon. You can run the following command "scm list daemon" and see if there is a daemon process running and the sandboxes tracked by that daemon process. If you would like to shutdown the daemon you can run the "scm daemon stop" command.
I encounterd this error when Accepting changes into workspace during the JBE build.
RTC Version :3.0.1.1
RTC Server :Windows2003 R2 SP2(Tomcat/Derby)
RTC Client :WindowsXP SP3
Build Server:Solaris10
The build log;
-----------------------------------------------------------------------
2012-04-09 20:43:50
2012-04-09 20:43:50 running on host: solaris10
2012-04-09 20:43:50 Should build occur?
2012-04-09 20:43:50 Yes: Always build a user initiated request.
2012-04-09 20:43:50 invoking pre-build participant "com.ibm.team.build.jazzscm"
2012-04-09 20:43:50 Accepting changes into workspace "blduser_batch_ws" ....
com.ibm.team.filesystem.client.CopyFileAreaLockedByOtherProcess: Status INFO: com.ibm.team.filesystem.client code=0 Unable to lock file /tmp/RTC/test5/.jazz5/.jazzlock null
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.ensureExclusiveCFAAccess(SharingMetadata2.java:3074)
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.<init>(SharingMetadata2.java:1636)
at com.ibm.team.filesystem.client.internal.core.SharingMetadataFactory.getSharingMetadata(SharingMetadataFactory.java:43)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createSharingMetadata(CopyFileAreaManager.java:167)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:315)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:1)
at com.ibm.team.filesystem.client.internal.SharingManager.register(SharingManager.java:1002)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:188)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:845)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:651)
at java.lang.Thread.run(Thread.java:662)
-----------------------------------------------------------------------
My question is:
a) The build repo workspace has one local workspace. No one use this as the develop workspase. Then what locks the local workspace? (JBE daemon, lscm command daemon or something other?)
b) As a workaround, I deleted the file /.jazz5/.jazzlock manually and required the build again, then it works successfully.
Is deleting .jazzlock a problem? Does it cause another issue?
Thanks in advance!
Hi, Shashikant,
I run the "scm logout" command in my build script, but after the build I could find the scm daemon was still alive by the "scm list daemon" command.
"scm daemon stop" could resolve the error :D
Thanks for the help!
I run the "scm logout" command in my build script, but after the build I could find the scm daemon was still alive by the "scm list daemon" command.
"scm daemon stop" could resolve the error :D
Thanks for the help!
Probably the scm daemon process is still alive and did not shutdown and is holding a lock to the sandbox. I am not too familiar with JBE as to when does it shutdown the daemon. You can run the following command "scm list daemon" and see if there is a daemon process running and the sandboxes tracked by that daemon process. If you would like to shutdown the daemon you can run the "scm daemon stop" command.
I encounterd this error when Accepting changes into workspace during the JBE build.
RTC Version :3.0.1.1
RTC Server :Windows2003 R2 SP2(Tomcat/Derby)
RTC Client :WindowsXP SP3
Build Server:Solaris10
The build log;
-----------------------------------------------------------------------
2012-04-09 20:43:50
2012-04-09 20:43:50 running on host: solaris10
2012-04-09 20:43:50 Should build occur?
2012-04-09 20:43:50 Yes: Always build a user initiated request.
2012-04-09 20:43:50 invoking pre-build participant "com.ibm.team.build.jazzscm"
2012-04-09 20:43:50 Accepting changes into workspace "blduser_batch_ws" ....
com.ibm.team.filesystem.client.CopyFileAreaLockedByOtherProcess: Status INFO: com.ibm.team.filesystem.client code=0 Unable to lock file /tmp/RTC/test5/.jazz5/.jazzlock null
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.ensureExclusiveCFAAccess(SharingMetadata2.java:3074)
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.<init>(SharingMetadata2.java:1636)
at com.ibm.team.filesystem.client.internal.core.SharingMetadataFactory.getSharingMetadata(SharingMetadataFactory.java:43)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createSharingMetadata(CopyFileAreaManager.java:167)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:315)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:1)
at com.ibm.team.filesystem.client.internal.SharingManager.register(SharingManager.java:1002)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:188)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:845)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:651)
at java.lang.Thread.run(Thread.java:662)
-----------------------------------------------------------------------
My question is:
a) The build repo workspace has one local workspace. No one use this as the develop workspase. Then what locks the local workspace? (JBE daemon, lscm command daemon or something other?)
b) As a workaround, I deleted the file /.jazz5/.jazzlock manually and required the build again, then it works successfully.
Is deleting .jazzlock a problem? Does it cause another issue?
Thanks in advance!
I want to add in here that lscm.bat creates that daemon to prevent loading the scm jars every time. So you should use lscm.bat if you plan on executing several scm statements in a row, but you should be aware that the daemon will exist until you terminate the session. scm.exe will load everything, execute and go away. Lscm.bat can cause strange behavior in build tools if you don't take care of the daemon. For example if you use Hudson to execute a lscm.bat, the job will not complete until the daemon is terminated, so if you don't clean up the daemon, you will see the build just sitting in the running state forever. A similar action is happening here as something has executed and is waiting for the process tree to complete, but it never will unless you close the daemon as part of the build process.
~Spencer
~Spencer
Hi, Shashikant,
I run the "scm logout" command in my build script, but after the build I could find the scm daemon was still alive by the "scm list daemon" command.
"scm daemon stop" could resolve the error :D
Thanks for the help!
Probably the scm daemon process is still alive and did not shutdown and is holding a lock to the sandbox. I am not too familiar with JBE as to when does it shutdown the daemon. You can run the following command "scm list daemon" and see if there is a daemon process running and the sandboxes tracked by that daemon process. If you would like to shutdown the daemon you can run the "scm daemon stop" command.
I encounterd this error when Accepting changes into workspace during the JBE build.
RTC Version :3.0.1.1
RTC Server :Windows2003 R2 SP2(Tomcat/Derby)
RTC Client :WindowsXP SP3
Build Server:Solaris10
The build log;
-----------------------------------------------------------------------
2012-04-09 20:43:50
2012-04-09 20:43:50 running on host: solaris10
2012-04-09 20:43:50 Should build occur?
2012-04-09 20:43:50 Yes: Always build a user initiated request.
2012-04-09 20:43:50 invoking pre-build participant "com.ibm.team.build.jazzscm"
2012-04-09 20:43:50 Accepting changes into workspace "blduser_batch_ws" ....
com.ibm.team.filesystem.client.CopyFileAreaLockedByOtherProcess: Status INFO: com.ibm.team.filesystem.client code=0 Unable to lock file /tmp/RTC/test5/.jazz5/.jazzlock null
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.ensureExclusiveCFAAccess(SharingMetadata2.java:3074)
at com.ibm.team.filesystem.client.internal.core.SharingMetadata2.<init>(SharingMetadata2.java:1636)
at com.ibm.team.filesystem.client.internal.core.SharingMetadataFactory.getSharingMetadata(SharingMetadataFactory.java:43)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createSharingMetadata(CopyFileAreaManager.java:167)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:315)
at com.ibm.team.filesystem.client.internal.copyfileareas.CopyFileAreaManager.createCopyFileArea(CopyFileAreaManager.java:1)
at com.ibm.team.filesystem.client.internal.SharingManager.register(SharingManager.java:1002)
at com.ibm.team.build.internal.engine.JazzScmPreBuildParticipant.preBuild(JazzScmPreBuildParticipant.java:188)
at com.ibm.team.build.internal.engine.BuildLoop.invokePreBuildParticipants(BuildLoop.java:845)
at com.ibm.team.build.internal.engine.BuildLoop$2.run(BuildLoop.java:651)
at java.lang.Thread.run(Thread.java:662)
-----------------------------------------------------------------------
My question is:
a) The build repo workspace has one local workspace. No one use this as the develop workspase. Then what locks the local workspace? (JBE daemon, lscm command daemon or something other?)
b) As a workaround, I deleted the file /.jazz5/.jazzlock manually and required the build again, then it works successfully.
Is deleting .jazzlock a problem? Does it cause another issue?
Thanks in advance!