ElementsProject / ElementsProject/lightning
BROKEN plugin-autoclean: Plugin marked as important, shutting down lightningd!
- Dominant language
- C
- Stars
- 3.1k
- Forks
- 1k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 13
Description
### Issue and Steps to Reproduce
- never ran autoclean in the past
- lightning.sqlite3 is 6.7 GB
- node has routed 230k transactions
I am getting the following error when running autoclean-once with subcommands succeedforwards, failedforwards, or failedpays:
```
marius@mlbb2:~$ lightning-cli autoclean-once succeededforwards 86400
{
"code": -4,
"message": "Plugin terminated before replying to RPC call."
}
```
I can autoclean expiredinvoices without an issue:
```
lightning@mlbb2:~$ lc autoclean-once expiredinvoices 86400
{
"autoclean": {
"expiredinvoices": {
"cleaned": 0,
"uncleaned": 1745
}
}
}
```
When I run have cln run autoclean (instead of running autoclean-once manually) then it will take lightningd down with the following log entries:
```
2024-04-23T06:55:44.528Z INFO plugin-autoclean: Killing plugin: exited during normal operation
2024-04-23T06:55:44.528Z **BROKEN** plugin-autoclean: Plugin marked as important, shutting down lightningd!
2024-04-23T06:55:44.528Z DEBUG lightningd: io_break: lightningd_exit
2024-04-23T06:55:44.528Z DEBUG lightningd: io_loop_with_timers: main
2024-04-23T06:55:44.528Z DEBUG plugin-clnrest.py: Notification: {'warning': {'level': 'error', 'time': '1713855344.528043086', 'timestamp': '2024-04-23T06:55:44.528Z', 'source': 'plugin-autoclean', 'log': 'Plugin marked as important, shutting down lightningd!'}}
2024-04-23T06:55:44.528Z DEBUG connectd: REPLY WIRE_CONNECTD_START_SHUTDOWN_REPLY with 0 fds
2024-04-23T06:55:44.528Z DEBUG lightningd: io_break: connectd_start_shutdown_reply
```
The relevant portion of the config files is:
```
autoclean-cycle=14400
autoclean-failedforwards-age=86400
autoclean-failedpays-age=86400
autoclean-expiredinvoices-age=2600000
autoclean-succeededforwards-age=5184000
```
### `getinfo` output
```
lightning@mlbb2:~$ lci
{
"id": "02d695b01c7a6909e716c863fb39bc5fb7bbdc3824b7fdce53adc593e5be080e73",
"alias": "MindlinerTre",
"color": "fec89a",
"num_peers": 221,
"num_pending_channels": 3,
"num_active_channels": 196,
"num_inactive_channels": 12,
"address": [
{
"type": "ipv4",
"address": "62.12.168.100",
"port": 9735
}
],
"binding": [
{
"type": "ipv4",
"address": "0.0.0.0",
"port": 9735
}
],
"version": "v24.02",
"blockheight": 840614,
"network": "bitcoin",
"fees_collected_msat": xxxxx,
"lightning-dir": "/home/lightning/.lightning/bitcoin",
"our_features": {
"init": "080000000000000200000000000008aa882a8a5961",
"node": "080000000000000200000000000088aa882a8a5961",
"channel": "",
"invoice": "02000022024100"
}
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.