Closed habibitcoin closed 1 month ago
What if you try to remove the universe.tiramisuwallet.com
universe server? It looks like it was unable to do a DNS query somewhere there. Ofc, that should be updated to be more robust there.
@Roasbeef so I ran tapd independently, then was able to remove universe.tiramisuwallet.com
Not sure if this log line is relevant/interesting btw from the tapd independent client:
2024-08-06 14:53:31.941 [INF] RPCS: RPC server listening on 127.0.0.1:10029
2024-08-06 14:53:31.941 [ERR] TCHN: Error setting up invoice acceptor: rpc error: code = Unimplemented desc = unknown method HtlcModifier for service invoicesrpc.Invoices
2024-08-06 14:53:31.946 [INF] CONF: Starting HTTPS REST proxy listener at 127.0.0.1:8089
2024-08-06 14:53:31.946 [INF] RPCS: gRPC proxy started at 127.0.0.1:8089
2024-08-06 14:53:31.946 [INF] TSVR: Taproot Asset Daemon fully active!
But anyhow, tapcli independently worked to remove the universe:
lightning-terminal-darwin-amd64-v0.13.3-alpha % ./tapcli --network=mainnet universe federation list
{
"servers": [
{
"host": "universe.lightning.finance:10029",
"id": 1
}
]
}
... but no change in behavior. Still connection refused once I switch to ./litd
I can see the ports being binded for everything else:
litd 50602 MyPC 11u IPv4 0x7457ba98fb016980 0t0 TCP 127.0.0.1:8443 (LISTEN)
litd 50602 MyPC 15u IPv4 0x82614e49935ba30d 0t0 TCP 127.0.0.1:10009 (LISTEN)
litd 50602 MyPC 76u IPv4 0x20680d9c065c45ab 0t0 TCP 127.0.0.1:8080 (LISTEN)
litd 50602 MyPC 94u IPv6 0x6ee75acd9b95431 0t0 TCP *:9735 (LISTEN)
What version of lnd
are you running against?
Are you able to get a goroutine profile? For both the case with standalone lnd
and with litd
?
@Roasbeef
./lncli getinfo
{
"version": "0.18.2-beta commit=lightning-terminal-v0.13.3-alpha",
"commit_hash": "00b2f7ece37f0564a95e84a9da6cd6f2310f14ef",
Whats the easiest way to profile? I think I'll need to build the binary myself in that case if I'm not mistaken. Was having some issues with the build earlier so just downloaded the binary. But can give that another try since I want to try the taproot channels too
To profile you just need to set the --profile
flag for lnd
: --lnd.profile=PORT
when running in integrated mode: https://github.com/lightningnetwork/lnd/blob/master/docs/debugging_lnd.md#capturing-pprof-data-with-lnd
If you visit the localhost link, then you can view the goroutine dump, which we want here to see what's holding up start up.
Useful docs on diagnostic tools for Go programs generally: https://go.dev/doc/diagnostics
@habibitcoin I think your config might actually be the problem.
Try to remove this section:
taproot-assets.lnd.host=localhost:10009
taproot-assets.lnd.macaroonpath=[redacted]/bitcoin/mainnet/admin.macaroon
taproot-assets.lnd.tlspath=[redacted]/tls.cert
In integrated mode, an in memory buffer socket is used rather than the normal TCP based connection.
@Roasbeef seemed hopeful, but no luck there. Here is the goroutine profile: https://gist.github.com/habibitcoin/90c2a4754b52853130f5aef9bd85e3d6
@habibitcoin did you also make the config changes?
Can you post your config after the changes?
EDIT: you should also remove the other RPC related settings for tapd
as well. When running with litd
a single listening port handles multi-plexing with all the daemons.
So you can get rid of these too:
taproot-assets.rpclisten=localhost:10029
taproot-assets.restlisten=localhost:8089
In that latest profile, all the tapd
related goroutines look fine.
Also when you profile again, can you visit the localhost URL then paste that output? It's a bit more detailed.
Are you sure there's no actual [ERR]
message in the log with the cause? Could you paste the full log of a fresh startup please?
Ayyy we got it lol
Was a misunderstanding/misconfiguration when using ./tapcli. Did not realize the rpc port was now shared + needed to use the same certificate location that is shown in ./lncli help
#./lncli help
[..]
GLOBAL OPTIONS:
--rpcserver value The host:port of LN daemon. (default: "localhost:10009") [$LNCLI_RPCSERVER]
[..]
--tlscertpath value The path to lnd's TLS certificate. (default: "/use/this/path/Lnd/tls.cert") [$LNCLI_TLSCERTPATH]
[..]
And then ./tapcli --network=mainnet --rpcserver=localhost:10009 --tlscertpath /use/this/path/Lnd/tls.cert getinfo
worked!
When running both lnd and tapd in integrated mode, it seems that the tapd RPC refuses to start, and the tapcli refuses to connect. lncli however works just fine, as well as litcli.
weirdly it looks like it starts fine:
We see some later activity as well once litd has been running for a bit of time, although with some kinda connection error:
Meanwhile tapcli is returning this error (lncli working just fine for getinfo):
And then when litd is terminated, I do see an odd error message about tapd refusing to start:
When I run tapd daemon independently and call tapcli it works just fine. Configs are the same for Tapd.conf and Litd.conf.
Expected behavior
tapcli getinfo to respond
Actual behavior
Described above
To reproduce
Every time I restart
System information
lightning-terminal-darwin-amd64-v0.13.3-alpha
taproot-assets.network=mainnet taproot-assets.debuglevel=debug taproot-assets.lnd.host=localhost:10009 taproot-assets.lnd.macaroonpath=[redacted]/bitcoin/mainnet/admin.macaroon taproot-assets.lnd.tlspath=[redacted]/tls.cert taproot-assets.rpclisten=localhost:10029 taproot-assets.restlisten=localhost:8089 taproot-assets.tlsautorefresh=true