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
51 stars 72 forks source link

Error in service.star #210

Closed izzi12 closed 2 months ago

izzi12 commented 3 months ago

System information

VM Vortualbox Ubuntu (64-bit)

Commit id

6d3b4fe

Tools versions

✅ kurtosis 1.0.0 is installed, meets the requirement (=1.0). ✅ docker 27.1.1 is installed, meets the requirement (>=24.7).

You might as well need the following tools to interact with the environment... ✅ jq 1.7 is installed. ❌ yq 0.0.0 is installed, but only version 3.2 is supported by the package.

Description & steps to reproduce

Trying to run latest kurtosis-cdk with sepolia as shown by @jarrodwatts in youtube video. I get the following error:

Getting contract setup addresses from contracts-001 service There was an error executing Starlark code An error occurred executing instruction (number 20) at github.com/0xPolygon/kurtosis-cdk/lib/service.star[28:23]: exec(service_name="contracts-001", recipe=ExecRecipe(command=["/bin/sh", "-c", "cat /opt/zkevm/combined.json"], extract={"pol_token_address": "fromjson | .polTokenAddress", "polygon_data_committee_address": "fromjson | .polygonDataCommitteeAddress", "zkevm_admin_address": "fromjson | .admin", "zkevm_bridge_address": "fromjson | .polygonZkEVMBridgeAddress", "zkevm_global_exit_root_address": "fromjson | .polygonZkEVMGlobalExitRootAddress", "zkevm_global_exit_root_l2_address": "fromjson | .polygonZkEVMGlobalExitRootL2Address", "zkevm_rollup_address": "fromjson | .rollupAddress", "zkevm_rollup_manager_address": "fromjson | .polygonRollupManagerAddress", "zkevm_rollup_manager_block_number": "fromjson | .deploymentRollupManagerBlockNumber"}), description="Getting contract setup addresses from contracts-001 service") Caused by: Error executing exec recipe Caused by: An error occurred while running extractors 'map[pol_token_address:fromjson | .polTokenAddress polygon_data_committee_address:fromjson | .polygonDataCommitteeAddress zkevm_admin_address:fromjson | .admin zkevm_bridge_address:fromjson | .polygonZkEVMBridgeAddress zkevm_global_exit_root_address:fromjson | .polygonZkEVMGlobalExitRootAddress zkevm_global_exit_root_l2_address:fromjson | .polygonZkEVMGlobalExitRootL2Address zkevm_rollup_address:fromjson | .rollupAddress zkevm_rollup_manager_address:fromjson | .polygonRollupManagerAddress zkevm_rollup_manager_block_number:fromjson | .deploymentRollupManagerBlockNumber]' on command output '' Caused by: An error occurred running extractor 'fromjson | .rollupAddress' on recipe Caused by: No field 'fromjson | .rollupAddress' was found on input '""'

Error encountered running Starlark code. kurtosiserror

Desired behavior

Deployment to Sepolia testnet.

What is the severity of this bug?

Critical; I am blocked and Kurtosis CDK is unusable for me because of this bug.

leovct commented 2 months ago

It looks like you didn't specify the rollup address in /opt/zkevm/combined.json.

What command are you running exactly?

bharathbvgp commented 2 months ago

I have also ran into same issue

I ran the below command kurtosis run --enclave cdk-v1 --args-file params.yml --image-download always .

Screenshot 2024-08-20 at 6 25 42 PM

I am trying to deploy on sepolia testnet

I am stuck at this error and unable to resolve , kindly please help to resolve the error

bharathbvgp commented 2 months ago

Hi @izzi12 , Did you resolve the issue If so can you please explain me the steps to resolve

leovct commented 2 months ago

Hi guys, we have introduced breaking changes and refactorings this month which I think impacted the workflow to deploy the CDK stack to an external L1. We are prioritising other features at the moment such as integrating cdk-erigon and cdk-node to the stack. For now, I recommend you use a local L1.

I'm keeping track of this issue in a dedicated ticket #238.

Teamvalid commented 2 months ago

@leovct - can we set up a small meeting for this ? Our team is planning to shift to zkSync Era because of this issue. It will be of great help.

leovct commented 2 months ago

@leovct - can we set up a small meeting for this ? Our team is planning to shift to zkSync Era because of this issue. It will be of great help.

Hi @Teamvalid, kurtosis-cdk is currently designed as a development tool for testing configurations and scenarios within the Polygon CDK stack. It is not recommended for long-running or production environments such as testnets or mainnet. If you need help, you can reach out to the Polygon team or talk to an Implementation Partner (IP).