From 540f17abc8a271f6264f86e6dee980a755848343 Mon Sep 17 00:00:00 2001 From: Nathan Fretz Date: Mon, 23 Nov 2026 10:38:27 +1000 Subject: [PATCH] Fix bitcoin i2pd destinations directory growth --- bitcoin/hooks/pre-start | 15 +++++++++++++++ bitcoin/umbrel-app.yml | 8 +++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/bitcoin/hooks/pre-start b/bitcoin/hooks/pre-start index cfc4714bf..da0899bbb 100755 --- a/bitcoin/hooks/pre-start +++ b/bitcoin/hooks/pre-start @@ -4,6 +4,21 @@ APP_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")/..")" DATA_ROOT="${APP_DATA_ROOT:-${APP_DIR}/data}" DESIRED_OWNER="1000:1000" +# Why we clear i2pd's destinations/ directory on every start: +# - By default this app runs Bitcoin Core with i2pacceptincoming=0, so Core opens a new +# throwaway (TRANSIENT) SAM session for each outbound I2P connection. +# - i2pd treats every SAM session as public and saves its encryption keys to +# destinations/
..dat. A throwaway session has a new random address, +# so its file is never read again, and i2pd never deletes these files. +# - On one long-running node this reached ~134k files and hit ext4's directory index limit. +# - There is no i2pd option to turn this off, and i2pd 3.0.0.1 has the same code, so an +# update won't fix it. The proper fix is upstream in i2pd (related request: +# https://github.com/PurpleI2P/i2pd/issues/1024). +# Removing the whole directory (not just its files) also resets ext4's index, which never +# shrinks. i2pd recreates it empty. The node's I2P address is unaffected: Bitcoin Core +# keeps its own key in i2p_private_key, and i2pd just generates fresh encryption keys. +rm -rf "${APP_DIR:?}/data/i2pd/destinations" || true + set_correct_permissions() { local -r path="${1}" diff --git a/bitcoin/umbrel-app.yml b/bitcoin/umbrel-app.yml index 9f7c3c6f7..92a4007e4 100644 --- a/bitcoin/umbrel-app.yml +++ b/bitcoin/umbrel-app.yml @@ -4,7 +4,7 @@ storage: dataRoot: data category: bitcoin name: Bitcoin Node -version: "1.5.0" +version: "1.5.0-patch.1" tagline: Run your personal node powered by Bitcoin Core description: >- Run your Bitcoin node, powered by Bitcoin Core. Independently store and validate every Bitcoin transaction. @@ -38,6 +38,12 @@ gallery: path: "" defaultPassword: "" releaseNotes: >- + This update fixes a buildup of temporary I2P files that could grow without limit on long-running nodes and eventually cause disk errors. They are now cleared each time the app starts. Your node's I2P address doesn't change. + + + Previous Bitcoin Node 1.5.0 release notes: + + This update adds Bitcoin Core v32.1, v31.2, v30.4, and v29.5, which fix security vulnerabilities that Bitcoin Core disclosed on October 28, 2026.