Closed normoes closed 4 years ago
when you specify -b
option you need to specify it to where lmdb
folder of the monero blockchain is located.
Yes, I do that.
The command that is executed is xmrblocks -b /monero
.
/monero
contains data.mdb lock.mdb
.
$LMDB_PATH
contains the value /monero
.
But the exact same command prefixed with exec
is not working:
exec xmrblocks -b /monero
I add the actual outputs here.
xmrblocks -b /monero
2018-10-12 06:36:44,105 INFO [default] Page size: 4096
"/monero"
get_network_info: not connected to deamon
Cant read network info
get_mempool: not connected to deamon
Getting mempool failed
Staring in non-ssl mode
(2018-10-12 06:36:45) [INFO ] Crow/0.1 server is running at 0.0.0.0:8081 using 8 threads
(2018-10-12 06:36:45) [INFO ] Call `app.loglevel(crow::LogLevel::Warning)` to hide Info level logs.
get_mempool: not connected to deamon
Getting mempool failed
and
exec xmrblocks -b /monero
2018-10-12 06:36:56,733 INFO [default] Page size: 4096
"/monero"
2018-10-12 06:36:57.748 7f2a36ae9780 WARN blockchain.db.lmdb src/blockchain_db/lmdb/db_lmdb.cpp:75 Failed to create a read transaction for the db: Resource temporarily unavailable
terminate called after throwing an instance of 'cryptonote::DB_ERROR_TXN_START'
what(): Failed to create a read transaction for the db: Resource temporarily unavailable
Sorry don't know what can be causing it. Using container to run it seems as a good idea, but I haven't attempted it, so don't know at present how could the issue be solved.
Basically it is working, though having it executed using exec
is some kind of best practice to let it run as process 1
.
process 1
is managed by docker itself.
It would be nice if you could check on it some other time.
Thanks for the help.
No problem. If you figure it out, please let me know.
Ok.
@moneroexamples
Whatever caused that, it is gone now - I cloned the current master branch and just tried it again.
I think, the issue can be closed.
Hey @moneroexamples
I need to reopen this issue. The error is back...
As far as I remember, it worked with this version:
explorer version (api): master-2018-10-23-a46b1e7 (1.1) | monero version: 0.13.0.0-master-1e74586
Now, with the current master
branch it does not work anymore:
explorer version (api): master-2018-11-07-db8b46e (1.1) | monero version: 0.13.0.0-master-84dd674
Maybe HIDAPI is causing it? The only major changes after 23 October were to replace PCSC dependency with HIDAPI (just like in monero).
Everything else is rather cosmetic.
Good point, I'll look into this.
@normoes did you ever determine the root cause of this? I am running into the same symptom, although via a different method. I'm compiling monerod & xmrblocks successfully with musl on alpine, but getting the same exact error when I try to run.
Either I get the error in monerod or in xmrblocks - it depends which process I start first. The 2nd process to start throws the error.
TL;DR: The following error is thrown when doing:
I can run
xmrblocks
, it's working fine.I would like to run it within a docker container. However, for this purpose I use an entrypoint script like this:
These are the lines that cause trouble:
If I leave the
exec
, everything will work just fine.With the
exec
, the following error appears andxmrblocks
just stops.Is there something I am missing?