# FCM branch create/commit failed: file lock

**URL:** <https://cms-helpdesk.ncas.ac.uk/t/fcm-branch-create-commit-failed-file-lock/1590>\
**Category:** Rose/Cylc and FCM\
**Created:** [11 December 2024 14:06 UTC](https://cms-helpdesk.ncas.ac.uk/t/fcm-branch-create-commit-failed-file-lock/1590 "2024-12-11T14:06:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kqiu](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kqiu](https://cms-helpdesk.ncas.ac.uk/u/kqiu)\
**Post date:** [11 December 2024 14:06 UTC](https://cms-helpdesk.ncas.ac.uk/t/fcm-branch-create-commit-failed-file-lock/1590/1 "2024-12-11T14:06:56Z")

</div>

Hi,

I was trying to do a little exercise on applying modifications to a UM suite.

1. I first followed the process I learnt from the training to create a branch but it failed.

 ![fcm_branch_create_error](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/9016e9201c7a768085dd30d75c6f7f55c64aef52.png)

1. I then tried to checkout that branch directly and made my modification, it failed again when I committed it with the same error.
  - Error: svn: E000013: Commit failed (details follow):  
svn: E000013: Can’t open file ‘/home/d04/fcm/srv/svn/um.xm/db/txn-current-lock’: Permission denied  
[FAIL] svn commit -F /working/d00/kqiu/jtmp/tmp.IGnUPytujg/u6YbfAzkJD # rc=1

Could you please help me with this? Thanks a lot!

Cheers,  
Kexin

---

<div class="post-metadata">

**Author:** ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)\
**Post date:** [11 December 2024 14:27 UTC](https://cms-helpdesk.ncas.ac.uk/t/fcm-branch-create-commit-failed-file-lock/1590/2 "2024-12-11T14:27:45Z")

</div>

Hi Kexin,

Try running:

`fcm branch-create --bob -k 7783 vn12.0_weiyu_contrail_practicle fcm:um.x_br/dev/weiyuzhang/vn12.0_contrail_Chen2012@119756`

You were using `fcm:um.xm_br` which refers to the read-only mirror repositories on PUMA2 not the writable repositories on the Met Office Science Repository Service.

Depending on what exactly you are doing it is usually bettter to create a branch from the UM trunk (e.g. fcm:um.x-tr@vn12.0) and then fcm merge in the branch you wish to branch from (e.g. vn12.0\_contrail\_Chen2012@119756) rather than trying to do a branch-of-a-branch. Sometimes this can cause problems when the UM does the code extraction/merge.

Regards,  
Ros

---

<div class="post-metadata">

**Author:** ![kqiu](https://avatars.discourse-cdn.com/v4/letter/k/6a8cbe/32.png) [@kqiu](https://cms-helpdesk.ncas.ac.uk/u/kqiu)\
**Post date:** [11 December 2024 15:01 UTC](https://cms-helpdesk.ncas.ac.uk/t/fcm-branch-create-commit-failed-file-lock/1590/3 "2024-12-11T15:01:05Z")

</div>

Hi Ros,

Thank you so much for your help. I see the reason now. I tried your method and it worked.

Cheers,  
Kexin

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/cms_support/original/1X/1fd2411499ffcbc299fe756cd5cdf26e44956558.png) [@system](https://cms-helpdesk.ncas.ac.uk/u/system)\
**Post date:** [13 December 2024 16:24 UTC](https://cms-helpdesk.ncas.ac.uk/t/fcm-branch-create-commit-failed-file-lock/1590/5 "2024-12-13T16:24:25Z")

</div>

Closed on 13 December 2024 16:24 UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
