Skip to content

admin.macaroon is not created when running lnd #1190

Closed
@ripper234

Description

@ripper234

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 or lncli unlock. No admin.macaroon file can be found anywhere on disk at this point.

These commands (lncli) however seem to require the existence of an admin.macaroon file.

>lncli --rpcserver=localhost:10001 --macaroonpath=C:\work\lnd\alice\data\admin.macroon getinfo
[lncli] open C:\work\lnd\alice\data\admin.macroon: The system cannot find the file specified.

Tried to touch it and then I got

[lncli] empty macaroon data

So, how do I create an initial macaroon file?

Your environment

  • lnd version 0.4.1-beta commit=097fd50747356a39593e5ac7625bf0b0fb1305a1
  • Windows 10
  • btcd compiled from source today from roasbeef branch commit a03db407e40d3b66ea29984263bbc8bf4d2f04c4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions