# Mosrs-auth not working after maintenance

**URL:** <https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071>\
**Category:** Unified Model\
**Tags:** help, um, solved\
**Created:** [3 May 2024 01:25 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071 "2024-05-03T01:25:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sonyafiddes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/sonyafiddes/32/603_2.png) [@sonyafiddes](https://forum.access-hive.org.au/u/sonyafiddes)\
**Post date:** [3 May 2024 01:25 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/1 "2024-05-03T01:25:26Z")

</div>

Hi Team,

@ZhangchengPei and I are having some issues with mosrs-auth today - see below. It looks like it has been updated, so does anyone know what we need to do to get it working?

Cheers,  
Sonya

```auto
[slf563@gadi-login-04 ~]$ module load cylc7
Using the cylc session cylc.slf563.jk72.ps.gadi.nci.org.au

Loading cylc7/24.03
  Loading requirement: mosrs-setup/2.0.0
[slf563@gadi-login-04 ~]$ mosrs-auth 
MOSRS username sonyafiddes - change in ~/.subversion/servers
Current project jk72
gpg-connect-agent: no running gpg-agent - starting '/usr/bin/gpg-agent'
gpg-connect-agent: waiting for the agent to come up ... (5s)
gpg-connect-agent: connection to agent established
Checking stored password...
svn: E170013: Unable to connect to a repository at URL 'https://code.metoffice.gov.uk/svn/um'
svn: E215004: No more credentials or we tried too many times.
Authentication failed
ERROR checking password
Command '['svn', 'info', 'https://code.metoffice.gov.uk/svn/um', '--non-interactive']' returned non-zero exit status 1.

```

---

<div class="post-metadata">

**Author:** ![ZhangchengPei](https://avatars.discourse-cdn.com/v4/letter/z/8e8cbc/32.png) [@ZhangchengPei](https://forum.access-hive.org.au/u/ZhangchengPei)\
**Post date:** [3 May 2024 03:14 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/2 "2024-05-03T03:14:45Z")

</div>

‘Mosrs-auth’ can work with older version of cylc7/23.09. But seems to have issue with the latest cylc7/24.03.

---

<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:** [3 May 2024 03:52 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/3 "2024-05-03T03:52:40Z")

</div>

Try `mosrs-auth --force` to force it to renew the password

---

<div class="post-metadata">

**Author:** ![sonyafiddes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/sonyafiddes/32/603_2.png) [@sonyafiddes](https://forum.access-hive.org.au/u/sonyafiddes)\
**Post date:** [5 May 2024 23:03 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/4 "2024-05-05T23:03:18Z")

</div>

Hi Scott - that does not seem to solve the problem - same errors as above. Loading cylc7/23.09 works for now, but would be good to have it working with the later releases?

---

<div class="post-metadata">

**Author:** ![paulleopardi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paulleopardi/32/92_2.png) [@paulleopardi](https://forum.access-hive.org.au/u/paulleopardi)\
**Post date:** [5 May 2024 23:46 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/5 "2024-05-05T23:46:33Z")

</div>

Hi Sonya, try renaming the `~/.subversion` directory to something else, like `~/.subversion.bak`, then logging out and back in again. This sometimes fixes the problem.

---

<div class="post-metadata">

**Author:** ![paulleopardi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paulleopardi/32/92_2.png) [@paulleopardi](https://forum.access-hive.org.au/u/paulleopardi)\
**Post date:** [6 May 2024 00:14 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/6 "2024-05-06T00:14:50Z")

</div>

I have also just tried to use `mosrs-auth` and failed. My suggestion of renaming `~/.subversion` just made the problem worse. I have lodged HELP-194953 with NCI and have directed the request to Rui Yang.

---

<div class="post-metadata">

**Author:** ![paulleopardi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paulleopardi/32/92_2.png) [@paulleopardi](https://forum.access-hive.org.au/u/paulleopardi)\
**Post date:** [6 May 2024 00:23 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/7 "2024-05-06T00:23:48Z")

</div>

As a workaround, use your original `~/.subversion` directory, and revert to the previous `mosrs-auth`:

```auto
module unload cylc7/24.03
module unload mosrs-setup
module load cylc7/23.09

```

This worked for me.

---

<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:** [6 May 2024 03:35 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/8 "2024-05-06T03:35:42Z")

</div>

Rui and I have just made an update to mosrs-auth that fixes a few issues

- automatically creates `~/.subversion/auth` directory
- no longer remember invalid passwords
- don’t create extra ~/.gnupg directories on compute nodes
- Fixes module error where subversion couldn’t read the cached password

This is in module mosrs-auth/2.0.1, it’s the new default

---

<div class="post-metadata">

**Author:** ![holger](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/holger/32/320_2.png) [@holger](https://forum.access-hive.org.au/u/holger)\
**Post date:** [6 May 2024 03:39 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/9 "2024-05-06T03:39:52Z")

</div>

Thanks @Scott

I just tried it, it works for me.

Nice new password interface.

---

<div class="post-metadata">

**Author:** ![sonyafiddes](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/sonyafiddes/32/603_2.png) [@sonyafiddes](https://forum.access-hive.org.au/u/sonyafiddes)\
**Post date:** [6 May 2024 03:57 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/10 "2024-05-06T03:57:18Z")

</div>

Works for me! Thanks Team!

---

<div class="post-metadata">

**Author:** ![harshula](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/harshula/32/256_2.png) [@harshula](https://forum.access-hive.org.au/u/harshula)\
**Post date:** [6 May 2024 04:50 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/11 "2024-05-06T04:50:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![harshula](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/harshula/32/256_2.png) [@harshula](https://forum.access-hive.org.au/u/harshula)\
**Post date:** [6 May 2024 04:51 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/12 "2024-05-06T04:51:26Z")

</div>



---

<div class="post-metadata">

**Author:** ![paulleopardi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.access-hive.org.au/paulleopardi/32/92_2.png) [@paulleopardi](https://forum.access-hive.org.au/u/paulleopardi)\
**Post date:** [6 May 2024 04:52 UTC](https://forum.access-hive.org.au/t/mosrs-auth-not-working-after-maintenance/2071/13 "2024-05-06T04:52:36Z")

</div>

I have asked for HELP-194953 to be closed.
