# Error with Mercurial subrepositories using SCM Manager web interface

**URL:** <https://community.cloudogu.com/t/error-with-mercurial-subrepositories-using-scm-manager-web-interface/639>\
**Category:** SCM-Manager Bug Reports\
**Created:** [April 8, 2022, 5:19pm UTC](https://community.cloudogu.com/t/error-with-mercurial-subrepositories-using-scm-manager-web-interface/639 "2022-04-08T17:19:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucasluengas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/lucasluengas/32/453_2.png) [@lucasluengas](https://community.cloudogu.com/u/lucasluengas)\
**Post date:** [April 8, 2022, 5:19pm UTC](https://community.cloudogu.com/t/error-with-mercurial-subrepositories-using-scm-manager-web-interface/639/1 "2022-04-08T17:19:53Z")

</div>

Hello.  
I am using SCM Manager 2.32.2.  
I have a Mercurial repository, migrated from SCM Manager 1.60, with subrepositories.  
Using SCM Manager web interface, I get this error on default page for this repository on SCM Manager.

RepositoryName is name of repository  
SubrepositoryName es name of subrepository  
hg/RepositoryName  
Error: Not found  
The requested entity could not be found. It may have been deleted in another session.  
Context  
File: SubrepositoryName  
Revision: default  
Repository: hg/RepositoryName  
Transaction ID 9sT2QuuLw2D  
Error Code AGR7UzkhA1

I have enabled logs on SCM Manager. Error with detail is:

TRACE sonia.scm.api.rest.ContextualExceptionMapper - map NotFoundException to status code 404  
sonia.scm.NotFoundException: could not find file with id SubrepositoryName in revision with id default in repository with id hg/RepositoryName  
at sonia.scm.NotFoundException.notFound(NotFoundException.java:47)  
at sonia.scm.repository.spi.HgBrowseCommand.lambda$getBrowserResult$0(HgBrowseCommand.java:100)

Using TortoiseHG I get no errors. It’s working without issues.

Is there any configuration on SCM Manager for enable compatibility with subrepositories or is there any error on my SCM Manager environment?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![eheimbuch](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/eheimbuch/32/18_2.png) [@eheimbuch](https://community.cloudogu.com/u/eheimbuch)\
**Post date:** [April 11, 2022, 6:37am UTC](https://community.cloudogu.com/t/error-with-mercurial-subrepositories-using-scm-manager-web-interface/639/2 "2022-04-11T06:37:52Z")

</div>

Hey @lucasluengas

I am not sure whether you have to activate support for nested repositories in Mercurial. We will check this and get back to you asap.

Regards, Eduard

---

<div class="post-metadata">

**Author:** ![eheimbuch](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/eheimbuch/32/18_2.png) [@eheimbuch](https://community.cloudogu.com/u/eheimbuch)\
**Post date:** [April 13, 2022, 11:33am UTC](https://community.cloudogu.com/t/error-with-mercurial-subrepositories-using-scm-manager-web-interface/639/3 "2022-04-13T11:33:09Z")

</div>

Hey @lucasluengas,

After some research we found out that SCM-Manager doesn’t like Mercurial sub-repositories with relative paths. If we use absolute paths it works.

Example:  
SubRepo is named `nested`. The config in the `.hgsub` file looks like this:

```auto
nested = http://localhost:8081/scm/repo/scmadmin/classic

```

Maybe this workaround will already help you?

BR,  
Eduard

---

<div class="post-metadata">

**Author:** ![lucasluengas](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/lucasluengas/32/453_2.png) [@lucasluengas](https://community.cloudogu.com/u/lucasluengas)\
**Post date:** [April 15, 2022, 1:59pm UTC](https://community.cloudogu.com/t/error-with-mercurial-subrepositories-using-scm-manager-web-interface/639/4 "2022-04-15T13:59:32Z")

</div>

@eheimbuch  
Hello.  
Thanks for your support and this workaround. It helps me.  
Regards.

---

<div class="post-metadata">

**Author:** ![christoph.loose](https://dub1.discourse-cdn.com/flex013/user_avatar/community.cloudogu.com/christoph.loose/32/1400_2.png) [@christoph.loose](https://community.cloudogu.com/u/christoph.loose)\
**Post date:** [July 6, 2022, 11:57am UTC](https://community.cloudogu.com/t/error-with-mercurial-subrepositories-using-scm-manager-web-interface/639/5 "2022-07-06T11:57:39Z")

</div>


