#2537 closed help (fixed)

Error using fcm commit

Reported by: a.elvidge Owned by: ros
Component: FCM Keywords: subversion caching
Cc: Platform: Monsoon2
UM Version:

Description

Hi,

I appear unable to commit changes to the repository using "fcm commit". Please could you advise? The error message I am receiving is shown below:

Thanks, Andy

Would you like to commit this change?
Enter "y" or "n" (or just press <return> for "n"): y
Sending        app/archive/rose-app.conf
Sending        app/housekeep/rose-app.conf
Sending        app/install_cold/opt/rose-app-monsoon-cray-xc40.conf
Sending        app/install_cold/rose-app.conf
Sending        rose-suite.conf
Sending        rose-suite.info
Transmitting file data ......svn: E165001: Commit failed (details follow):
svn: E165001: Commit blocked by pre-commit hook (exit code 1) with output:
2018-07-05T11:23:28Z+ 83572-1tm4 by AndrewElvidge
U   a/u/3/2/8/trunk/app/archive/rose-app.conf
U   a/u/3/2/8/trunk/app/housekeep/rose-app.conf
U   a/u/3/2/8/trunk/app/install_cold/opt/rose-app-monsoon-cray-xc40.conf
U   a/u/3/2/8/trunk/app/install_cold/rose-app.conf
U   a/u/3/2/8/trunk/rose-suite.conf
U   a/u/3/2/8/trunk/rose-suite.info
[FAIL] PERMISSION DENIED: U   a/u/3/2/8/trunk/app/archive/rose-app.conf
[FAIL] PERMISSION DENIED: U   a/u/3/2/8/trunk/app/housekeep/rose-app.conf
[FAIL] PERMISSION DENIED: U   a/u/3/2/8/trunk/app/install_cold/opt/rose-app-monsoon-cray-xc40.conf
[FAIL] PERMISSION DENIED: U   a/u/3/2/8/trunk/app/install_cold/rose-app.conf
[FAIL] PERMISSION DENIED: U   a/u/3/2/8/trunk/rose-suite.conf
[FAIL] PERMISSION DENIED: U   a/u/3/2/8/trunk/rose-suite.info
[FAIL] svn commit -F /var/tmp/JApLjwZOAJ # rc=1

Change History (4)

comment:1 Changed 12 months ago by a.elvidge

  • Component changed from UM Model to FCM

comment:2 Changed 12 months ago by ros

  • Owner changed from um_support to ros
  • Status changed from new to accepted

Hi Andy,

When you created this suite and also u-au327 you've somehow created it with the wrong userid (AndrewElvidge rather than all lowercase). (See https://code.metoffice.gov.uk/trac/roses-u/browser/a/u/3/2?order=name) The repository pre-commit hooks will then not allow you to commit with this username as it doesn't conform to the rules.

Please check that your username is set to "andrewelvidge" (all lowercase) in the following 3 places:

1) ~/.metomi/rose.conf

2) ~/.subversion/servers

3) ~/.subversion/auth/svn.simple/2be6a67d04b1c8c6d879daafa52fd762
If the username is incorrect in (3) please delete the file and then rerun the mosrs-cache-password script to recache your password.

Then try again. Hopefully that will then allow you to commit to the suite, it will probably warn you that you are not the owner of the suite due to the different username.

This situation has been encountered before and it is usually recommended to abandon the dodgey suites and create new ones making sure the userid on creation is correct.

Regards,
Ros.

comment:3 Changed 12 months ago by a.elvidge

Thanks very much Ros,

The problem was in ~/.subversion/auth/svn.simple/2be6a67d04b1c8c6d879daafa52fd762
I corrected this here, and now it's working fine - I am able to run fcm commit without problem.

I didn't notice any warning about not owning the suite.

it is usually recommended to abandon the dodgey suites and create new ones making sure the userid on creation is correct.

I'm not entirely sure what you mean by this…? I'm hoping that all is now well and that I don't need to abandon the suite.

Thanks, Andy

comment:4 Changed 12 months ago by ros

  • Keywords subversion caching added
  • Platform set to Monsoon2
  • Resolution set to fixed
  • Status changed from accepted to closed

Hi Andy,

Glad it appears to be all working now.

I just meant that if you experience any further FCM weirdness with these suites then I would advise you create new suites.

I'll close this query now.

Regards,
Ros

Note: See TracTickets for help on using tickets.