[GUIDE] Installing charge-lnd (in a docker) to automate your fee policies

Thank you very much for the answer and advice.
It gave me the big picture of Lightning.

I am envisioning a future that has An app that allows everyone to really bank for each other.

Hi, after upgrading to umbrel version 0.4.16 the docker charge-lnd command is not working anymore. Getting the error: charge-lnd: error: the following arguments are required: -c/–config

I used following command:

docker run --rm -it --network=umbrel_main_network
-e GRPC_LOCATION=10.21.21.9:10009
-e LND_DIR=/data/.lnd
-e CONFIG_LOCATION=/app/charge.config
-v /home/umbrel/umbrel/lnd:/data/.lnd
-v /home/umbrel/umbrel/apps/charge-lnd/charge.config:/app/charge.config
accumulator/charge-lnd:latest

Any suggestens to fix my problem?

Cheers,
Werninjo

1 Like

charge-lnd is already in the Umbrel LN Shell app.

thx, but at the end, when I will use the LND shell, I need a solution for my mentioned problem with automated fee management.

Just want to know the syntax for -c/–config. Thx.

1 Like

Looks like that the CONFIG_LOCATION var is not recognized correctly.

I have the same problem, can’t figure out how to fix it. Hope someone knows.

This is broken after the last Umbrel update.
charge-lnd: error: the following arguments are required: -c/–config

1 Like

I tell you what I did:

  • Install on Umbrel the app “Lightning Shell”
  • Access Lightning Shell and creating charge.config in the route “/data”
  • You can test your config file using charge-lnd -c /data/charge.config
  • SSH your umbrel and plan in the crontab in the following waY
    1 crontatb -e
    2 add a line in the crontab file in this way: 00 * * * * /mnt/data/umbrel/app-data/lightning-shell/data/lsh_exec_ni.sh charge-lnd -c /data/charge.config

Doing it it will run every hour at 00 minutes.

Hope it helps and it does not disturb anybody.

Regards,

4 Likes

Sorry for the basic question… for step four, how do you create the charge.config file in data? I tried crontatb -e without success

What error did you get?

From SSH

and from lightningShell

Crontab -e has to be performed from umbrel SSH. Not from Lightning Shell. Lightning Shell does not include crontab.

NOTE. If any admin thinks it is not OK to have this conversation in this thread we can open a new one.

Having the same issue!

Can you give some details on this step? How to create the charge.config via Lightning Shell

Once you access Lightning shell go to the folder “cd /data”
Create the file “vi charge.config”.
Paste your file
And save and exit (escape key and then “:wq” to save and exit.

2 Likes

Look’s like I did it now, how I can check if the crontab schedule is running?

Make a relevant change in the config file. Wait till the hour it runs and review fees as you usually do.

Then undo the change, wait till the hour and review that it is OK.

Thanks for your helpful posts. I downloaded / installed the LN App via Umbrel. When I open it (on a Mac) I only get a black screen with a solid cursor. When I try to type anything (like cd /data) I get a large white pop up saying “Press (Enter) to Reconnect”, where there is a large return arrow instead of “Enter”. If I press Enter, it only briefly says “Reconnecting”, replaced by the same “Press (Enter) to Reconnect”. I uninstalled LN App, reinstalled, restarted Safari, rebooted Mac - nothing helps. Ideas?

Make sure you know what you doing with charge-lnd… as it disable channels at a certain level of “profitability”, automatically.

Use Chrome, then it works.