Ich benötige hilfe zu Fullnode auf Wind. Bitccoind/Bitcoin-cli

Hallo. Ich benötige Hilfe beim erfolgreichen Betreiben einer Fullnode über mein Windows Laptop.
Ich möchte hauptsächlich mit bitcoind (daemon) und über bitcoin-cli arbeiten.
Hier mein Problem:
Ich kann über bitcoin-cli nicht auf bitcoind zugreifen. Die Node läuft, wenn ich sie starte und empfängt auch Blöcke.

Hier eine Paar Eckdaten:
Windows, externe SSD 1TB, Bitcoin Core 27.0.0 (von Bitcoincore.org.)
Chat-GPT 4o konnte mir schon bei der bitcoin.conf datei Helfen, dass die Node auf den Datensatz meiner ex. SSD zugreift und nicht alles wieder von vorne in %APPDATA%\Bitcoin herunter lädt.

Wenn ich jetzt über cmd eingebe, „bitcoin-cli getblockcount“ kommt das diese Meldung:
error: timeout on transient error: Could not connect to the server 127.0.0.1:8332 (error code 1 - „EOF reached“)

Make sure the bitcoind server is running and that you are connecting to the correct RPC port.

Meine bitcoin.conf datei hat aber meiner Meinung nach alle wichtigen Konfigurationen.
Meine bitcoin.confi sieht so aus:

Datenverzeichnis für die Blockchain-Daten

datadir=D:\

Aktiviert die Transaktionsindexierung (erforderlich für Ordinals)

txindex=0

Aktiviert den RPC-Server, um RPC-Anfragen zu akzeptieren

server=1

Benutzername und Passwort für den RPC-Zugriff (lege einen Benutzernamen und ein sicheres Passwort fest)

rpcuser=[zeige ich nicht]
rpcpassword=[zeige ich nicht]

Erlaubt nur Verbindungen von localhost (127.0.0.1)

rpcallowip=127.0.0.1:8332

Aktiviert die REST-Schnittstelle

#habe ich weggelassen

Der Standard-Bitcoin-Port ist 8333, du kannst ihn ändern, wenn notwendig

#habe ich weggelassen

Was ist noch zu beachten?
Soll ich bitcoin 27.0.0 wegschmeißen und noch mal neu herunter laden?
Kann mir jemand helfen?

Vielen Dank schonmal.

Ich habe erst an einen ggf. durch Firewall inbound geblockten Port gedacht, als ich Windows las, aber der localhost 127.0.0.1 wird ja immer zulassen, oder?

Ich hatte mal bei nem Raspberry das Problem, dass er auf Grund des Festplattenformats nicht die angesteckte Festplatte korrekt genutzt hatte. Nach Formatierung auf entsprechendes ext (dass das Linux-OS unterstützt) hatte es dann funktioniert.

  • Kann Windows auf deine Platte sonst schreibend zugreifen.?
1 „Gefällt mir“

Kannst es mal mit bitcoin-cli --datadir=D:\ versuchen.

Da kommt das:
error: too few parameters (need at least command)

Ich nehme an, das ist ein Ersatz cmd von
C:\Users{Name]>
auf
D:>
umzustellen.

Was meinst du damit?
Welche Platte?
Windows schreibt alle Daten von Bitcoin auf meine externe 1TB SSD (D:)

Musst natürlich noch ein Commando angegeben z. Bs.p.

bitcoin-cli --datadir=D:\  -getinfo

oder

bitcoin-cli  --datadir=D:\  getblockcount

Funktioniert auch nicht.

Wo liegt den die bitcoin.conf und die Verzeichnisse blocks, indexes?
Bei mir habe ich in der bitcoin.conf noch
listen=1
stehen.

Bei mir sieht z. Bsp.
rpcallowip=192.168.1.0/24
so aus. Port sollte da nicht angegeben werden. Ein Eintrag von rpcallowip ist bei deiner Konfiguration eh nicht notwendig.

Läuft denn überhaupt etwas unter dem Port?

CMD: netstat -ano | findstr :8332

Ort von bitcoin.conf:
C:\Users\Computer\AppData\Roaming\Bitcoin
Ort von block, indexes:
D:

Stoppe und starte bitcoind nochmal und zeige dann mal die letzten Einträge aus debug.log.
Auch mal rpcallowip rausnehmen.

Ne da kommt nichts. Nur wenn ich Port 8333 eingebe.

rpcallowip rausnehmen bevor ich bitcoind gestartet habe und dir die Einträge aus debug.log zeige?

korrekt, Die Einträge nach dem letzten starten reichen.

Möchtest du debug.log auch sehen mit rpcallowip in der Konfigurationsdatei?
Oder bringt das nichts?

Da der Eintrag meiner Meinung nach falsch ist, ist der debug.log mit rpcallowaip nicht notwendig.

Als reinen Text hier schicken?

2024-09-20T12:32:16Z Bitcoin Core version v27.1.0 (release build)
2024-09-20T12:32:16Z Script verification uses 3 additional threads
2024-09-20T12:32:16Z Using the ‚x86_shani(1way,2way)‘ SHA256 implementation
2024-09-20T12:32:16Z Using RdSeed as an additional entropy source
2024-09-20T12:32:16Z Using RdRand as an additional entropy source
2024-09-20T12:32:16Z Default data directory C:\Users\Valentincomputer\AppData\Roaming\Bitcoin
2024-09-20T12:32:16Z Using data directory D:
2024-09-20T12:32:16Z Config file: C:\Users\Valentincomputer\AppData\Roaming\Bitcoin\bitcoin.conf
2024-09-20T12:32:16Z Config file arg: datadir=„D:\“
2024-09-20T12:32:16Z Config file arg: rpcpassword=****
2024-09-20T12:32:16Z Config file arg: rpcuser=****
2024-09-20T12:32:16Z Config file arg: server=„1“
2024-09-20T12:32:16Z Config file arg: txindex=„0“
2024-09-20T12:32:16Z Setting file arg: server = false
2024-09-20T12:32:16Z Using at most 125 automatic connections (2048 file descriptors available)
2024-09-20T12:32:16Z Using 16 MiB out of 16 MiB requested for signature cache, able to store 524288 elements
2024-09-20T12:32:16Z Using 16 MiB out of 16 MiB requested for script execution cache, able to store 524288 elements
2024-09-20T12:32:16Z scheduler thread start
2024-09-20T12:32:16Z Using wallet directory D:
2024-09-20T12:32:16Z init message: Verifying wallet(s)…
2024-09-20T12:32:16Z Using /16 prefix for IP bucketing
2024-09-20T12:32:16Z init message: Loading P2P addresses…
2024-09-20T12:32:16Z Loaded 54422 addresses from peers.dat 163ms
2024-09-20T12:32:16Z init message: Loading banlist…
2024-09-20T12:32:16Z SetNetworkActive: true
2024-09-20T12:32:16Z Script verification uses 3 additional threads
2024-09-20T12:32:16Z Cache configuration:
2024-09-20T12:32:16Z * Using 2.0 MiB for block index database
2024-09-20T12:32:16Z * Using 8.0 MiB for chain state database
2024-09-20T12:32:16Z * Using 440.0 MiB for in-memory UTXO set (plus up to 286.1 MiB of unused mempool space)
2024-09-20T12:32:16Z init message: Loading block index…
2024-09-20T12:32:16Z Assuming ancestors of block 000000000000000000026811d149d4d261995ec5b3f64f439a0a10e1a464af9a have valid signatures.
2024-09-20T12:32:16Z Setting nMinimumChainWork=000000000000000000000000000000000000000063c4ebd298db40af57541800
2024-09-20T12:32:16Z Opening LevelDB in D:\blocks\index
2024-09-20T12:32:16Z Opened LevelDB successfully
2024-09-20T12:32:16Z Using obfuscation key for D:\blocks\index: 0000000000000000
2024-09-20T12:32:20Z LoadBlockIndexDB: last block file = 4508
2024-09-20T12:32:20Z LoadBlockIndexDB: last block file info: CBlockFileInfo(blocks=24, size=40960170, heights=862094…862117, time=2024-09-20…2024-09-20)
2024-09-20T12:32:20Z Checking all blk files are present…
2024-09-20T12:33:15Z Initializing chainstate Chainstate [ibd] @ height -1 (null)
2024-09-20T12:33:15Z Opening LevelDB in D:\chainstate
2024-09-20T12:33:15Z Opened LevelDB successfully
2024-09-20T12:33:15Z Using obfuscation key for D:\chainstate: 3e8fc9f55e449ee7
2024-09-20T12:33:15Z Loaded best chain: hashBestChain=0000000000000000000260b5a018e306190252a7c15fe6be4d05e3e00c8fb2d1 height=862117 date=2024-09-20T12:12:05Z progress=0.999992
2024-09-20T12:33:15Z Opening LevelDB in D:\chainstate
2024-09-20T12:33:15Z Opened LevelDB successfully
2024-09-20T12:33:15Z Using obfuscation key for D:\chainstate: 3e8fc9f55e449ee7
2024-09-20T12:33:15Z [Chainstate [ibd] @ height 862117 (0000000000000000000260b5a018e306190252a7c15fe6be4d05e3e00c8fb2d1)] resized coinsdb cache to 8.0 MiB
2024-09-20T12:33:15Z [Chainstate [ibd] @ height 862117 (0000000000000000000260b5a018e306190252a7c15fe6be4d05e3e00c8fb2d1)] resized coinstip cache to 440.0 MiB
2024-09-20T12:33:15Z init message: Verifying blocks…
2024-09-20T12:33:15Z Verifying last 6 blocks at level 3
2024-09-20T12:33:15Z Verification progress: 0%
2024-09-20T12:33:28Z Verification progress: 16%
2024-09-20T12:33:34Z Verification progress: 33%
2024-09-20T12:33:40Z Verification progress: 50%
2024-09-20T12:33:47Z Verification progress: 66%
2024-09-20T12:33:51Z Verification progress: 83%
2024-09-20T12:33:56Z Verification progress: 99%
2024-09-20T12:33:56Z Verification: No coin database inconsistencies in last 6 blocks (16368 transactions)
2024-09-20T12:33:56Z block index 99338ms
2024-09-20T12:33:56Z Setting NODE_NETWORK on non-prune mode
2024-09-20T12:33:56Z block tree size = 862118
2024-09-20T12:33:56Z nBestHeight = 862117
2024-09-20T12:33:56Z initload thread start
2024-09-20T12:33:56Z torcontrol thread start
2024-09-20T12:33:56Z Bound to 127.0.0.1:8334
2024-09-20T12:33:56Z Bound to [::]:8333
2024-09-20T12:33:56Z Bound to 0.0.0.0:8333
2024-09-20T12:33:56Z Loading 23746 mempool transactions from disk…
2024-09-20T12:33:56Z Loaded 2 addresses from „anchors.dat“
2024-09-20T12:33:56Z Leaving InitialBlockDownload (latching to false)
2024-09-20T12:33:56Z 2 block-relay-only anchors will be tried for connections.
2024-09-20T12:33:56Z init message: Starting network threads…
2024-09-20T12:33:56Z net thread start
2024-09-20T12:33:56Z addcon thread start
2024-09-20T12:33:56Z dnsseed thread start
2024-09-20T12:33:56Z Waiting 300 seconds before querying DNS seeds.
2024-09-20T12:33:56Z opencon thread start
2024-09-20T12:33:56Z msghand thread start
2024-09-20T12:33:56Z init message: Done loading
2024-09-20T12:33:56Z New block-relay-only v2 peer connected: version: 70016, blocks=862117, peer=0
2024-09-20T12:33:58Z New block-relay-only v1 peer connected: version: 70016, blocks=862117, peer=2
2024-09-20T12:33:58Z New outbound-full-relay v1 peer connected: version: 70016, blocks=862117, peer=3
2024-09-20T12:34:05Z New outbound-full-relay v1 peer connected: version: 70016, blocks=862117, peer=4
2024-09-20T12:34:06Z New outbound-full-relay v2 peer connected: version: 70016, blocks=862117, peer=5
2024-09-20T12:34:07Z P2P peers available. Skipped DNS seeding.
2024-09-20T12:34:07Z dnsseed thread exit
2024-09-20T12:34:08Z New outbound-full-relay v1 peer connected: version: 70016, blocks=862117, peer=7
2024-09-20T12:34:26Z Progress loading mempool transactions from disk: 10% (tried 2375, 21371 remaining)
2024-09-20T12:34:41Z New outbound-full-relay v1 peer connected: version: 70015, blocks=862117, peer=9
2024-09-20T12:34:42Z New outbound-full-relay v1 peer connected: version: 70016, blocks=862117, peer=10
2024-09-20T12:34:43Z New outbound-full-relay v1 peer connected: version: 70015, blocks=862117, peer=11
2024-09-20T12:34:45Z New outbound-full-relay v1 peer connected: version: 70015, blocks=862117, peer=12
2024-09-20T12:35:07Z New outbound-full-relay v1 peer connected: version: 70015, blocks=862117, peer=13
2024-09-20T12:35:09Z New outbound-full-relay v1 peer connected: version: 70016, blocks=862117, peer=14
2024-09-20T12:35:17Z Progress loading mempool transactions from disk: 20% (tried 4750, 18996 remaining)
2024-09-20T12:35:25Z Progress loading mempool transactions from disk: 30% (tried 7124, 16622 remaining)
2024-09-20T12:35:29Z Progress loading mempool transactions from disk: 40% (tried 9499, 14247 remaining)
2024-09-20T12:35:29Z Progress loading mempool transactions from disk: 50% (tried 11873, 11873 remaining)
2024-09-20T12:35:29Z Progress loading mempool transactions from disk: 60% (tried 14248, 9498 remaining)
2024-09-20T12:35:29Z Progress loading mempool transactions from disk: 70% (tried 16623, 7123 remaining)
2024-09-20T12:35:30Z Progress loading mempool transactions from disk: 80% (tried 18997, 4749 remaining)
2024-09-20T12:35:30Z Progress loading mempool transactions from disk: 90% (tried 21372, 2374 remaining)
2024-09-20T12:35:31Z Imported mempool transactions from disk: 23732 succeeded, 0 failed, 0 expired, 14 already there, 0 waiting for initial broadcast
2024-09-20T12:35:31Z initload thread exit
2024-09-20T12:38:19Z New block-relay-only v1 peer connected: version: 70016, blocks=862117, peer=15

Nicht wundern bei der Zeitangabe. Geht irgendwie 2 Stunden nach.

Hab hier geschickt.