vulpemventures / nigiri

🍣 A delicious docker box for special Bitcoin, Lightning and Liquid cookings
https://nigiri.vulpem.com
MIT License
270 stars 44 forks source link

Cannot remove CLN files #178

Open gcomte opened 1 year ago

gcomte commented 1 year ago

When I run the command nigiri stop --delete on my Linux, I get the following error:

[nigiri] openfdat /home/{me}/.nigiri/volumes/lightningd/regtest: permission denied

The problem is that the regtest data is given access to root only:

$ sudo ls -lah ~/.nigiri/volumes/lightningd/
total 12K
drwxr-xr-x 3 {me} {me} 4.0K Apr 13 19:15 .
drwxr-xr-x 3 {me} {me} 4.0K Apr 13 19:15 ..
drwx------ 2 root root 4.0K Apr 13 19:15 regtest

I do not have the same issue with LND.

Why could that be? I see that LND has a user defined in the docker-compose.yml, which CLN does not. But other containers don't have that either (electrs for example).

casey-bowman commented 1 year ago

I have seen a similar issue. I'd like to delete my custom nigiri datadir and start fresh each time I test using regtest. The volumes/bitcoin/regtest similarly is owned by root.

casey-bowman commented 1 year ago

I see there is a comment in docker-compose.yml

# wildcard user 0:0 to avoid permission problems

tiero commented 1 year ago

Unfortunately, Blockstream is not very interested in maintaining a sane official CLN docker image that works nicely, and neither I do, cause there is very little support in anything they do. It took me 2 weeks of battle to integrate compared to LND, I still have nightmares.

I accept contributions 🙏