GNAI-024: Befund o — litecoin-cli -stdin liest Rohzeilen (kein JSON); HowTo korrigiert
ci-static / secret-scan (push) Successful in 20s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 22s
ci-static / secret-scan (pull_request) Successful in 21s
ci-static / yamllint (pull_request) Successful in 31s
ci-static / ansible-syntax (pull_request) Successful in 28s
ci-static / markdown-links (pull_request) Successful in 20s
ci-static / secret-scan (push) Successful in 20s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 22s
ci-static / secret-scan (pull_request) Successful in 21s
ci-static / yamllint (pull_request) Successful in 31s
ci-static / ansible-syntax (pull_request) Successful in 28s
ci-static / markdown-links (pull_request) Successful in 20s
-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 <vibe@mistral.ai>
This commit is contained in:
+13
-5
@@ -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' '<PASSPHRASE>' | $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' '<PASSPHRASE>' | $CLI -stdin walletpassphrase
|
||||
# 2) Gebühr schätzen (optional)
|
||||
$CLI estimatesmartfee 6
|
||||
# 3) Senden (Adresse + Betrag als JSON-Zeilen)
|
||||
printf '"%s"\n%s\n' '<ltc1-empfaenger>' '<betrag>' | $CLI -stdin sendtoaddress
|
||||
# 3) Senden (Adresse + Betrag als Rohzeilen)
|
||||
printf '%s\n%s\n' '<empfaenger-adresse>' '<betrag>' | $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' '<ALT>' '<NEU>' | pct exec 114 -- sudo -u litecoin /opt/litecoin/bin/litecoin-cli -conf=/etc/litecoin/litecoin.conf -stdin walletpassphrasechange
|
||||
printf '%s\n%s\n' '<ALT>' '<NEU>' | 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
|
||||
|
||||
+1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user