-
Notifications
You must be signed in to change notification settings - Fork 136
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
Critical errors appear constantly #97
Comments
Seems you are using master branch of openmonero. Try its development branch https://github.com/moneroexamples/openmonero/tree/use_blocks_range . The branch will also require latest monero from its master. |
Thank you for the advice! The problem is that I cannot use use_blocks_range branch because of the compilation error I’ve specified above.
|
This error occurs because you are probably using old, release of monero (e.g. 0.12.3). In current monero branch (https://github.com/monero-project/monero) |
Finally I could start Monero using master branch (commit 91c7d68) and Openmonero using use_blocks_range branch (commit 79e207a). But I’ve got those info errors
and
And after that the previous error appeared again:
|
Could you provide full error messages? |
Sure. For the first error:
And for main one:
I've replaced addresses with "sample address" for security reasons, but I'm sure there is no problem in address itself because I've tried a several addresses. |
At the moment I don't know what is happening. Seems its running out of memory, either openmonero or monero itself. Maybe there is a memory leak, or you running it on a computer with very limited ram (e.g. 2GB). I guess that you get this issue only with openmonero? When running and using monero by itself, there are no problems? |
It takes 24G on server. There is memory error in openmonero loges only, and there is no in monero loges. |
By second error you mean this one? This is only info, and it simply means openmonero reached top of the blockchain, and there is nothing more to scan. This is not an issue. The memory is a problem. But I don't know what could be causing it. I run stagenet version of the openmonero (http://172.104.45.209:81) on VPS with 0.5GB of ram, and I haven't observed issues with memory allocations. I will try observing the memory. Last question, which linux are you using? |
But one thing you can try is to reduce |
Ubuntu 16.04.5 LTS, 4.8.0-58-generic core. I've tried 10 blocks as you advice, but it still doesn't work. |
First of all, I would like to understand a reason the following error appears: |
This is monero's lmdb blockchain database error. Number of max readers is 126 by default, and seems you are reaching this number. Found similar issue on monero: monero-project/monero#2741 Solution there was to run monerod with less threads, e.g., |
The access to the blockchain issue applies only to openmonero. As for monero itself, it processes requests correctly. |
@margarita-f you change max-concurrency for |
Also cant reproduce this issue. For now the issue must stay open, as I'm running out of ideas what could be the reason for that. Hopefully with time will get to the bottom of it. |
Ubuntu 16.04.5 LTS
Monero commit 91c7d68 |
Thanks for info. I will try to check it on ubuntu 16.04. But for now please note that that there where many changes done in last week in monero, and openmonero broke and does not compile yet with the latest monero. So first I will need to update openmonero to work with newest monero, and then wull come back to your issue. |
Hi @moneroexamples ! Are there any updates since you wrote you gonna make some updates? |
Yes, I made it work with the latest monero. Still some uinit tests fail due to changes, so have to fix that, but haven't had time to do this. |
Hi guys, The error We use following compilers:
DB parameters (tables/number of records) Following your advice, we used also Monero master branch and Openmonero devel branch as well, but it returns the error with following log:
Using Monero master branch and Openmonero master branch, we’ve got the same error. |
Monero started using epee:span (an equivalent of gls::span from c++ core guidelines), so current openmonero master branch will not work with current monero master. But openmonero's devel branch should work as it was adjusted to use epee::span as well. So can you check that you are using current monero master branch, or instead you are checking out its last official release (e.g. 0.13.0.4) and then trying to use openmonero?
I encountered this issue once recently, when I was starting and shutting down openmonero a lot using Ctr+C during its development (or it was crashing). It seemed to me that when you shut it down like this, lmdb will keep the number of readers, as MicroCore.h object will not have a chance to call its destructor to release the lmdb which it opened in read only mode. I think that deleting I made issue just now to add Ctr+C handling to openmonero: #115 Hope this, once implemented, will help with this issue. |
Control+C handling was added. Now the blockchain's lmdb as well as OM's threads and mysql are closed nicely. Changes are in |
Resolved in #130 |
Hi there!
While working with the previous Openmonero build, two errors constantly appear:
[
what(): Failed to create a read transaction for the db: MDB_READERS_FULL: Environment maxreaders limit reached terminate called after throwing an instance of 'cryptonote::DB_ERROR_TXN_START'
]and also
[
what(): Failed to renew a read transaction for the db: MDB_BAD_RSLOT: Invalid reuse of reader locktable slot Failed to create a read transaction for the db: MDB_READERS_FULL: Environment maxreaders limit reached
]Every couple of minutes these two appear and make it impossible to work on. So I have to constantly restart Monero.
I belief the latest Monero build could help with that, but I am experiencing a new compilation error:
[
[100%] Linking CXX executable openmonero src/libmyxrm.a(MicroCore.cpp.o): In function
xmreg::MicroCore::get_transactions(std::vector<crypto::hash, std::allocatorcrypto::hash > const&, std::vector<cryptonote::transaction, std::allocatorcryptonote::transaction >&, std::vector<crypto::hash, std::allocatorcrypto::hash >&) const':/root/openmonero/src/MicroCore.h:86: undefined reference to
bool cryptonote::Blockchain::get_transactions<std::vector<crypto::hash, std::allocator<crypto::hash> >, std::vector<cryptonote::transaction, std::allocator<cryptonote::transaction> >, std::vector<crypto::hash, std::allocator<crypto::hash> > >(std::vector<crypto::hash, std::allocator<crypto::hash> > const&, std::vector<cryptonote::transaction, std::allocator<cryptonote::transaction> >&, std::vector<crypto::hash, std::allocator<crypto::hash> >&) const' collect2: error: ld returned 1 exit status CMakeFiles/openmonero.dir/build.make:136: recipe for target 'openmonero' failed make[2]: *** [openmonero] Error 1 CMakeFiles/Makefile2:69: recipe for target 'CMakeFiles/openmonero.dir/all' failed make[1]: *** [CMakeFiles/openmonero.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2
]I would really appreciate your help guys!
The text was updated successfully, but these errors were encountered: