Open jtilahun opened 1 year ago
If this is reproducible, then you likely have a corrupted LMDB store... we're currently not in a position to accept a copy of the database to triage that, so your best bet will likely be to remove ~/.cache/pants/lmdb_store
. Sorry for the trouble!
If you find a sequence of steps that reproduces the problem (or it's recurring frequently) then please definitely re-open!
Hmm, strange. I ran sudo rm -r ~/.cache/pants/lmdb_store
in order to remove the LMDB store, and now the export
goal with the --no-pantsd
argument succeeds. I don't know of a sequence of steps in order to reproduce the corruption of the LMDB store though. What is the LMDB store and how is it used?
Both the --pantsd
and --no-pantsd
errors are likely the same error under the hood: the only difference is whether the crash happens in the foreground or the background. So both commands should now be fine.
The LMDB store contains all cache entries and their file/directory contents.
The export
goal without the --no-pantsd
argument also succeeds now. So it does seem like both errors are related.
I don't know what to say about the LMDB store. I don't know how the LMDB store could have gotten corrupted.
This happened on my system as well. Removing the LMDB store worked but I don't know how/why it got corrupted in the first place. Wanted to bring it up as it seems there is a bug somewhere
I got another report of the error message
/github/home/.cargo/git/checkouts/lmdb-rs-369bfd26153a2575/6ae7a55/lmdb-sys/lmdb/libraries/liblmdb/m:2126: Assertion 'rc == 0' failed in mdb_page_dirty()
from yet another colleague who was unable to run the export
goal with the same arguments.
There is most certainly a bug somewhere. What is the path forward here? This issue was closed despite the fact that the problem clearly still exists. Please advise regarding a path forward. Thank you.
Reopening per https://pantsbuild.slack.com/archives/C046T6T9U/p1690955357162709, which very reasonably points out that this keeps occurring, so it's unfortunate to have the issue be closed.
Getting a sense of the behaviour here:
That said, as @stuhood points out, I imagine this might be very hard to narrow down without some more hints about the conditions, e.g. can you share your pants.toml
and the contents of the lockfile for the python-default
resolve?
Yes, I work with @jtilahun on the same codebase
Thanks @huonw for reopening this issue.
The codebase is common among all of the occurrences I'm aware of. Yes, the other colleague I mentioned in my last comment hit this also on the same repository/codebase but on another machine. So that's a total of three discrete incidents of this (including my own) as of this writing.
I understand that we'll need more information to help pinpoint what's happening. I sent our pants.toml
and the contents of the lockfile for the python-default
resolve to @huonw via Slack DM.
Describe the bug Attempting the
export
goal with the--no-pantsd
argument results in failure on my system with the below error message:The error message indicates a possible relation to other bug reports, e.g. bmatsuo/lmdb-go/issues/131.
Pants version 2.15.0
OS Linux
Additional info The context is that attempting the
export
goal without the--no-pantsd
argument results in failure on my system with the below error message:According to the error message, disabling pantsd with the global option
--no-pantsd
is one possible troubleshooting step. However, attempting theexport
goal with the--no-pantsd
argument also results in failure on my system.