Facing error when running dbsync 13.0.4

I followed this procedure (DBSync - Guild Operators) to run dbsync (13.0.4) in my server.
at this steps:
cd $CNODE_HOME/scripts
./dbsync.sh -d

and I got the below error. Please advise me what should I do to fix

Migrations missing at runtime that were present at compilation time: [“migration-1-0000-20190730.sql”,“migration-1-0001-20190730.sql”,“migration-1-0002-20190912.sql”,“migration-1-0003-20200211.sql”,“migration-1-0004-20201026.sql”,“migration-1-0005-20210311.sql”,“migration-1-0006-20210531.sql”,“migration-1-0007-20210611.sql”,“migration-1-0008-20210727.sql”,“migration-1-0009-20210727.sql”,“migration-2-0001-20211003.sql”,“migration-2-0002-20211007.sql”,“migration-2-0003-20211013.sql”,“migration-2-0004-20211014.sql”,“migration-2-0005-20211018.sql”,“migration-3-0001-20190816.sql”,“migration-3-0002-20200521.sql”,“migration-3-0003-20200702.sql”,“migration-3-0004-20200810.sql”,“migration-3-0005-20210116.sql”,“migration-3-0006-20210116.sql”,“migration-3-0007-20211022.sql”,“migration-3-9999-20200728.sql”]
Migrations found at runtime that were missing at compilation time:
cardano-db-sync-extended: FatalError {fatalErrorMessage = “Inconsistent migrations found: \nMigrations missing at runtime that were present at compilation time: ["migration-1-0000-20190730.sql","migration-1-0001-20190730.sql","migration-1-0002-20190912.sql","migration-1-0003-20200211.sql","migration-1-0004-20201026.sql","migration-1-0005-20210311.sql","migration-1-0006-20210531.sql","migration-1-0007-20210611.sql","migration-1-0008-20210727.sql","migration-1-0009-20210727.sql","migration-2-0001-20211003.sql","migration-2-0002-20211007.sql","migration-2-0003-20211013.sql","migration-2-0004-20211014.sql","migration-2-0005-20211018.sql","migration-3-0001-20190816.sql","migration-3-0002-20200521.sql","migration-3-0003-20200702.sql","migration-3-0004-20200810.sql","migration-3-0005-20210116.sql","migration-3-0006-20210116.sql","migration-3-0007-20211022.sql","migration-3-9999-20200728.sql"]\nMigrations found at runtime that were missing at compilation time: ”}

Please use scripts from alpha branch for testnet (or koios-1.0.6m branch for mainnet)

1 Like

Yes, ./prereqs.sh -b alpha took me overcome the issue, however I have another one :slight_smile:

cardano-db-sync: SqlError {sqlState = “42P01”, sqlExecStatus = FatalError, sqlErrorMsg = “relation "block" does not exist”, sqlErrorDetail = “”, sqlErrorHint = “”}

Depends on order of things, given that you had error before, I’d recommend to ensure you checkout to right tag of dbsync again, recreatedb and then start dbsync (optionally also restore snapshot to save week worth of synching, using instructions on same page)

check the settings for grest.conf (schema)