FCM branch create/commit failed: file lock

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.

    • Command used: fcm branch-create --bob -k 7783 vn12.0_weiyu_contrail_practicle fcm:um.xm_br/dev/weiyuzhang/vn12.0_contrail_Chen2012@119756
    • Error: svn: E000013: Can’t open file ‘/home/d04/fcm/srv/svn/um.xm/db/txn-current-lock’: Permission denied
      [FAIL] svn copy --file /working/d00/kqiu/jtmp/tmp.JmUyEUvvjJ/xHDnMTN9mv --parents file:///home/d04/fcm/srv/svn/um.xm/main/branches/dev/weiyuzhang/vn12.0_contrail_Chen2012@119756 file:///home/d04/fcm/srv/svn/um.xm/main/branches/dev/kqiu/r119756_vn12.0_weiyu_contrail_practicle # rc=1

  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

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

1 Like

Hi Ros,

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

Cheers,
Kexin

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