From a9b573f95144077ba75f3fe9faf306d24d7b81d3 Mon Sep 17 00:00:00 2001 From: spektr Date: Tue, 1 Dec 2026 20:02:09 +0100 Subject: [PATCH] =?UTF-8?q?GNAI-024:=20Befund=20o=20=E2=80=94=20litecoin-c?= =?UTF-8?q?li=20-stdin=20liest=20Rohzeilen=20(kein=20JSON);=20HowTo=20korr?= =?UTF-8?q?igiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -stdin-Args ohne Quotes (printf '%s\n').Fruehere Passphrase ist inkl. Quotes gespeichert -> einmalig auf raw rotieren. Bitpanda-M-Adresse (P2SH) validiert. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .../GNAI-024-HOWTO_Litecoin-Node-Bedienung.md | 18 +++++++++++++----- .../GNAI-024-PLAN_Litecoin-Wallet-LXC.md | 1 + 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-HOWTO_Litecoin-Node-Bedienung.md b/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-HOWTO_Litecoin-Node-Bedienung.md index 67af8fb..60ca86f 100644 --- a/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-HOWTO_Litecoin-Node-Bedienung.md +++ b/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-HOWTO_Litecoin-Node-Bedienung.md @@ -47,12 +47,15 @@ pct exec 114 -- sudo -u litecoin /opt/litecoin/bin/litecoin-cli -conf=/etc/litec ```bash CLI='pct exec 114 -- sudo -u litecoin /opt/litecoin/bin/litecoin-cli -conf=/etc/litecoin/litecoin.conf' -# 1) Wallet kurz öffnen (Passphrase + Timeout in Sekunden, als JSON-gequotete Zeilen) -printf '"%s"\n60\n' '' | $CLI -stdin walletpassphrase +# WICHTIG: litecoin-cli 0.21.5.8 liest -stdin als ROHZEILEN (kein JSON!) — +# Args ohne Anführungszeichen übergeben (Befund o). Ausnahme: eine Passphrase, +# die früher mit Quotes gespeichert wurde (s. u.). +# 1) Wallet kurz öffnen (Passphrase + Timeout in Sekunden, Rohzeilen) +printf '%s\n60\n' '' | $CLI -stdin walletpassphrase # 2) Gebühr schätzen (optional) $CLI estimatesmartfee 6 -# 3) Senden (Adresse + Betrag als JSON-Zeilen) -printf '"%s"\n%s\n' '' '' | $CLI -stdin sendtoaddress +# 3) Senden (Adresse + Betrag als Rohzeilen) +printf '%s\n%s\n' '' '' | $CLI -stdin sendtoaddress # 4) Sofort wieder sperren $CLI walletlock ``` @@ -60,11 +63,16 @@ $CLI walletlock ### 2.4 Passphrase ändern (Rotation) ```bash -printf '"%s"\n"%s"\n' '' '' | pct exec 114 -- sudo -u litecoin /opt/litecoin/bin/litecoin-cli -conf=/etc/litecoin/litecoin.conf -stdin walletpassphrasechange +printf '%s\n%s\n' '' '' | pct exec 114 -- sudo -u litecoin /opt/litecoin/bin/litecoin-cli -conf=/etc/litecoin/litecoin.conf -stdin walletpassphrasechange # danach: neues Passwort in Bitwarden speichern, altes löschen; Lock-Status prüfen: ssh -F ~/.ssh/config ghostnet-ct114-agent 'sudo /usr/local/bin/ltc-readonly getwalletinfo' # unlocked_until: 0 ``` +**Hinweis Passphrase (Befund o):** `-stdin` liest Rohzeilen. Wurde die Passphrase +früher mit `"..."` eingegeben, ist sie **inkl. Anführungszeichen** gespeichert — +dann einmalig rotieren: `printf '%s\n%s\n' '"ALT-mit-quotes"' 'NEU-ohne-quotes' | ... -stdin walletpassphrasechange`, +danach Bitwarden auf `NEU-ohne-quotes` aktualisieren und immer Rohzeilen nutzen. + ### 2.5 Manuelles Wallet-Backup + restic (normalerweise Timer täglich 03:00) ```bash diff --git a/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md b/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md index 1a710ac..4741ed6 100644 --- a/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md +++ b/docs/platform/proxmox-server/lxc/ct-114-litecoin-wallet/GNAI-024-PLAN_Litecoin-Wallet-LXC.md @@ -47,6 +47,7 @@ Backups, Secret-Regeln). | l) | Schätzung Chain ~60–90 GiB (2026-11-27). Live 2026-11-28: Platte voll bei 140/147 GiB, Node stoppte sauber („Disk space is too low!“). Chain bei Block 2,57 Mio bereits 132 GiB → real ~165 GiB am Tip. | **rootfs 150 → 300 GiB** (`pct resize 114 rootfs 300G` + `resize2fs` lief über pct automatisch), thin pool `pve/data` per `lvextend -l +100%FREE` auf 364,82 GiB (79 %). Backup-Lauf 03:00 fiel wegen Node-Down aus, manuell nachgeholt (restic: 2 Snapshots). Künftig: Pool-Füllstand im GNMON-Monitoring (Abschnitt 11), `thin_pool_autoextend_threshold` auf PVE lässt sich als Frühwarnung setzen. | | m) | 2026-11-28: NVMe-thin-pool `local-lvm` bei 80 % (CT 103/107/304 bereits bei 98–99 %), CT-114-rootfs nach Befund l auf 300 GiB — Kette wächst aber weiter (~165 GiB + ~20 GiB/Jahr). Leer stehendes 8-TB-Volume `daten4` (7,3 TiB SSD, btrfs, PVE-Storage mit `content rootdir,images`) vorhanden. | **rootfs nach `daten4` verschoben:** CT gestoppt, `pct move-volume 114 rootfs daten4` (148,8 GiB via rsync, exit 0), `pct resize 114 rootfs 2T`, alte LVs (`vm-114-disk-0` + 2 Snap-LVs) nach Verifikation per `lvremove` freigegeben → Pool `pve/data` von 79 % auf **39 %** gefallen. Snapshot-Support auf daten4 verifiziert (`pct snapshot`/`delsnapshot` getestet; Timer-Rolle `pve_lxc_snapshot` unverändert). CT bootet von daten4, Node synct weiter (Block 2.503.309/3.220.549), Wallet gelockt. Provisioning-Skript: `CONTAINER_STORAGE='daten4'`. | | n) | 2026-11-28: RAM (4 GiB) und Swap (1 GiB) des CT voll — litecoind RSS 3,8 GiB, Peak 3,9 GiB + ~1 GiB Swap während IBD (Ursache: `dbcache=2048` + UTXO-/Blockindex-Validierung; keine OOM-Kills, Node lief stabil). PVE-Host hat 22 GiB available. | **memory 4096 → 8192, swap 1024 → 2048** live via `pct set 114 -memory 8192 -swap 2048` (sofort wirksam, cgroup-Limit). danach 3,8 GiB RAM frei, 1 GiB Swap frei. Provisioning-Skript (var_ram/var_swap + Checks) und Doku aktualisiert. `dbcache=2048` bleibt während IBD (schnelle Validierung); nach Sync optional auf 1024 senken (Folgepunkt Abschnitt 11). | +| o) | 2026-12-01: `sendtoaddress` via `-stdin` mit JSON-gequoteten Args schlug fehl (-5 „Invalid Litecoin address: "MS8…"“). Live-Test am Node: litecoin-cli 0.21.5.8 liest `-stdin` als **Rohzeilen**, Quotes landen im Argument. | **Konsequenz:** alle `-stdin`-Args roh (`printf '%s\n…'`). Die früher mit `"%s"` gesetzte Wallet-Passphrase ist inkl. Quotes gespeichert — einmalig auf raw rotieren (HowTo §2.4), Bitwarden aktualisieren. HowTo §2.3/§2.4 korrigiert. Bitpanda-Einzahlungsadresse `MS8pbiT5…` ist valides P2SH (M-Präfix, `a914…`), vom Node per `getaddressinfo` bestätigt. | | j) | Debian 13, unprivileged, Key-Only-SSH, fail2ban, unattended-upgrades, dedizierter User `litecoin`. | Übernommen nach Repo-Muster: frischer CT per gepinntem Community-Scripts-`debian.sh` + Bootstrap-Hook (wie CT 102, GNAI-016 Phase D), dann Ansible (`litecoin_lxc_baseline`, `litecoin_access`, `litecoin_fail2ban`, …). `unattended-upgrades` auf Debian-Security eingeschränkt (CT-100/101/102-Konvention). | ## 3. Zielarchitektur