Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDK not running with the custom network. #101

Open
avenbreaks opened this issue Mar 13, 2024 · 0 comments
Open

CDK not running with the custom network. #101

avenbreaks opened this issue Mar 13, 2024 · 0 comments

Comments

@avenbreaks
Copy link

cannot create blocks and synchronize, then zkProver does not get port 50071:50071 after run

Output Paratemer

{
 "realVerifier": false,
 "trustedSequencerURL": "http://127.0.0.1:8123",
 "networkName": "only",
 "version": "0.0.1",
 "trustedSequencer": "0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63",
 "chainID": 728697,
 "trustedAggregator": "0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63",
 "trustedAggregatorTimeout": 604799,
 "pendingStateTimeout": 604799,
 "forkID": 6, // Can i change to Sepolia ChainId ? e.g: 11155111 
 "admin": "0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63",
 "cdkValidiumOwner": "0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63",
 "timelockAddress": "0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63",
 "minDelayTimelock": 3600,
 "salt": "0x0000000000000000000000000000000000000000000000000000000000000000",
 "initialCDKValidiumDeployerOwner": "0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63",
 "maticTokenAddress": "0x58F13A23bcdCE71efF2346FB2003413Baa1E4508",
 "cdkValidiumDeployerAddress": "0x44F3A6F2ef386E7714604126DDB3eb3Ef5f735F6",
 "deployerPvtKey": "deployment address privatekey",
 "maxFeePerGas": "",
 "maxPriorityFeePerGas": "",
 "multiplierGas": "",
 "setupEmptyCommittee": true,
 "committeeTimelock": false
}

image

How to build :

Setup Database

docker run -d -e POSTGRES_USER=xxxxx -e POSTGRES_PASSWORD=xxxxx -e POSTGRES_DB=postgres -p 5432:5432 postgres:15

Import DB : PGPASSWORD=xxxxx psql -h localhost -U xxxxx -d postgres -p 5432 -a -q -f ./db/scripts/single_db_server.sql
Create DB DAC : PGPASSWORD=xxxxx psql -h localhost -U xxxxx -d postgres -p 5432 -c "CREATE DATABASE committee_db;"
Create DB BRIDGE : PGPASSWORD=xxxxx psql -h localhost -U xxxxx -d postgres -p 5432 -c "CREATE DATABASE bridge_db;"

logs zkevm-node

2024-03-13T11:58:35.250Z	�[34mINFO�[0m	synchronizer/synchronizer.go:354	L1 state fully synchronized	{"pid": 102908, "version": "v0.0.3"}
2024-03-13T11:58:35.705Z	�[34mINFO�[0m	ethtxmanager/ethtxmanager.go:255	found 0 monitored tx to process	{"pid": 102908, "version": "v0.0.3"}
2024-03-13T11:58:36.013Z	�[34mINFO�[0m	sequencesender/sequencesender.go:84	getting sequences to send	{"pid": 102908, "version": "v0.0.3"}
2024-03-13T11:58:36.014Z	�[34mINFO�[0m	sequencesender/sequencesender.go:198	no batches to be sequenced	{"pid": 102908, "version": "v0.0.3"}
2024-03-13T11:58:36.014Z	�[34mINFO�[0m	sequencesender/sequencesender.go:90	waiting for sequences to be worth sending to L1	{"pid": 102908, "version": "v0.0.3"}
2024-03-13T11:58:36.134Z	�[33mWARN�[0m	pool/pool.go:586	No suggested min gas price since: 2024-03-13 11:53:36.133447242 +0000 UTC	{"pid": 102908, "version": "v0.0.3"}
github.com/0xPolygonHermez/zkevm-node/pool.(*Pool).pollMinSuggestedGasPrice
	/root/cdk-validium/cdk-validium-node/pool/pool.go:586
github.com/0xPolygonHermez/zkevm-node/pool.(*Pool).StartPollingMinSuggestedGasPrice.func1
	/root/cdk-validium/cdk-validium-node/pool/pool.go:172

logs zkevm-dac

2024-03-13T11:48:49.181Z	�[34mINFO�[0m	db/migrations.go:15	running migrations up	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:49.236Z	�[34mINFO�[0m	db/migrations.go:37	successfully ran 3 migrations	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:50.958Z	�[34mINFO�[0m	synchronizer/init.go:33	starting search for start block of contract 0x3Cf749F3436e6F90fea577f6F34B58260701947D	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:56.071Z	�[34mINFO�[0m	sequencer/tracker.go:30	starting sequencer address tracker	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:56.239Z	�[34mINFO�[0m	sequencer/tracker.go:35	current sequencer addr: 0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:56.407Z	�[34mINFO�[0m	sequencer/tracker.go:40	current sequencer url: http://127.0.0.1:8123	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:56.407Z	�[34mINFO�[0m	synchronizer/reorg.go:45	starting block reorganization detector	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:57.081Z	�[34mINFO�[0m	synchronizer/batches.go:89	starting number synchronizer, DAC addr: 0x41A7DbF1a08E8cf2d76367eC3b4076868E943B63	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:57.081Z	�[34mINFO�[0m	synchronizer/batches.go:125	starting event producer	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:57.081Z	�[34mINFO�[0m	rpc/server.go:79	http server started: 0.0.0.0:8444	{"pid": 103234, "version": "v0.0.3"}
2024-03-13T11:48:57.082Z	�[34mINFO�[0m	synchronizer/batches.go:184	starting event consumer	{"pid": 103234, "version": "v0.0.3"}

logs zKprover

aggregatorClientMockThread() failed calling readerWriter->Read(&aggregatorMessage)
aggregatorClientMockThread() channel broken; will retry in 5 seconds
aggregatorClientMockThread() got: get_status_request { }
aggregatorClientMockThread() sent: get_status_response { status: STATUS_IDLE last_computed_end_time: 1710330366 current_computing_start_time: 1710330366 version_proto: "v0_0_1" version_server: "0.0.1" pending_request_queue_ids: "d01133c3-8dda-4b5e-b9f7-cbdc7c2ddb2f" pending_request_queue_ids: "2beef33b-237d-4eed-9982-6252ab7dc031" pending_request_queue_ids: "fc12cef9-40fc-4569-afcd-36eecb5614c9" prover_name: "test-prover" prover_id: "f5e76ec1-368b-496a-bfad-664d0d4e2bee" number_of_cores: 8 total_memory: 16366884 free_memory: 2250840 fork_id: 6 }
aggregatorClientMockThread() got: get_status_request { }
aggregatorClientMockThread() sent: get_status_response { status: STATUS_IDLE last_computed_end_time: 1710330366 current_computing_start_time: 1710330366 version_proto: "v0_0_1" version_server: "0.0.1" pending_request_queue_ids: "2cc0379f-ae3d-4a8b-8a96-8f6e7181b823" pending_request_queue_ids: "ce485b95-b07e-45a7-ac64-89308cb7e65c" pending_request_queue_ids: "04df05ca-11c2-4bde-b6e3-dabdbfc81898" prover_name: "test-prover" prover_id: "f5e76ec1-368b-496a-bfad-664d0d4e2bee" number_of_cores: 8 total_memory: 16366884 free_memory: 2250840 fork_id: 6 }
aggregatorClientMockThread() got: get_status_request { }

logs postgresql

2024-03-13 12:03:35.331 UTC [60] LOG:  checkpoint starting: time
2024-03-13 12:03:36.651 UTC [60] LOG:  checkpoint complete: wrote 14 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.307 s, sync=0.004 s, total=1.321 s; sync files=12, longest=0.003 s, average=0.001 s; distance=42 kB, estimate=13648 kB
2024-03-13 12:03:37.134 UTC [6211] FATAL:  password authentication failed for user "postgres"
2024-03-13 12:03:37.134 UTC [6211] DETAIL:  Role "postgres" does not exist.
        Connection matched pg_hba.conf line 100: "host all all all scram-sha-256"
2024-03-13 12:03:39.364 UTC [6212] FATAL:  password authentication failed for user "postgres"
2024-03-13 12:03:39.364 UTC [6212] DETAIL:  Role "postgres" does not exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant