ibz / lightning-shell

The shell for your personal server
https://lightningshell.app
MIT License
24 stars 13 forks source link

lsh_exec.sh not working anymore with Umbrel v0.5.0 #16

Open mikuhl-dev opened 2 years ago

mikuhl-dev commented 2 years ago

Running the example from FAQ: /mnt/data/umbrel/app-data/lightning-shell/data/lsh_exec.sh suez Produces: OCI runtime exec failed: exec failed: unable to start container process: exec: "37a695b2bd25": executable file not found in $PATH: unknown

I did really struggle updating to v0.5.0, so unsure if maybe I broke something?

ibz commented 2 years ago

Hmm, I didn't upgrade to v0.5.0 yet and I am postponing to do so on my main node, as I have some stuff there that I know will break. Planning to set up a separate node for testing and debugging, but that might take a while.

Happy if anyone wants to help with this.

mikuhl-dev commented 2 years ago

docker exec -u lnshell -w /home/lnshell lightning-shell_web_1 /home/lnshell/.local/bin/charge-lnd --dry-run --config /data/charge.config

Something like this works for now maybe? charge-lnd for example. (Remove dry run if you are using this.)

Pubskiste commented 2 years ago

Same worked for me. There are maching 3 container in the previous version; lightning-shell_web_1 is the right one: lightning-shell_app_proxy_1 lightning-shell_web_1 lightning-shell_tor_server_1

TZocker commented 2 years ago

Can you also update the igniter script, please. thx

I guess its the same problem with umbrel.

https://github.com/RooSoft/igniter/commit/3a998ff4cadacd04c58e82cae0db597442da5f9c

jgmontoya commented 2 years ago

docker exec -u lnshell -w /home/lnshell lightning-shell_web_1 /home/lnshell/.local/bin/charge-lnd --dry-run --config /data/charge.config

Something like this works for now maybe? charge-lnd for example. (Remove dry run if you are using this.)

This is working!! Thank you!

Ratzefummel4 commented 2 years ago

umbrel 0.5.1 unfortunately I have got this error:

`docker exec -u lnshell -w /home/lnshell lightning-shell_web_1 /mnt/data/umbrel/app-data/lightning-shell/data/lsh_exec_ni.sh suez

OCI runtime exec failed: exec failed: unable to start container process: exec: "/mnt/data/umbrel/app-data/lightning-shell/data/lsh_exec_ni.sh": stat /mnt/data/umbrel/app-data/lightning-shell/data/lsh_exec_ni.sh: no such file or directory: unknown`

Anybody know how it works with umbrel 0.5.1?

Ratzefummel4 commented 2 years ago

umbrel 0.5.1 OK, I figured out which command is needed to start a lightningshell Command in a ssh terminal, e.g. crontab. I'm starting rabalance-lnd, which runs as a docker container, in ssh terminal:

docker exec -u lnshell -w /home/lnshell lightning-shell_web_1 /home/lnshell/.local/bin/rebalance-lnd

You can also use it as a crontab for charge-lnd or rebalance-lnd etc.

You like this and it's usefull for you? Send some sats to:

my lightning address