Closed friedger closed 1 year ago
Hard to say based on these logs, i would first enable DEBUG logging in the stacks-blockchain by changing this to 1
in your .env file:
https://github.com/stacks-network/stacks-blockchain-docker/blob/master/sample.env#L34
the other options i'm thinking of here -
i would definitely try step 3 regardless, but also enable debug logging followed by a restart - and then let me know if anything else comes up in the logs.
Forgot to add - one other thing along step 2 above is check your disk usage. i've seen strange things when a host runs out of disk
~Hmm, nothing in the logs showing what the problem may be.~
~This node has been running for a few hours now based on this log entry: [33mstacks-blockchain |[0m DEBG [1661884895.689334] [src/chainstate/coordinator/mod.rs:733] [chains-coordinator] Bump blocks processed
~
~have the logs stalled again?~
Just saw your second logfile - this one looks much better than the previous, is the tip height progressing? you also mentioned something interesting that i think should be looked at a little more. if the laptop is going to sleep, i can see how the processes here would appear to stall - i'll have to try this myself, i've never let a machine sleep while a blockchain was running, but it could be what caused the behaviour you saw.
@wileyj Yes, this is the last entry from 10 minutes ago.
stacks-blockchain-api | {"in_microblock":true,"level":"info","message":"Transaction confirmed","stacks_height":48267,"timestamp":"2022-08-30T20:31:54.411Z","txid":"0xdcd666b979f792ccb56a07e6475951ccdf7ef36911f14c8e9e35574ff1a9b09a"}
stacks-blockchain-api | {"level":"http","message":"HTTP POST /new_block","req":{"headers":{"content-length":"39927","content-type":"application/json","host":"stacks-blockchain-api:3700"},"httpVersion":"1.1","method":"POST","originalUrl":"/new_block","query":{},"url":"/new_block"},"res":{"statusCode":200},"responseTime":5026,"timestamp":"2022-08-30T20:31:59.433Z"}
postgres |
postgres | PostgreSQL Database directory appears to contain a database; Skipping initialization
postgres |
postgres | 2022-08-30 20:29:05.350 UTC [1] LOG: starting PostgreSQL 14.5 on x86_64-pc-linux-musl, compiled by gcc (Alpine 11.2.1_git20220219) 11.2.1 20220219, 64-bit
postgres | 2022-08-30 20:29:05.350 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
postgres | 2022-08-30 20:29:05.350 UTC [1] LOG: listening on IPv6 address "::", port 5432
postgres | 2022-08-30 20:29:05.352 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
postgres | 2022-08-30 20:29:05.354 UTC [21] LOG: database system was shut down at 2022-08-30 20:28:57 UTC
postgres | 2022-08-30 20:29:05.356 UTC [1] LOG: database system is ready to accept connections
My main concern is how docker would handle suspending the computer (mainly the disk) while there were in progress DB writes in the blockchain. And also what would happen when the machine wakes up.
The only other times i've seen the blockchain stop progressing is either
This is a PR'ed bug in the stacks-blockchain fixed here: https://github.com/stacks-network/stacks-blockchain/pull/3236
I started syncing my node with a clean state. I stopped and started it twice.
Now, I don't see any progress anymore. There is no error in the logs. No new log entries for hours. What is happening.
The web server is not running.
It looks like the node can talk to my local bitcoin node.
Last two entries: