# MOSRS authentication : ERROR checking password

**URL:** <https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665>\
**Category:** Unified Model\
**Tags:** help\
**Created:** [10 September 2024 04:43 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665 "2024-09-10T04:43:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul.Gregory](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paul.gregory/32/2566_2.png) [@Paul.Gregory](https://forum.access-hive.org.au/u/Paul.Gregory)\
**Post date:** [10 September 2024 04:43 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/1 "2024-09-10T04:43:36Z")

</div>

Hi all.

My MOSRS account is now re-activated and I’m getting set up on gadi for the first time (previously I used MOSRS on raijin).

I’ve added the following to ~/.subversion/servers

```auto
[groups]
metofficesharedrepos = code*.metoffice.gov.uk

[metofficesharedrepos]
username = XXXXXX # set to your username
store-plaintext-passwords = no

```

I’ve follow the steps described here: [Setup — Aus2200 Training](https://scottwales.github.io/aus2200-training/setup.html)

```auto
module purge
module use /g/data/hr22/modulefiles
module load pbs cylc7
mosrs-auth

```

I’ve followed notes here : [https://code.metoffice.gov.uk/trac/home/wiki/AuthenticationCaching](https://code.metoffice.gov.uk/trac/home/wiki/AuthenticationCaching)

```auto
 $ grep password-stores ~/.subversion/config 
# password-stores = gpg-agent,gnome-keyring,kwallet
# password-stores =

```

The following generates no output (which is correct):

```auto
$ rose config --print-conf -f ~/.subversion/config auth password-stores

```

But authentication fails with the following error:

```auto
$ mosrs-auth
MOSRS username XXXXX # set to your username - change in ~/.subversion/servers
Current project dx2
Checking stored password...
ERROR checking password
HTTP Error 401: Unauthorized

```

The password I’ve entered is the same to access [code.metoffice.gov.uk](http://code.metoffice.gov.uk).

I have membership to ki32, and ki32\_mosrs.

Cheers,

Paul

---

<div class="post-metadata">

**Author:** ![cbengel](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@cbengel](https://forum.access-hive.org.au/u/cbengel)\
**Post date:** [10 September 2024 04:57 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/2 "2024-09-10T04:57:58Z")

</div>

Hi Paul,

Just in case this helps, the mosrs-auth is only required when checking out or committing a rose/cylc suite, so in general the authentication in not required all the time.

For research purposes it seems ok to just enter the name and password when running the mosrs-auth with no authentication caching.

That may not suite your purposes though … but may start you running if you are currently feeling stuck.

Best regards,

Chermelle

---

<div class="post-metadata">

**Author:** ![Paul.Gregory](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paul.gregory/32/2566_2.png) [@Paul.Gregory](https://forum.access-hive.org.au/u/Paul.Gregory)\
**Post date:** [10 September 2024 05:50 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/3 "2024-09-10T05:50:23Z")

</div>

Thanks Chermelle. Checkout of rose suites was standard BoM practise, I’m not familiar with other methods to obtaining a rose suite. What are they?

How can you run moss-auth with no authentication caching?

Note my MOSRS password works as I can execute the following:

```auto
$ fcm info https://code.metoffice.gov.uk/svn/glosea/main/trunk/rose-stem/bin/scitool-run@5989
Authentication realm: <https://code.metoffice.gov.uk:443> Met Office Code
Password for 'XXXXXX': ********************

Path: scitool-run
Name: scitool-run
URL: https://code.metoffice.gov.uk/svn/glosea/main/trunk/rose-stem/bin/scitool-run
Relative URL: ^/main/trunk/rose-stem/bin/scitool-run
Repository Root: https://code.metoffice.gov.uk/svn/glosea
Repository UUID: e14a8879-62c6-4f65-aad6-6a06efb4d672
Revision: 5989
Node Kind: file
Last Changed Author: joemancell
Last Changed Rev: 5989
Last Changed Date: 2023-06-20 19:35:03 +1000 (Tue, 20 Jun 2023)

```

---

<div class="post-metadata">

**Author:** ![Scott](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/scott/32/37_2.png) [@Scott](https://forum.access-hive.org.au/u/Scott)\
**Post date:** [11 September 2024 00:28 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/5 "2024-09-11T00:28:06Z")

</div>

Try the `--force` flag to make mosrs-auth request a password

---

<div class="post-metadata">

**Author:** ![Paul.Gregory](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paul.gregory/32/2566_2.png) [@Paul.Gregory](https://forum.access-hive.org.au/u/Paul.Gregory)\
**Post date:** [11 September 2024 01:34 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/6 "2024-09-11T01:34:18Z")

</div>

Hi Scott. I tried `--force` yesterday to no avail.

I’m going to look into the python calls within the `mosrs-auth` script and try to get a minimum working example up and running in python.

---

<div class="post-metadata">

**Author:** ![Aidan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/aidan/32/42_2.png) [@Aidan](https://forum.access-hive.org.au/u/Aidan)\
**Post date:** [11 September 2024 02:59 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/7 "2024-09-11T02:59:19Z")

</div>

> [@Paul.Gregory](#):
>
> I’ve added the following to ~/.subversion/servers
> 
> ```auto
> [groups]
> metofficesharedrepos = code*.metoffice.gov.uk
> 
> [metofficesharedrepos]
> username = XXXXXX # set to your username
> store-plaintext-passwords = no
> 
> ```

I assume you’re putting your actual username in that file and are obscuring it for security, which is good practice.

On that assumption it is worth checking the whole `~/.subversion/servers` file. I had an error when I added something like that to the end, but there was already a `[groups]` defined, so it threw an error to that effect that was swallowed by the `mosrs-auth` script.

---

<div class="post-metadata">

**Author:** ![Paul.Gregory](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paul.gregory/32/2566_2.png) [@Paul.Gregory](https://forum.access-hive.org.au/u/Paul.Gregory)\
**Post date:** [11 September 2024 05:02 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/8 "2024-09-11T05:02:34Z")

</div>

Ok I solved it.

I created a python test script to see what the inputs `mosrs-auth` was passing to the `urllib` request.

The actual value of `user` inside the python script is

```python
In [3]: user
Out[3]: 'myusername # set to your username'

```

I assumed that a bash comment would be ignored by the script. Not so - indeed the stdout from `mosrs-auth` was

```auto
MOSRS username XXXXX # set to your username - change in ~/.subversion/servers
Current project dx2

```

So all I did was change my ~/.subversion/config entry from

```auto
username = xxxxxxxx # set to your username

```

to

```auto
username = xxxxxxxx

```

And authentication works.

Onwards and upwards.

---

<div class="post-metadata">

**Author:** ![nathan-e](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/nathan-e/32/392_2.png) [@nathan-e](https://forum.access-hive.org.au/u/nathan-e)\
**Post date:** [21 March 2025 03:27 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/9 "2025-03-21T03:27:43Z")

</div>

Thanks for chasing down this error @Paul.Gregory - I’ve just come back to checking out suites and had this exact issue. Fixed by removing the `# set to your username` comment

I just blindly copied the mosrs-auth auth cacheing advice into my subversion config file and left the comment there

A win for the ACCESS-Hive and one less thing I have to bug Scott with 😃

---

<div class="post-metadata">

**Author:** ![Paul.Gregory](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paul.gregory/32/2566_2.png) [@Paul.Gregory](https://forum.access-hive.org.au/u/Paul.Gregory)\
**Post date:** [21 March 2025 03:49 UTC](https://forum.access-hive.org.au/t/mosrs-authentication-error-checking-password/3665/10 "2025-03-21T03:49:03Z")

</div>

It’s good not to bug Scott with things like this 😉
