I've restored a recent db-sync snapshot (I am running node 8.1.2). The restore was successful; I can run SQL queries against the default cexplorer
database. However, there seems to be an issue when I begin running db-sync to sync the rest of the way.
For context, I am using the Guild Operator's scripts (.dbsync.sh -d
); the systemd service deploys successfully, but after several hours the (restored) database still appears not to be syncing, as evidenced when I run:
cexplorer=# select now () - max (time) as behind_by from block ;
behind_by
------------------------
5 days 22:44:28.094372
(1 row)
And after several minutes:
cexplorer=# select now () - max (time) as behind_by from block ;
behind_by
------------------------
5 days 22:58:38.184134
(1 row)
The behind_by
value keeps increasing, so I assume the databse is not syncing.
Here are the log message(s) after running tail -10f $CNODE_HOME/logs/dbsync.json
:
{"app":[],"at":"2023-09-13T20:45:54.69Z","data":{"kind":"LogMessage","message":"Handling input offset 22100000"},"env":"<unknown>:00000","host":"","loc":null,"msg":"","ns":["db-sync-node"],"pid":"918006","sev":"Info","thread":"6"}
Any ideas what could be wrong or what the log message means?
node
anddb-sync
.node
and the logs fordb-sync
. One or the other should have the proper cause. I am not familiar with the Guild operator scripts so I am not sure where the log files are. Probably in$CNODE_HOME