Bug: LOG file huge.
Describe the bug The LOG file grows every day 1GB and never rotate or deleted himself.
Here my electrs.conf file:
# RaspiBolt: electrs configuration
# /data/electrs/electrs.conf
# Bitcoin Core settings
network = "bitcoin"
daemon_dir= "/home/bitcoin/.bitcoin"
daemon_rpc_addr = "127.0.0.1:8332"
daemon_p2p_addr = "127.0.0.1:8333"
# Electrs settings
electrum_rpc_addr = "127.0.0.1:50001"
db_dir = "/data/electrs/db"
index_lookup_limit = 1000
# Logging
log_filters = "INFO"
timestamp = true
Electrs version Last build.
sudo journalctl -f -u electrs" -- Journal begins at Sat 2022-08-13 16:49:39 -05. -- Aug 16 13:04:23 RaspiBolt electrs[2759989]: [2022-08-16T18:04:23.878Z INFO electrs::electrum] your wallet uses less efficient method of querying electrs, consider contacting the developer of your wallet. Reason: blockchain.scripthash.get_history called for unsubscribed scripthash
System running electrs Raspibolt V3.0 Raspberry Pi 4 4GB
Is it the RocksDB log file (under /data/electrs/db/bitcoin/)?
If so, it should be rotated automatically: https://github.com/romanz/electrs/blob/dd021952ba7e268ff939fb4e87f1e5d7cfac5140/src/db.rs#L100
Yes the "LOG" is under default path. But the problem persist.
This write every time:
2022/08/30-20:50:24.220113 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [spending] Manual flush finished, status: OK
2022/08/30-20:50:24.238429 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1379] [config] Manual flush start.
2022/08/30-20:50:24.238457 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [config] Manual flush finished, status: OK
2022/08/30-20:50:24.238461 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1379] [headers] Manual flush start.
2022/08/30-20:50:24.238465 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [headers] Manual flush finished, status: OK
2022/08/30-20:50:24.238469 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1379] [txid] Manual flush start.
2022/08/30-20:50:24.238472 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [txid] Manual flush finished, status: OK
2022/08/30-20:50:24.238475 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1379] [funding] Manual flush start.
2022/08/30-20:50:24.238479 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [funding] Manual flush finished, status: OK
2022/08/30-20:50:24.238482 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1379] [spending] Manual flush start.
2022/08/30-20:50:24.238486 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [spending] Manual flush finished, status: OK
2022/08/30-20:50:24.262747 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1379] [config] Manual flush start.
2022/08/30-20:50:24.262775 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [config] Manual flush finished, status: OK
2022/08/30-20:50:24.262780 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1379] [headers] Manual flush start.
2022/08/30-20:50:24.262784 7f80f73040 [db/db_impl/db_impl_compaction_flush.cc:1389] [headers] Manual flush finished, status: OK
@fwittingham could you please check if the issue also reproduces on the #773 branch (bump-msrv)?