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

Cannot remove CLN files #178

Open
gcomte opened this issue Apr 13, 2023 · 3 comments
Open

Cannot remove CLN files #178

gcomte opened this issue Apr 13, 2023 · 3 comments

Comments

@gcomte
Copy link

gcomte commented Apr 13, 2023

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

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

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

# wildcard user 0:0 to avoid permission problems

@tiero
Copy link
Member

tiero commented Oct 18, 2023

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 🙏

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