-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"No such hash" lit install reports #301
Comments
Good to note, currently all of my packages have the same issue. So there is a chance it is not per module, but per user. As well as the chance of me doing something wrong, although I can't see how is that. |
After some thinking and talking to contributors, this might have been caused by a bad local litdb on my end. Just when I wanted to publish one of my packages, Lit reported an IO error related to my hard-disk -It is dying-
I am not sure if that is indeed the cause, but it is one possible scenario. Sadly, only way to test it out is by... deleting the packages and restarting the upstream server, and then trying to republish them. Sounds like too much trouble for a one user. |
I've been trying on a workaround of testing the previous theory, other than restarting the whole upstream since that's pretty problematic, and I came up with the idea of forcing a rehash on all malformed files then publishing that. I tested that method on Bilal2453/vips and it seems indeed that was the issue, now it works after the workaround. For anyone else who is having the same issue, here is a vague idea of how I did it:
@squeek502 Should we close this? Or perhaps suggest that Lit do account to a corrupted local litdb.git upstream and warn user about it. Another suggestion could be to add an option to force a publish without syncing, removing the need of a patch to local Lit, as an emergency way of escaping this loop. I don't know if we should call this a bug, since it is basically Lit never checking the hashes it is receiving, so more of a missing feature perhaps? |
Seems like some sort of validation on either the client or server's end (or both?) would be nice. It's been a while since I've looked at the Lit internals though so I don't have any suggestions for what that might look like at the moment. |
Indeed, sounds like some missing validation, at the very least server side. I am honestly not quite sure where exactly either, I didn't dig to that point. But all I know is somewhere, the hash being used somehow mismatches in the git db (another theory was that the lit git implementation gets out of sync somehow). And not being able to force a publish and/or somehow delete the package AND clear its cache server side adds to this issue, making user stuck in this loop of no hash errors. |
Oops that close was accidental |
Not sure what to say, but this is not as straightforward as I thought. After publishing the problematic version, 1.1.10, I have published 1.1.11 of the mentioned package; and that version did behave just fine, until I published 1.1.12 that fixed some bugs in the previous one, both from a different new drive, and this time 1.1.12 had the same no hash problem. I have as well spotted a pattern, each time I publish one of these "corrupted" modules... I get through this weird scenario after publishing the problematic version:
It seems to always start this no hash problem after the previous pattern repeats. This has happened to me many times now and I only linked between it and between this bug now since I wasn't paying much attention to the no hash problem thinking it is a single user issue. I haven't yet done the last step I hope current state is easier to debug server side maybe. Edit: I just did the last step of re-publishing and indeed got a new no hash problem even though I forced a rehash of almost everything |
I've been running into this error since a while now, but as a small example, trying to install the module
Bilal2453/vips
will result in an error similar to.
This package was normally published through
lit publish .
, my ssh key and auth seems to be valid. The repo of that package is here.I've tried to dig deeper into this without a lot of luck, since the error seems to happen on lit side, but I was able to specify which files are causing this through Lit REST API:
https://lit.luvit.io/trees/b694fbf90abc511decc13d2f7cb2be37c160b538/Bilal2453/vips/v1.1.10/libs
lists a bunch of files in the folderlibs
.f4a9d19dd2ff3420f24348f958926fce38ea8b56
works fine.213f714766b96c2c9121025845132442eb4c5540
triggers this error.There are other files that trigger it or does not, not quite sure what is in common between the corrupted hashes.
The text was updated successfully, but these errors were encountered: