0xPolygon / kurtosis-cdk

A Kurtosis package that deploys a private, portable, and modular Polygon CDK devnet
https://docs.polygon.technology/cdk
Apache License 2.0
42 stars 72 forks source link

CDK Deployment on Sepolia - Timeout Issue on bridge #309

Open gouravnaik opened 4 hours ago

gouravnaik commented 4 hours ago

System information

Ubuntu 24.04 LTS

Commit id

2a6ee1f

Tools versions

./scripts/tool_check.sh: command not found

Description & steps to reproduce

I am trying to deploy the CDK on Sepolia with the following changes

In Params.yml


deploy_l1: false

L1 Configurations

l1_chain_id: 11155111 l1_preallocated_mnemonic: new mnemonic ...... l1_funding_amount: 5ether l1_rpc_url: https://eth-sepolia.g.alchemy.com/v2/ l1_ws_url: wss://eth-sepolia.g.alchemy.com/v2/


> In templates > trusted-node > node-config.toml

BatchMaxDeltaTimestamp = "2m" LastBatchVirtualizationTimeMaxWaitPeriod = "15m"


> In cdk_bridge_infra.star - commented the following lines

l1rpc_service = plan.get_service("el-1-geth-lighthouse")

"l1rpc_ip": l1rpc_service.ip_address,

"l1rpc_port": l1rpc_service.ports["rpc"].number,


`sudo kurtosis clean --all`

`kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always .`

**Getting the Following Error**

Adding service with name 'zkevm-bridge-service-001' and image 'hermeznetwork/zkevm-bridge-service:v0.6.0-RC1' There was an error executing Starlark code An error occurred executing instruction (number 68) at github.com/0xPolygon/kurtosis-cdk/cdk_bridge_infra.star[24:21]: add_service(name="zkevm-bridge-service-001", config=ServiceConfig(image="hermeznetwork/zkevm-bridge-service:v0.6.0-RC1", ports={"grpc": PortSpec(number=9090, application_protocol="grpc"), "rpc": PortSpec(number=8080, application_protocol="http")}, files={"/etc/zkevm": Directory(artifact_names=["bridge-config-artifact", "claimtxmanager-keystore"])}, entrypoint=["/app/zkevm-bridge"], cmd=["run", "--cfg", "/etc/zkevm/bridge-config.toml"])) Caused by: Unexpected error occurred starting service 'zkevm-bridge-service-001' Caused by: An error occurred waiting for all TCP and UDP ports to be open for service 'zkevm-bridge-service-001' with private IP '172.16.0.16'; this is usually due to a misconfiguration in the service itself, so here are the logs: == SERVICE 'zkevm-bridge-service-001' LOGS =================================== {"level":"info","ts":1728650244.1119413,"caller":"cmd/run.go:26","msg":"Starting application","pid":7,"version":"v0.6.0-RC1","gitRevision":"002f436","gitBranch":"HEAD","goVersion":"go1.21.13","built":"Thu, 26 Sep 2024 10:05:53 +0000","os/arch":"linux/amd64"} {"level":"info","ts":1728650244.1920202,"caller":"pgstorage/utils.go:63","msg":"successfully ran 12 migrations","pid":7,"version":"v0.6.0-RC1"} {"level":"warn","ts":1728650244.194674,"caller":"etherman/etherman.go:187","msg":"Claim compressor Address not configured","pid":7,"version":"v0.6.0-RC1"} {"level":"error","ts":1728650244.1965096,"caller":"cmd/run.go:232","msg":"L2 etherman 0http://cdk-erigon-node-001:8123, error: invalid opcode: PUSH0\n/src/log/log.go:142 github.com/0xPolygonHermez/zkevm-bridge-service/log.appendStackTraceMaybeArgs()\n/src/log/log.go:217 github.com/0xPolygonHermez/zkevm-bridge-service/log.Error()\n/src/cmd/run.go:232 main.newEthermans()\n/src/cmd/run.go:52 main.start()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:276 github.com/urfave/cli/v2.(Command).Run()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:269 github.com/urfave/cli/v2.(Command).Run()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:333 github.com/urfave/cli/v2.(App).RunContext()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:307 github.com/urfave/cli/v2.(App).Run()\n/src/cmd/main.go:56 main.main()\n/usr/local/go/src/runtime/proc.go:267 runtime.main()\n","pid":7,"version":"v0.6.0-RC1","stacktrace":"main.newEthermans\n\t/src/cmd/run.go:232\nmain.start\n\t/src/cmd/run.go:52\ngithub.com/urfave/cli/v2.(Command).Run\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:276\ngithub.com/urfave/cli/v2.(Command).Run\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:269\ngithub.com/urfave/cli/v2.(App).RunContext\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:333\ngithub.com/urfave/cli/v2.(App).Run\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:307\nmain.main\n\t/src/cmd/main.go:56\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267"}

Error: invalid opcode: PUSH0 {"level":"error","ts":1728650244.1965914,"caller":"cmd/run.go:54","msg":"invalid opcode: PUSH0\n/src/log/log.go:142 github.com/0xPolygonHermez/zkevm-bridge-service/log.appendStackTraceMaybeArgs()\n/src/log/log.go:217 github.com/0xPolygonHermez/zkevm-bridge-service/log.Error()\n/src/cmd/run.go:54 main.start()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:276 github.com/urfave/cli/v2.(Command).Run()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:269 github.com/urfave/cli/v2.(Command).Run()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:333 github.com/urfave/cli/v2.(App).RunContext()\n/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:307 github.com/urfave/cli/v2.(App).Run()\n/src/cmd/main.go:56 main.main()\n/usr/local/go/src/runtime/proc.go:267 runtime.main()\n","pid":7,"version":"v0.6.0-RC1","stacktrace":"main.start\n\t/src/cmd/run.go:54\ngithub.com/urfave/cli/v2.(Command).Run\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:276\ngithub.com/urfave/cli/v2.(Command).Run\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/command.go:269\ngithub.com/urfave/cli/v2.(App).RunContext\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:333\ngithub.com/urfave/cli/v2.(App).Run\n\t/go/pkg/mod/github.com/urfave/cli/v2@v2.27.4/app.go:307\nmain.main\n\t/src/cmd/main.go:56\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:267"}

== FINISHED SERVICE 'zkevm-bridge-service-001' LOGS =================================== Caused by: An error occurred while waiting for all TCP and UDP ports to be open Caused by: Unsuccessful ports check for IP '172.16.0.16' and port spec '{privatePortSpec:0xc001c6b080}', even after '240' retries with '500' milliseconds in between retries. Timeout '2m0s' has been reached Caused by: An error occurred while calling network address '172.16.0.16:8080' with port protocol 'TCP' and using time out '200ms' Caused by: dial tcp 172.16.0.16:8080: i/o timeout

Error encountered running Starlark code.



### Desired behavior

Should have run it success.

### What is the severity of this bug?

Critical; I am blocked and Kurtosis CDK is unusable for me because of this bug.
praetoriansentry commented 2 hours ago

We can have a look at this. I think in the short run, I would make sure you're following the latest documented guide as closely as possible: https://github.com/0xPolygon/kurtosis-cdk/blob/main/docs/deploy-using-sepolia.org

The error in your case is coming from the bridge, but most likely there is something else wrong in the deployment. I don't think any changes /should/ be required in cdk_bridge_infra.star. So if you were running into an issue that required that, it would be good to know.