Skip to content
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

Failed to open lmdb environment: Invalid argument #6533

Closed
chrissound opened this issue May 14, 2020 · 4 comments
Closed

Failed to open lmdb environment: Invalid argument #6533

chrissound opened this issue May 14, 2020 · 4 comments

Comments

@chrissound
Copy link

Running this in a qemu vm.

[130] root@nixos> monerod --data-dir /mount/moneromount/mon-block                                                                        /mount
2020-05-14 22:36:05.954	I Monero 'Carbon Chamaeleon' (v0.15.0.0-unknown)
2020-05-14 22:36:05.954	I Initializing cryptonote protocol...
2020-05-14 22:36:05.954	I Cryptonote protocol initialized OK
2020-05-14 22:36:05.954	I Initializing core...
2020-05-14 22:36:05.955	I Loading blockchain from folder /mount/moneromount/mon-block/lmdb ...
2020-05-14 22:36:05.957	W Failed to open lmdb environment: Invalid argument
2020-05-14 22:36:05.961	E Error opening database: Failed to open lmdb environment: Invalid argument
2020-05-14 22:36:05.963	I Stopping cryptonote protocol...
2020-05-14 22:36:05.963	I Cryptonote protocol stopped successfully
2020-05-14 22:36:05.964	E Exception in main! Failed to initialize core

Version:

[1] root@nixos> monerod --version                                                                                                        /mount
Monero 'Carbon Chamaeleon' (v0.15.0.0-unknown)
@chrissound
Copy link
Author

Works correctly if I don't mount the vm mount path..

[127] root@nixos> mount | grep mon                                                                                                       /mount
a457b9c00b7152b02ceea27e7fe1a07 on /mount/moneromount type 9p (rw,relatime,sync,dirsync,access=client,trans=virtio)

I suppose something to do with the 9p mount type?

@hyc
Copy link
Collaborator

hyc commented May 14, 2020

Most likely that 9p filesystem doesn't support mmap.

@moneromooo-monero
Copy link
Collaborator

#6536 will make it clear when a lmdb init failure is due to mmap. Assuming lmdb doens't need support for more fancy usage hyc ?

@hyc
Copy link
Collaborator

hyc commented May 16, 2020

Well.... it should be enough that mmap works. But there are things like WSL that may still fail.
microsoft/WSL#3451 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants