[ZK Stack] - Unable to bridge #686
Replies: 1 comment 6 replies
-
It appears that you are encountering multiple issues with your L2 chain on the Holsky testnet, particularly with the bridging process and server stability. The errors you've described suggest problems with the RPC calls and possibly with the configuration of your ZKsync server or the network setup. Here are a few steps and considerations to help troubleshoot and potentially resolve the issues:
By following these steps, you should be able to identify and potentially resolve the issues with RPC calls and server stability. If you need further assistance, please provide additional details about your setup and any changes you've made based on these suggestions. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
Module Affected
Rust Version
1.80.1
Operating System
Issue Description
Using the tutorial (https://code.zksync.io/tutorials/custom-zk-chain/customizing-your-chain), I have deployed a L2 chain on holesky with custom base token. The problem Im facing is when I try to bridge tokens (L1 to L2) using zksync cli, bridging is not happening. On holesky block explorer I can see some transaction happened but when I check with L2, nothing was there. I have checked the logs of L2,
One more issue is that in a interval of 10 - 20 minutes, L2 server crashes. So I have created a system service which restarts the server every time it is crashed.
A example transaction on L1 for bridging:
https://holesky.etherscan.io/tx/0xb879385e097443e08ec3ed62bf9d76d74d19e22de46e5de0fd4a703993f2cce5
Expected Behavior
Bridging should happen and wallet (metamask) should show updated balance.
Current Behavior
Bridging is not happening.
Repository Link (if applicable)
No response
Additional Details
Logs L2 before crash:
Sep 12 15:04:07 validium-testnet start.sh[2903488]: 2024-09-12T15:04:07.277853Z ERROR zksync_base_token_adjuster::base_token_ratio_provider: No latest price found in the database. Using default ratio.
Sep 12 15:04:07 validium-testnet start.sh[2903488]: 2024-09-12T15:04:07.373597Z ERROR zksync_eth_client::clients::http::query: base_fee_per_gas and base_fee_per_blob_gas have different lengths: 87 and 0
Sep 12 15:04:09 validium-testnet start.sh[2903488]: 2024-09-12T15:04:09.278367Z ERROR zksync_base_token_adjuster::base_token_ratio_provider: No latest price found in the database. Using default ratio.
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395074Z WARN EthTxManager::loop_iteration: zksync_web3_decl::client::metrics: Request
eth_blockNumber
from componenteth_tx_manager
failed with HTTP error (response status: None): client error (SendRequest) network="ethereum_17000" component="eth_tx_manager" method="eth_blockNumber"Sep 12 15:04:10 validium-testnet start.sh[2903488]: thread 'tokio-runtime-worker' panicked at /home/zksync/ecosystem/zksync-era/core/node/eth_sender/src/eth_tx_manager.rs:651:18:
Sep 12 15:04:10 validium-testnet start.sh[2903488]: called
Result::unwrap()
on anErr
value: EthereumGateway(EnrichedClientError { inner_error: Transport(client error (SendRequest)Sep 12 15:04:10 validium-testnet start.sh[2903488]: Caused by:
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 0: client error (SendRequest)
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 1: client error (SendRequest)
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2: operation was canceled
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 3: connection closed), method: "get_block_number", args: {} })
Sep 12 15:04:10 validium-testnet start.sh[2903488]: note: run with
RUST_BACKTRACE=1
environment variable to display a backtraceSep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395534Z ERROR zksync_node_framework::service: Task eth_tx_manager panicked: called
Result::unwrap()
on anErr
value: EthereumGateway(EnrichedClientError { inner_error: Transport(client error (SendRequest)Sep 12 15:04:10 validium-testnet start.sh[2903488]: Caused by:
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 0: client error (SendRequest)
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 1: client error (SendRequest)
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2: operation was canceled
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 3: connection closed), method: "get_block_number", args: {} })
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395555Z INFO zksync_node_framework::service: One of the task has exited, shutting down the node
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395593Z DEBUG zksync_health_check: Changed health of
http_api
from {"status":"ready"} to {"status":"shutting_down"}Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395608Z INFO zksync_node_api_server::web3: Stop signal received, HTTP JSON-RPC server is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395633Z INFO zksync_base_token_adjuster::base_token_ratio_provider: Stop signal received, base_token_ratio_provider is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395665Z INFO zksync_contract_verification_server: Stop signal received, contract verification server is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395724Z INFO zksync_contract_verification_server: Contract verification handler server shut down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395733Z DEBUG zksync_health_check: Changed health of
ws_api
from {"status":"ready"} to {"status":"shutting_down"}Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395738Z INFO zksync_node_api_server::web3: Stop signal received, WS JSON-RPC server is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395749Z INFO zksync_eth_watch: Stop signal received, eth_watch is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395768Z INFO zksync_house_keeper::periodic_job: Stop signal received; periodic job L1BatchMetricsReporter is shut down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.395910Z INFO zksync_node_framework::implementations::layers::postgres_metrics: Stop signal received, Postgres metrics scraping is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396177Z DEBUG zksync_health_check: Changed health of
prometheus_exporter
from {"status":"ready"} to {"status":"shut_down"}Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396312Z INFO zksync_circuit_breaker: received a stop signal; circuit breaker is shut down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396382Z INFO zksync_da_dispatcher::da_dispatcher: Stop signal received, da_dispatcher is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396385Z WARN zksync_queued_job_processor: Stop signal received, shutting down tee_verifier_input_producer component while waiting for a new job
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396426Z INFO zksync_metadata_calculator::updater: Stop signal received, metadata_calculator is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396443Z DEBUG zksync_health_check: Changed health of
tree
from {"status":"ready","details":{"leaf_count":53,"min_l1_batch_number":0,"mode":"full","next_l1_batch_number":1,"root_hash":"0xabdb766b18a479a5c783a4b80e12686bc8ea3cc2d8a3050491b701d72370ebb5","stage":"main_loop"}} to {"status":"shut_down"}Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396465Z INFO zksync_node_api_server::healthcheck: Stop signal received, healthcheck server is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396504Z INFO zksync_node_api_server::healthcheck: Healthcheck server shut down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.396577Z INFO zksync_node_api_server::execution_sandbox: VM concurrency limiter closed
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.403774Z INFO zksync_state_keeper::mempool_actor: Stop signal received, mempool is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.412022Z INFO zksync_vm_runner::process: VM runner was interrupted
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.416266Z INFO zksync_commitment_generator: Stop signal received, commitment generator is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.416363Z DEBUG zksync_health_check: Changed health of
commitment_generator
from {"status":"ready"} to {"status":"shut_down"}Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.421728Z INFO zksync_vm_runner::output_handler:
ConcurrentOutputHandlerFactoryTask
was interruptedSep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.428024Z INFO zksync_vm_runner::storage:
StorageSyncTask
was interruptedSep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.478897Z INFO zksync_node_api_server::web3::pubsub: Stop signal received, pubsub_tx_notifier is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.511105Z INFO zksync_node_api_server::web3::pubsub: Stop signal received, pubsub_logs_notifier is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.511250Z INFO zksync_node_api_server::web3::pubsub: Stop signal received, pubsub_block_notifier is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.609120Z INFO zksync_state_keeper::keeper: Stop signal received, state keeper is shutting down
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.896999Z INFO zksync_node_api_server::web3: Stopping serving new WS traffic
Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.897245Z DEBUG zksync_health_check: Changed health of
ws_api
from {"status":"shutting_down"} to {"status":"shut_down"}Sep 12 15:04:10 validium-testnet start.sh[2903488]: 2024-09-12T15:04:10.897256Z INFO zksync_node_api_server::web3: WS JSON-RPC server stopped
Sep 12 15:04:11 validium-testnet start.sh[2903488]: 2024-09-12T15:04:11.454044Z INFO zksync_eth_sender::eth_tx_aggregator: Stop signal received, eth_tx_aggregator is shutting down
Sep 12 15:04:12 validium-testnet start.sh[2903488]: 2024-09-12T15:04:12.374371Z INFO zksync_node_fee_model::l1_gas_price::gas_adjuster: Stop signal received, gas_adjuster is shutting down
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.437868Z INFO zksync_node_api_server::web3: Stopping serving new HTTP traffic
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438715Z DEBUG zksync_health_check: Changed health of
http_api
from {"status":"shutting_down"} to {"status":"shut_down"}Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438741Z INFO zksync_node_api_server::web3: HTTP JSON-RPC server stopped
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438851Z INFO zksync_node_framework::service: Task sigint_handler finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438860Z INFO zksync_node_framework::service: Task circuit_breaker_checker finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438864Z INFO zksync_node_framework::service: Task healthcheck_server finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438868Z INFO zksync_node_framework::service: Task prometheus_exporter finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438873Z INFO zksync_node_framework::service: Task gas_adjuster finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438877Z INFO zksync_node_framework::service: Task contract_verification_api finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438880Z INFO zksync_node_framework::service: Task metadata_calculator finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438884Z INFO zksync_node_framework::service: Task eth_watch finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438888Z INFO zksync_node_framework::service: Task eth_tx_aggregator finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438892Z INFO zksync_node_framework::service: Task oneshot_runner finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438895Z INFO zksync_node_framework::service: Task base_token_ratio_provider finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438898Z INFO zksync_node_framework::service: Task state_keeper/l2_block_sealer finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438905Z INFO zksync_node_framework::service: Task state_keeper/mempool_fetcher finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438909Z INFO zksync_node_framework::service: Task state_keeper finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438912Z INFO zksync_node_framework::service: Task l1_batch_metrics_reporter finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438916Z INFO zksync_node_framework::service: Task postgres_metrics_scraping finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438919Z INFO zksync_node_framework::service: Task tee_verifier_input_producer finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438922Z INFO zksync_node_framework::service: Task commitment_generator finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438925Z INFO zksync_node_framework::service: Task da_dispatcher finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438928Z INFO zksync_node_framework::service: Task vm_runner/protective_reads_writer finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438932Z INFO zksync_node_framework::service: Task vm_runner/protective_reads_writer/storage_sync finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438936Z INFO zksync_node_framework::service: Task vm_runner/protective_reads_writer/output_handler finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438939Z INFO zksync_node_framework::service: Task vm_concurrency_barrier_task finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438943Z INFO zksync_node_framework::service: Task postgres_storage_caches finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438946Z INFO zksync_node_framework::service: Task mempool_cache_update_task finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438951Z INFO zksync_node_framework::service: Task web3_http_server finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438955Z INFO zksync_node_framework::service: Task api_task_garbage_collector finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438959Z INFO zksync_node_framework::service: Task web3_ws_server finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.438962Z INFO zksync_node_framework::service: Task api_task_garbage_collector finished
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.439005Z INFO zksync_storage::db: All the RocksDB instances are dropped
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.439038Z INFO zksync_node_framework::service: Shutdown hook rocksdb_terminaton completed
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.439071Z INFO zksync_storage::db: All the RocksDB instances are dropped
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.439161Z INFO zksync_node_framework::service: Shutdown hook rocksdb_terminaton completed
Sep 12 15:04:19 validium-testnet start.sh[2903488]: 2024-09-12T15:04:19.439169Z INFO zksync_node_framework::service: Exiting the service
Sep 12 15:04:19 validium-testnet start.sh[2903488]: Error: One or more tasks failed: [TaskPanicked(TaskId("eth_tx_manager"), "called
Result::unwrap()
on anErr
value: EthereumGateway(EnrichedClientError { inner_error: Transport(client error (SendRequest)\n\nCaused by:\n 0: client error (SendRequest)\n 1: client error (SendRequest)\n 2: operation was canceled\n 3: connection closed), method: "get_block_number", args: {} })")]Sep 12 15:04:19 validium-testnet start.sh[2903455]: │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: ■ Command failed to run: cargo run --release --bin zksync_server -- --genesis-path /home/zksync/ecosystem/chains/validium/configs/genesis.yaml --wallets-path /home/zksync/ecosystem/chains/validium/configs/wallets.yaml --config-path /home/zksync/ecosystem/chains/validium/configs/general.yaml --secrets-path /home/zksync/ecosystem/chains/validium/configs/secrets.yaml --contracts-config-path /home/zksync/ecosystem/chains/validium/configs/contracts.yaml ──╮
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ Status: │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ exit status: 1 │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ Stdout: │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ Stderr: │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: ├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: ■ Failed to start server
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: ▲ 0: Command failed to run: cargo run --release --bin zksync_server -- --genesis-path /home/zksync/ecosystem/chains/validium/configs/genesis.yaml --wallets-path /home/zksync/ecosystem/chains/validium/configs/wallets.yaml --config-path /home/zksync/ecosystem/chains/validium/configs/general.yaml --secrets-path /home/zksync/ecosystem/chains/validium/configs/secrets.yaml --contracts-config-path /home/zksync/ecosystem/chains/validium/configs/contracts.yaml
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │
Sep 12 15:04:19 validium-testnet start.sh[2903455]: │ 1: Command failed to run: cargo run --release --bin zksync_server -- --genesis-path /home/zksync/ecosystem/chains/validium/configs/genesis.yaml --wallets-path /home/zksync/ecosystem/chains/validium/configs/wallets.yaml --config-path /home/zksync/ecosystem/chains/validium/configs/general.yaml --secrets-path /home/zksync/ecosystem/chains/validium/configs/secrets.yaml --contracts-config-path /home/zksync/ecosystem/chains/validium/configs/contracts.yaml
Prior Research
Beta Was this translation helpful? Give feedback.
All reactions