question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: "Unable to fetch transaction" log spam on LN log when starting up Server

See original GitHub issue

What is your BTCPay version?

I’m running the latest version BTCPay Server v1.9.2+6193835ea.

How did you deploy BTCPay Server?

Docker installation

What happened?

After the upgrade to BTCPay Server v1.9.2+6193835ea, the LND log is filled with this errors:

2023-04-28 20:03:59.331 [ERR] LNWL: unable to fetch transaction xxxxxxxxxxx for mempool: -5: No such mempool transaction. Use -txindex or provide a block hash to enable blockchain transaction queries. Use gettransaction for wallet transactions.

Hundreds of them.

When the node is finished starting up, RPC is up and running, then the error ceases for a while, but then resumes with less TX’s ( currently 5).

I’m running the server with a Pruned node.

Is this normal behavior, and if so, why? May this be because my LN opening channel TX’s are old enough to have fallen outside of the blockchain window set in the PRUNE window?

How did you encounter this bug?

Checked Logs

Relevant log output

2023-04-28 20:14:53.258 [ERR] LNWL: unable to fetch transaction xxxxxxxxxxxx from mempool: -5: No such mempool transaction. Use -txindex or provide a block hash to enable blockchain transaction queries. Use gettransaction for wallet transactions.

What browser do you use?

Any

Additional information

N/a

Are you sure this is a bug report?

  • I confirm this is a bug report

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
pavlenexcommented, May 1, 2023

I believe this one got resolved after we bumped to lnd 0.16.2-beta if not, let us know and we will re-open. Thanks for reporting.

0reactions
Goro2030commented, May 1, 2023

It is not fully resolved, but the log spam went from hundreds of “unable to fetch transaction” errors, which was trashing the disk, to 4 log entries. So I can call this solved!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"LNWL: unable to fetch transaction" error after upgrading ...
Not sure, I just built and restarted lnd . Expected behaviour. lnd shoud start successfully without spamming logs with [ERR] . Actual behaviour....
Read more >
Troubleshoot a Full Transaction Log (SQL Server Error 9002)
Common reasons for a full transaction log · Log not being truncated · Disk volume is full · Log size is set to...
Read more >
How do you clear the SQL Server transaction log?
Back up the log with TRUNCATE_ONLY option and then SHRINKFILE . · Detach the database, delete the log file, and re-attach. · Use...
Read more >
How to fix a messed up replication on MS SQL Server
How to completely get rid of replication subscriptions? 2 · Replication fails with "Transaction log for database is full due to LOG_BACKUP" ·...
Read more >
Automate Monitoring SQL Server Error Logs with Email Alerts
Transaction log being full causing a database backup failure · An error such as SQL Server has encountered x number of occurrence(s) of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found