Push failing with probable HgFnCache lock failure

Andrey Bolibrukh's Avatar

Andrey Bolibrukh

20 May, 2013 08:32 AM

Windows 2008R2 64x server hosting HgLab on IIS 7.5; couldnt fathom the version, but I did DL it from hglabhq less than a week ago.

It works great, except when I have to push; then it crashes.

I am attaching the logfiles for "Debug" and "Trace" ("global" and "trace" respectively) levels; I've downloaded the HgSharp src from bitbucket and tried to comb through what was going on, but ultimately failed (looks out of date tbh). Please take a look at them.

TL;DR for problem is: the push initiates, the bundle gets saved, starts committing, tries to acquire lock (and apparently succeeds) on HgFnCache, but crashes after that.

Security permissions for every folder I could think of (repo folder root, hglab, even c:/windows/temp) are there for both IIS_USERS and Everyone, just in case, yet this isnt going anywhere.

Ben, this is Danila, I need help! (c)

  1. Support Staff 1 Posted by Anton Gogolev on 20 May, 2013 09:01 AM

    Anton Gogolev's Avatar

    Andrey,

    This is most likely due to KB2468871 missing on your server. Try installing it and see if that helps.

  2. 2 Posted by Andrey Bolibruk... on 20 May, 2013 09:53 AM

    Andrey Bolibrukh's Avatar

    Anton, I think I had it already, not 100% sure tho.

    Installed it anyways, same error. Restarted the server, no use :(. Same crashing point.

    Got some more tracing, all about the same thing tho -- hg push on client, HgFnCacheStore tries to acquire lock on server, IIS worker process goes down.

    What steps would one take to diagnose this more closely? I grew fond of HgLab's easy installation / clean ui, and would like to keep it.

  3. Support Staff 3 Posted by Anton Gogolev on 20 May, 2013 10:04 AM

    Anton Gogolev's Avatar

    Andrey,

    That's strange. Next option will be enabling 32-bit applications support for the Application Pool where HgLab is running.

  4. Support Staff 4 Posted by Anton Gogolev on 20 May, 2013 10:06 AM

    Anton Gogolev's Avatar

    Andrey,

    And while you're at it, could you please ensure that all updates to .NET 4.0 are indeed installed? Maybe KB2600211 will help? With Microsoft you'll never know...

  5. 5 Posted by Andrey Bolibruk... on 20 May, 2013 10:45 AM

    Andrey Bolibrukh's Avatar

    Alright, I switched the .net 4.0 app pool to 32bit, and it no longer fails, and everything seems to be working fine. Thanks alot for the solution!

    I am slightly hesitant to just leave the 4.0 app pool in the 32bit mode, though; the KB2600211 is up and running but switching back to 64x landed me back right where I was before; the patches seem to have had no effect.

    What else would I be able to do in order to fix the problem?

  6. Support Staff 6 Posted by Anton Gogolev on 20 May, 2013 10:53 AM

    Anton Gogolev's Avatar

    Andrey,

    When I was testing HgLab on a virtual machine I was getting exactly the
    same error, with references to kernelbase32.dll in Event Log. I as able to
    fix it by installing all updates to .NET 4.0 I could find. Maybe, I'll try
    and pinpoint the exact one that solves the problem, but for now you can
    leave 32-bit apps settings on -- it really affects nothing with respect to
    HgLab. If you're wary of this, you can create a separate Application Pool
    solely for HgLab and tweak settings over there.

    Unfortunately, this is all I can tell you for the moment.

  7. 7 Posted by Andrey Bolibruk... on 20 May, 2013 11:04 AM

    Andrey Bolibrukh's Avatar

    Sounds great. Thanks alot, Anton, for the support, for creating HgLab and for keeping it free!

  8. Andrey Bolibrukh closed this discussion on 20 May, 2013 11:04 AM.

  9. Anton Gogolev re-opened this discussion on 20 May, 2013 11:32 AM

  10. Support Staff 8 Posted by Anton Gogolev on 20 May, 2013 11:32 AM

    Anton Gogolev's Avatar

    Andrey,

    Thanks for kind words. There's one thing to note, though: I'm actually
    planning on building a business around HgLab and I'm anticipating to start
    selling it as soon as bugs like this one are ironed out. It will be a
    tiered licensing model with reasonably low price for small teams (like, $50
    for up to 5 people, discounted upgrades, all that jazz). I'll be offering a
    free starter license (and discounts for upgrades to more advanced ones) to
    all participants of this Support forum.

    Hope I haven't disappointed you much.

  11. 9 Posted by Andrey Bolibruk... on 20 May, 2013 11:37 AM

    Andrey Bolibrukh's Avatar

    I looked through the HgSharp commits at some point, noting the timeline and ~2commits / day, compared that to how fast you were at answering questions on the forum and figured you'd wanna build on it at some point; what you are doing does seem to bear the quality mark of a business that would have a chance.

    Best of luck with it.

  12. Andrey Bolibrukh closed this discussion on 21 May, 2013 12:56 PM.

Comments are currently closed for this discussion. You can start a new one.

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

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM