Closed simonzg closed 9 months ago
it looks like your synchronizer is not running.
if you docker compose ps -a | grep "Exited", you should see the synchronizer exited unexpectedly.
could you check its logs?
Yes exactly the zkevm-sync
was exited
the last few lines of zkevm-sync's log looks like this:
nizer Data:[] Json:<nil>} {"pid": 1, "version": "v0.0.3-RC2"}
2024-01-19T22:51:37.788Z INFO cmd/run.go:274 running migrations for zkevm-pool-db {"pid": 1, "version": "v0.0.3-RC2"}
2024-01-19T22:51:37.788Z INFO db/db.go:47 running migrations up {"pid": 1, "version": "v0.0.3-RC2"}
2024-01-19T22:51:37.874Z FATAL cmd/run.go:277 ERROR: duplicate key value violates unique constraint "pg_type_typname_nsp_index" (SQLSTATE 23505) handling 0011.sql
/src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
/src/log/log.go:223 github.com/0xPolygonHermez/zkevm-node/log.Fatal()
/src/cmd/run.go:277 main.runMigrations()
/src/cmd/run.go:270 main.runPoolMigrations()
/src/cmd/run.go:501 main.createPool()
/src/cmd/run.go:219 main.start()
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274 github.com/urfave/cli/v2.(*Command).Run()
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 github.com/urfave/cli/v2.(*Command).Run()
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 github.com/urfave/cli/v2.(*App).RunContext()
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309 github.com/urfave/cli/v2.(*App).Run()
/src/cmd/main.go:191 main.main()
/usr/local/go/src/runtime/proc.go:267 runtime.main()
{"pid": 1, "version": "v0.0.3-RC2"}
main.runMigrations
/src/cmd/run.go:277
main.runPoolMigrations
/src/cmd/run.go:270
main.createPool
/src/cmd/run.go:501
main.start
/src/cmd/run.go:219
github.com/urfave/cli/v2.(*Command).Run
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:274
github.com/urfave/cli/v2.(*Command).Run
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267
github.com/urfave/cli/v2.(*App).RunContext
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332
github.com/urfave/cli/v2.(*App).Run
/go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:309
main.main
/src/cmd/main.go:191
runtime.main
/usr/local/go/src/runtime/proc.go:267
@simonzg it seems the error happens here when are you doing a up migration for the pool db.
specifically, it's at the execution of the script https://github.com/0xPolygon/cdk-validium-node/blob/v0.0.3-RC2/db/migrations/pool/0011.sql
per this and this, it's likely you faced some race conditions at CREATE TABLE
it shouldn't happen if you follow the CDK quickstart steps exactly. were you starting up all the service with sudo make run
? I need a bit more context to understand how you got this error
one thing you can try is to sudo make run stop
and sudo make run
Thanks for your reply. I cloned the repo to a new Ubuntu vps and followed the steps, and the issue is gone.
Hi Polygon team,
I'm trying out the CDK, and the containers are up and running. However, when I take a closer look at
zkevm-sequencer
, there're lines of errors printed repeatedly in the logs as the following. I'm hoping you guys could shed some light on this. Thank you.The error:
Here's the output from
docker compose ps