-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
i/o error while capturing larger artifact #13401
Comments
This should get you very far:
Assuming you are able to install them all at once ;) |
Thanks. It should hopefully be possible to reproduce synthetically. 🤞 |
Hello! I appear to be running into the same issue. I'm also building a large PEX (just like Joshua mentioned above, it's large mainly because of pytorch), and I get:
Unfortunately I can't share the repository itself, so let me see if I can't reproduce with a dummy codebase. |
An update: I was able to make a small pants repo for reproducing the issue, but while I was doing so I noticed while adding and removing 3rd party deps that:
Seeing how the threshold is suspiciously close to 2**31 (an This commit adds a test to the |
Thanks a lot @gautiervarjo! Much appreciated. To work around this issue, you should be able to use |
Ah! Thank you so much for the quick response, switching layouts works! I won't investigate further since the workaround suits me fine (I wanted to unpack the pex zipapp into a docker image anyway). I'm not sure how high/low priority this bug was for you, but don't bump it up on my account 🙂 |
It's definitely worrisome (and there are a few other papercuts due to LMDB, including the sharding and configured max sizes), but it's unclear which database we would want to switch to for this use case, so we've been punting. Thanks again! |
Just wanted to comment that I ran into the same issue for a large .pex file (con pytorch as well). Setting the layout to "packaged" has helped me. Thanks a lot! |
Hit this as well. Wondering whether it'd be worth having a specific catch for this with a diagnostic/help message. Also, is this related to #16697? |
This is fixed in the As mentioned above though: you almost certainly want to be using the |
Describe the bug
During a
constraints.txt
resolve (pre-#13400), a large output PEX captured in the sandbox resulted in an input/output error from the LMDB store:Adjusting the
[GLOBAL].local_store_shard_count
did not help, so if this is related to artifact size, it would have to be an internal LMDB limitation that we are not aware of (rather than the LMDB max size, which the lower shard count would increase significantly).Pants version
2.7.1
OS
Linux.
Reproducing the issue on other machines and platforms (the reporter was on Linux) to confirm that it was not machine or platform specific will be important.
The text was updated successfully, but these errors were encountered: