Error when browsing to repository. Also can't push without 500 error.
System.NullReferenceException: Object reference not set to an instance of an object.
at HgSharp.Core.HgTagManager.RefreshTagsInternal(HgRevset headNodes) in d:\projects\hgsharp\src\HgSharp.Core\HgTagManager.cs:line 147
at HgSharp.Core.HgTagManager.GetTagsInternal() in d:\projects\hgsharp\src\HgSharp.Core\HgTagManager.cs:line 86
at HgSharp.Core.HgTagManager.GetTags() in d:\projects\hgsharp\src\HgSharp.Core\HgTagManager.cs:line 41
at HgSharp.Core.HgRepository.GetTags() in d:\projects\hgsharp\src\HgSharp.Core\HgRepository.cs:line 723
at HgLab.Models.Modellers.RepositoryModeller.ToRepositoryModel(ISecurityPrincipal securityPrincipal, Repository repository, ProjectModel projectModel, HgRepository hgRepository, Boolean includeClosedBranches, Action`1 t) in d:\projects\hglab\src\HgLab\Models\Modellers\RepositoryModeller.cs:line 75
at HgLab.Areas.Project.Controllers.RepositoryController.Files(MainlineRepository repository, String changeset, String path) in d:\projects\hglab\src\HgLab\Areas\Project\Controllers\RepositoryController.cs:line 106
at lambda_method(Closure , ControllerBase , Object[] )
at System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters)
at System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 param
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by Carl Berg on 11 Jun, 2015 07:48 AM
Here's an attached logfile from hgLab
Support Staff 2 Posted by Anton Gogolev on 11 Jun, 2015 09:13 AM
Hello, Carl!
This is most likely due to caches being out of sync. Try deleting
everything under ".hg\cache" in from the failing repository on your HgLab
server.
3 Posted by Carl Berg on 11 Jun, 2015 10:05 AM
No luck unfortunately... Same error after deleting everything under cache. I have also upgraded to version 1.8.7, but no change. Same error appears in UI and this is what appears in the log:
Support Staff 4 Posted by Anton Gogolev on 11 Jun, 2015 11:16 AM
Carl,
Can you possibly copy the entire repository from the server to your local
machine and run "hg verify" on it?
5 Posted by Carl Berg on 11 Jun, 2015 11:33 AM
You're right. It's been corrupted. I will try to clone it from the last working revision and replace it with the cloned one. I guess i have to remove any newer changesets (in PushlogEntry and PushlogEntryItem) in the hglabs database aswell?
Support Staff 6 Posted by Anton Gogolev on 11 Jun, 2015 01:11 PM
Sorry to hear that.
If the repository you'll be overwriting the one on the server has any of
the previous changesets missing, you'll need to clean up the tables you've
referenced. Otherwise (if you are overwriting with a non-corrupt version of
the same exact repository with the same exact changesets) you can leave
things as is.
7 Posted by Carl Berg on 11 Jun, 2015 01:19 PM
I ended up moving my own repository over to the server. Seems to be ok now. Thanks for the help!