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

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

Open
hundehausen opened this issue Oct 15, 2023 · 5 comments

Comments

@hundehausen
Copy link

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
Copy link
Owner

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

@hundehausen
Copy link
Author

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
Copy link
Owner

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

@hundehausen
Copy link
Author

@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
Copy link
Contributor

DaWe35 commented Feb 26, 2024

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.

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

3 participants