-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
admin.macaroon is not created when running lnd #1190
Comments
if lnd is running with -no-macaroons, you don’t need to specify the macaroon |
It is no longer running with -no-macaroons, I just said that everything worked for me before without macaroons, I'm trying to get it to work with them now. |
If you run lnd in macaroon mode it automatically generates the macaroon in the default location. Move the macaroon file to your folder you are specifying |
Is that the |
When I try to use macaroons.db as admin.macaroon I get
So admin.macaroon must be something else. But I'm not seeing that on disk anywhere (looked in |
It seems that just running lnd with no parameters creates the macaroons.db file, but contrary to the documentation it does not create an admin.macaroon file. |
The admin.macaroon is only created after you run |
But doesn't |
When I do "lncli --rpcserver=localhost:10001 --macaroonpath=data/admin.macaroon create" no admin.macaroon file is created. Like the OP I have been able to do the tutorial with --no-macaroons on but when I try to complete the tutorial with macaroons, I have serious problem with no admin.macaroon file existing. |
echoing this issue, I followed the same path of creating the macaroon, my network is testnet stipulated in lnd.conf as:
created the macaroon with: I have to say that on my first run going through simnet with the alice/bob/charlie demo it did not work until I passed the |
@autemox @ereztdev the network parameter needs to be passed like @autemox you shouldn’t have to pass a macaroon to |
Ok @cfromknecht, your right, yet it would be wise to return a path created since the call is: |
@ereztdev |
I think the confusion here stems from two things:
I submitted a PR for the fix. |
Try to do |
sir, I met the same problem as you. Have you solved this problem yet? Could you please help me? Thank you very much! |
Found mine at ~/.lnd/data/chain/bitcoin/mainnet/admin.macaroon |
Background
I successfully completed stage 1 of the tutorial using
--no-macaroons
.Now I'm trying to learn how to use macaroons.
The tutorial does not explain how to create the
admin.macaroon
file.When I run lnd, it waits for the either
lncli create
orlncli unlock
. Noadmin.macaroon
file can be found anywhere on disk at this point.These commands (
lncli
) however seem to require the existence of anadmin.macaroon
file.Tried to
touch
it and then I got[lncli] empty macaroon data
So, how do I create an initial macaroon file?
Your environment
The text was updated successfully, but these errors were encountered: