-
Notifications
You must be signed in to change notification settings - Fork 11
stackage-security-lock error #66
Comments
I don't think that's where the error comes from, we only update with Stack once. I believe you probably terminated the application preemptively once, and are running into a hackage-security bug around using directories for locking, see haskell/hackage-security#203. Can you try building again with a newer hackage-security and if that works sending a PR for the stack.yaml? |
And no, I've never observed this issue myself. |
Ah, that makes sense—thanks for the info. It didn't look to me that it happened during the update, but I could be wrong. I'll see if I can reproduce it again and provide more details. |
Ok, I caught it again—it happens not during the update but during
|
I haven't tried to update hackage-security yet, but if you think this could be related to file vs directory locking, I will. |
I'd still like to see an attempt at an update there. Also, what version of Stack are you using? Does it include the hackage-security update? |
This was with:
I'll update hackage-security to master. |
Actually, looking at stack's stack.yaml as of the v1.9.1 tag, it should've been built with hackage-security-0.5.3.0@rev:2, which is more or less the latest hackage-security. (It already contains haskell/hackage-security@2a1a6cc, which replaces your earlier patch.) |
If you want to send a PR to address the problem, I'll be happy to review. But we're not running into this on the Stackage build server. On a related tangent: we've got plans in place to totally revamp the stackage-curator tool based on the recent pantry work I did in Stack. I'm guessing that will affect you significantly, and likely make it easier in many cases to achieve what you're trying to do. For example, the new version will be based around pantry locations, which can point to arbitrary URLs for tarballs, allowing hackage.head. Are you interested in collaborating on getting this new version operational? |
Got it. I think the fix will be on the hackage-security side though.
That sounds interesting, although it seems we're pretty close to what we need with the current setup. (Also, incidentally, just today I ran into a pantry issue when trying out stack head—it was commercialhaskell/stack#4292.) Let me think about it. How far do you think the new stackage-curator is from being operational? |
The new curator tool is currently living in the stack repo, but it will get moved out once pantry is ready to move to its own repo. The major steps we still need are:
It's currently doing the building by shelling out to Stack, though I was recently discussing the possibility of using a different approach to building, potentially even Nix (to ensure that the stack2nix-style integration is working correctly). |
I think I figured it out — As to your collaboration offer, I don't think I'm going to have the bandwidth for it, but I'll definitely keep it in mind. |
Correct, curators typically know to do |
Hi,
I sometimes catch a locking error when running make-bundle:
It seems clear where it's coming from — stackage-curator runs many copies of stack, stack calls to hackage-security, and hackage-security doesn't handle an already taken lock gracefully. The solution would be to add a retry somewhere in hackage-security.
I just wanted to check whether you also observe this issue or you have some workaround, or you don't run stackage-curator with many jobs? (We run with just 9.)
The text was updated successfully, but these errors were encountered: