Error in the app mempool -> lightning always loading

Hello, I’ve installed the mempool app and everything works correctly except for the Lightning part, which is stuck. See added image. Is always loading.

The only error I’ve seen in the logs is this:

ERR: Could not initialize LND Macaroon/TLS Cert. Disabling LIGHTNING. ENOENT: no such file or directory, open ‘/lnd/data/chain/bitcoin/mainnet/readonly.macaroon’

The mempool versión is 3.0.1-hotfix
The umbrel OS vesión is : umbrelOS 1.4
I just installed this in a new mini pc 2 o 3 days ago

I’ve searched the internet but haven’t found a solution.

Thanks


Well i found this

that says
" On Umbrel, users need to Setup a new node before it is actually running"

Now I just need to figure out how to Setup a new node :sweat_smile:

If your BTC node and Lightning node are running and fully up to date, or in syc, you’re ready to tap into them. If they’re not, this app can’t view what it doesn’t have access to. Here’s a few things to consider:

Your issue with the Mempool app’s Lightning section getting stuck on “loading” after a fresh install on umbrelOS 1.4 with Mempool 3.0.1-hotfix is tied to that specific error in the logs: ERR: Could not initialize LND Macaroon/TLS Cert. Disabling LIGHTNING. ENOENT: no such file or directory, open ‘/lnd/data/chain/bitcoin/mainnet/readonly.macaroon’. This means Mempool can’t find a critical file (readonly.macaroon) it needs to authenticate with Umbrel’s Lightning Node (LND), so it disables Lightning functionality entirely. Let’s break it down and fix it.

Why This Is Happening

  • Missing readonly.macaroon: The readonly.macaroon file is an authentication token that Mempool uses to connect to LND over its REST API. If it’s missing or inaccessible at the expected path (/lnd/data/chain/bitcoin/mainnet/readonly.macaroon), Mempool can’t establish a connection, and the Lightning dashboard stalls.
  • Fresh Install: Since you set this up 2-3 days ago on a new mini PC, it’s possible LND hasn’t fully initialized or generated all its macaroon files yet. This can happen if the Bitcoin blockchain sync or LND setup isn’t complete.
  • Umbrel + Mempool Integration: Mempool’s Lightning features are optional and rely on LND being properly configured and accessible. A misstep in Umbrel’s app framework or a permissions issue could also block access to the file.

Thoughts and Steps to Fix

Here’s a practical approach to get the Lightning part working:

1. Verify LND Is Running and Synced

  • Check the Dashboard: On http://umbrel.local, ensure the Bitcoin Node and Lightning Node apps show as fully synced and operational. If Bitcoin Core is still syncing (it takes days on a fresh install), LND won’t fully initialize until that’s done.
  • SSH Check: Log in via SSH (ssh umbrel@umbrel.local) and run:

CollapseWrapCopy

docker ps | grep lnd

Look for a running LND container (e.g., lnd_lnd_1). If it’s not there or keeps restarting, LND isn’t ready.

2. Locate the Macaroon File

  • Default Path: Umbrel stores LND data in Docker volumes, but the path Mempool expects (/lnd/data/chain/bitcoin/mainnet/readonly.macaroon) is mapped from LND’s container. On the host, it’s typically under ~/umbrel/app-data/lightning/data/lnd/data/chain/bitcoin/mainnet/.
  • Check Existence: Run:

CollapseWrapCopy

ls -l ~/umbrel/app-data/lightning/data/lnd/data/chain/bitcoin/mainnet/

You should see readonly.macaroon alongside admin.macaroon and invoice.macaroon. If it’s missing, LND hasn’t generated it yet—or it’s misconfigured.

3. Regenerate Macaroons (If Missing)

  • Restart LND: Stop and restart the Lightning Node app to force LND to regenerate macaroons:

CollapseWrapCopy

cd ~/umbrel sudo ./scripts/app stop lightning sudo ./scripts/app start lightning

  • Check Logs: Watch LND logs for errors:

CollapseWrapCopy

docker logs lnd_lnd_1

Look for macaroon-related issues or startup failures.

4. Fix Mempool’s Configuration

  • Mempool’s Expectation: Mempool 3.0.1-hotfix expects LND’s TLS certificate and macaroon at specific paths inside its container. Umbrel’s app framework should map these automatically, but a bug or version mismatch (umbrelOS 1.4 is new) might have broken this.
  • Temporary Workaround: If the file exists but Mempool can’t see it, you could manually adjust Mempool’s config:
    1. Stop Mempool:

CollapseWrapCopy

cd ~/umbrel sudo ./scripts/app stop mempool

  1. Edit Mempool’s Docker Compose file:

CollapseWrapCopy

nano ~/umbrel/app-data/mempool/docker/docker-compose.yml

Ensure the LND volume is correctly mapped. It should include something like:

CollapseWrapCopy

`volumes:

  • ../lightning/data/lnd:/lnd:ro`

If not, add it under the mempool service.
3. Restart Mempool:

CollapseWrapCopy

sudo ./scripts/app start mempool

5. Check Mempool Logs Again

  • After restarting, check Mempool logs:

CollapseWrapCopy

docker logs mempool_api_1

  • If the ENOENT error is gone and no new Lightning errors appear, the dashboard should load.

6. If It Still Fails

  • Reinstall Mempool: Uninstall and reinstall Mempool via the Umbrel App Store. This resets its configuration and might resolve a bad initial setup.
  • Report the Bug: This could be a compatibility issue between umbrelOS 1.4 and Mempool 3.0.1-hotfix. Check Umbrel’s GitHub (getumbrel/umbrel) or community forums (community.umbrel.com) for similar reports. If none exist, post your log and setup details—others might have hit this too.

Timing?

This smells like a timing or integration hiccup common with fresh Umbrel installs. The blockchain sync delay or a glitch in how umbrelOS 1.4 mounts LND’s data for Mempool are the likely culprits. The fact that everything else in Mempool works suggests it’s not a hardware or network issue—just a handshake failure with LND. The steps above should sort it out…

Hi thanks for the help

  1. Result for : docker ps | grep lnd
    Nothing Only empty line

  2. Result for: ls -l ~/umbrel/app-data/lightning/data/lnd/data/chain/bitcoin/mainnet/
    cannot access ‘/home/umbrel/umbrel/app-data/lightning/data/lnd/data/chain/bitcoin/mainnet/’: No such file or directory

  3. Results for : cd ~/umbrel sudo ./scripts/app stop lightning sudo ./scripts/app start lightning
    I dont have the ./scripts folder
    I dont find the ./scripts/app

  4. Result for: docker logs lnd_lnd_1
    Error response from daemon: No such container: lnd_lnd_1

  5. Result for: nano ~/umbrel/app-data/mempool/docker/docker-compose.yml
    Directory ‘/home/umbrel/umbrel/app-data/mempool/docker’ does not exist

  6. Result for: docker logs mempool_api_1
    Same error : ERR: Could not initialize LND Macaroon/TLS Cert. Disabling LIGHTNING. ENOENT: no such file or directory, open ‘/lnd/data/chain/bitcoin/mainnet/readonly.macaroon’

NOTICE: The mempool is now in sync! ( THE MEMPOOL IS OK BUT LIHGTNING DONT)

  1. I tried Reinstall Mempool
    The first time, the lightning bolt icon doesn’t even appear!!!

The second time I reinstalled it, it appeared the same as before.
The lightning bolt icon is visible, but it keeps loading, with the same error I posted at the beginning.

I don’t know what to do anymore :sweat_smile:

Based on the information you’ve provided and the results from your troubleshooting attempts, it’s clear that the root issue isn’t just with Mempool—it’s with your Lightning Node (LND) not running or being improperly set up on your Umbrel system. The error ERR: Could not initialize LND Macaroon/TLS Cert. Disabling LIGHTNING. ENOENT: no such file or directory, open ‘/lnd/data/chain/bitcoin/mainnet/readonly.macaroon’ in Mempool’s logs is a symptom of this deeper problem: Mempool can’t connect to LND because LND isn’t operational or its data isn’t where it should be. Let’s figure out what’s going on and get it fixed step-by-step.

Why This Is Happening

Your results show:

  • docker ps | grep lnd returns nothing, meaning no LND container is running.
  • The directory ~/umbrel/app-data/lightning/data/lnd/data/chain/bitcoin/mainnet/ doesn’t exist, so LND hasn’t generated its macaroon files (like readonly.macaroon).
  • Commands like sudo ./scripts/app stop lightning fail because the scripts folder isn’t found, suggesting either a typo or a misunderstanding of Umbrel’s structure on umbrelOS 1.4.
  • Mempool works fine for Bitcoin data but can’t load Lightning data because it relies on LND, which isn’t available.

This points to one of two possibilities:

  1. Lightning Node Isn’t Installed or Running: You might not have installed the Lightning Node app on your Umbrel, or it failed to start after installation.
  2. UmbrelOS 1.4 Issue: A fresh install on a mini PC with umbrelOS 1.4 might have a bug or configuration hiccup preventing LND from initializing properly.

Since this is a new setup (2-3 days old), it’s likely LND hasn’t been fully set up or encountered an error during initialization. Let’s confirm and resolve this.

Next Steps to Fix It

Here’s a clear plan to get your Lightning Node running and Mempool’s Lightning features working:

1. Check if the Lightning Node App Is Installed

  • Via Umbrel Dashboard: Open your browser and go to http://umbrel.local (or your mini PC’s IP address if that doesn’t work, e.g., http://192.168.x.x). Log in and look at the App Store or installed apps section. Do you see “Lightning Node” listed?
    • If Not Installed: Install it from the App Store by clicking “Install” next to “Lightning Node.” This is required for Mempool’s Lightning features to work, as it provides the LND instance Mempool connects to.
    • If Installed: Check its status. Does it say “Running” or show an error? If it’s not running, note any error messages.

2. Verify Bitcoin Node Status

  • LND depends on a fully synced Bitcoin Node. On the Umbrel dashboard, check the “Bitcoin Node” app. Is it 100% synced? If it’s still syncing (common on a fresh install), LND won’t start properly until it’s done. Wait for it to finish if it’s not synced yet.

3. Restart Umbrel and Check Logs

  • Restart Umbrel: From the dashboard, go to Settings > Restart (or power cycle your mini PC if needed). This ensures all services get a fresh start.
  • SSH and Check Containers: After rebooting, SSH into your mini PC:

CollapseWrapCopy

ssh umbrel@umbrel.local

Then run:

CollapseWrapCopy

docker ps

Look for containers named something like lightning_lnd_1 (for LND) and mempool_api_1 (for Mempool). If lightning_lnd_1 isn’t listed, LND isn’t running.

  • Check LND Logs: If you see an LND container (e.g., lightning_lnd_1), check its logs:

CollapseWrapCopy

docker logs lightning_lnd_1

Look for errors about TLS certificates, macaroons, or Bitcoin sync issues. If no LND container exists, skip to step 4.

4. Fix LND if It’s Not Running

  • Correct Command for Umbrel: You mentioned ~/umbrel/scripts/app doesn’t exist. On newer umbrelOS versions, app management might differ. Try this instead:

CollapseWrapCopy

cd ~/umbrel sudo ./scripts/stop sudo ./scripts/start

This stops and starts all Umbrel services. If scripts still isn’t there, it’s possible your install is incomplete. Re-download umbrelOS 1.4 and reflash your mini PC (back up any data first if possible).

  • Manually Start Lightning: If the above works but LND still doesn’t start, force it via the dashboard by uninstalling and reinstalling the Lightning Node app.

5. Confirm Macaroon Files Exist

  • Once LND is running, check its data directory:

CollapseWrapCopy

ls -l ~/umbrel/app-data/lightning/data/lnd/data/chain/bitcoin/mainnet/

You should see readonly.macaroon, admin.macaroon, etc. If they’re there, LND is set up correctly, and Mempool should be able to access them (Umbrel maps these paths automatically).

6. Restart Mempool and Test

  • After confirming LND is running and macaroons exist, restart Mempool:
    • Dashboard: Uninstall and reinstall Mempool from the App Store.
    • Or via SSH:

CollapseWrapCopy

cd ~/umbrel sudo ./scripts/app stop mempool sudo ./scripts/app start mempool

  • Check Mempool logs again:

CollapseWrapCopy

docker logs mempool_api_1

If the ENOENT error is gone, the Lightning dashboard should load.

7. If It Still Fails

What to Expect

  • If LND wasn’t installed, installing it should resolve everything once it syncs.
  • If LND was installed but not running, restarting or reinstalling it should generate the missing readonly.macaroon file, fixing Mempool’s error.
  • If this is a bug with umbrelOS 1.4, the community or developers will point you to a workaround or update.

You’re close—LND just needs to be up and running. Start with the dashboard checks, and let me know what you find.

It seems this was the error.

I didn’t have the Lightning Node app installed.

But I had the Core Lightning app installed, and I thought that app was enough.

I thought it was even better than the Lightning Node app.

Right now, there’s still no data, and I guess it’ll take a while to load, but it seems like it’s going to work.

Thansks for the help :+1:

Sweet! Hope it fires up sooon.