moneroexamples / onion-monero-blockchain-explorer

Onion Monero Blockchain Explorer
https://xmrchain.net
BSD 3-Clause "New" or "Revised" License
360 stars 269 forks source link

Given path ""/home/monero/.bitmonero/lmdb"" is not a folder or does not exist #296

Open hundehausen opened 9 months ago

hundehausen commented 9 months ago

Hey @moneroexamples,

when using your docker-compose example I get this error:

Given path ""/home/monero/.bitmonero/lmdb"" is not a folder or does not exist

I tried these two images and both produce the same error:

vdo1138/xmrblocks

ghcr.io/moneroexamples/xmrblocks

My monerod is still syncing, but it should still work, right?

moneroexamples commented 9 months ago

Those two images are not mine. Did you try to build docker compose yourself?

hundehausen commented 9 months ago

Hey @moneroexamples,

are you sure one of the image is not yours? I found it in this repo / on your profile: https://github.com/moneroexamples?tab=packages&repo_name=onion-monero-blockchain-explorer

I tried to build the image myself, but it fails on my MacBook Pro with M1 processor somehow:

471.7 [ 64%] Built target cncrypto-tests
471.8 [ 64%] Linking CXX executable bulletproof_fuzz_tests
472.0 make[3]: Leaving directory '/root/monero/build/release'
472.0 [ 64%] Built target bulletproof_fuzz_tests
477.1 [ 65%] Linking CXX executable levin_fuzz_tests
477.3 make[3]: Leaving directory '/root/monero/build/release'
477.3 [ 65%] Built target levin_fuzz_tests
534.9 make[3]: Leaving directory '/root/monero/build/release'
534.9 [ 65%] Built target obj_rpc
534.9 make[2]: Leaving directory '/root/monero/build/release'
534.9 make[1]: *** [Makefile:141: all] Error 2
534.9 make[1]: Leaving directory '/root/monero/build/release'
534.9 make: *** [Makefile:103: release-all] Error 2
------
Dockerfile:48
--------------------
  47 |     ARG NPROC
  48 | >>> RUN git clone --recursive --branch ${MONERO_BRANCH} https://github.com/monero-project/monero.git \
  49 | >>>     && cd monero \
  50 | >>>     && test -z "$NPROC" && nproc > /nproc || echo -n "$NPROC" > /nproc && make -j"$(cat /nproc)"
  51 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c git clone --recursive --branch ${MONERO_BRANCH} https://github.com/monero-project/monero.git     && cd monero     && test -z \"$NPROC\" && nproc > /nproc || echo -n \"$NPROC\" > /nproc && make -j\"$(cat /nproc)\"" did not complete successfully: exit code: 2
moneroexamples commented 9 months ago

I have been testing publishing images to dockerhub, but it hasn't worked well yet.

hundehausen commented 9 months ago

@sethforprivacy I saw you using the image vdo1138/xmrblocks in your project.

Can you check, if it is still working in your docker-compose setup?

DaWe35 commented 5 months ago

Hi, I remember I got the same error. If it is logged by onion-monero-blockchain-explorer, I believe it can happen because of a possible race condition. I've not tested it yet, the "/home/monero/.bitmonero/lmdb" foler is made by monerod, so if the explorer container starts before monerod, it is possible that it can't find the folder what will be created just seconds later by monerod.

Can you please confirm it is only on first run, or you get this error multiple times when you restart the containers?

What is you restart only the explorer container when monerod is already running?

I was just thinking on adding

        depends_on:
            - monerod

to the docker-compose.yml, but I'm not sure if it will fix it, since the folder creation happens a bit after the monerod container started.