matter-labs / block-explorer

zkSync Era Block Explorer
Apache License 2.0
125 stars 110 forks source link

v2.36.1 No transactions for zksync-cli `Dockerized node` with `Block Explorer` #121

Closed haraldh closed 11 months ago

haraldh commented 11 months ago

🐛 Bug Report

📝 Description

❯ npx zksync-cli dev start

Starting: Dockerized node, Block Explorer...
[+] Running 3/3
 ✔ Container local-setup-postgres-1  Created                                                                                                                                            0.0s 
 ✔ Container local-setup-geth-1      Created                                                                                                                                            0.0s 
 ✔ Container local-setup-zksync-1    Created                                                                                                                                            0.0s 
[+] Running 5/5
 ✔ Volume "zkcli-block-explorer_postgres"     Created                                                                                                                                   0.0s 
 ✔ Container zkcli-block-explorer-worker-1    Started                                                                                                                                   0.1s 
 ✔ Container zkcli-block-explorer-postgres-1  Started                                                                                                                                   0.1s 
 ✔ Container zkcli-block-explorer-api-1       Started                                                                                                                                   0.0s 
 ✔ Container zkcli-block-explorer-app-1       Started                                                                                                                                   0.0s 
✔ Block Explorer initialized

Dockerized node started:
 - zkSync Node (L2):
  - Chain ID: 270
  - RPC URL: http://127.0.0.1:3050
 - Ethereum Node (L1):
  - Chain ID: 9
  - RPC URL: http://127.0.0.1:8545
 - Rich accounts: /home/harald/.local/state/zksync-cli/modules/zkcli-dockerized-node/local-setup/rich-wallets.json

Block Explorer started v2.36.1:
 - App: http://localhost:3010
 - HTTP API:
  - Endpoint: http://localhost:3020
  - Documentation: http://localhost:3020/docs

No transactions shown in explorer..

🔄 Reproduction Steps

❯ npx zksync-cli dev config

choose Dockerized node with Block Explorer

❯ npx zksync-cli dev start

On Linux edit $HOME//.local/state/zksync-cli/modules/zkcli-block-explorer/docker-compose.yml and apply the fix of https://github.com/matter-labs/zkcli-block-explorer/pull/9 until merged and restart the environment.

🤔 Expected Behavior

Transactions showing up in the explorer

😯 Current Behavior

None

🖥️ Environment

Running on Linux.

❯ docker -v
Docker version 24.0.7, build afdd53b

Version: v2.36.

📎 Log Output

[Worker] Info   12/12/2023 14:47:45.932 [NestFactory] Starting Nest application... +0ms
[Worker] Info   12/12/2023 14:47:45.968 [InstanceLoader] TypeOrmModule dependencies initialized +35ms
[Worker] Info   12/12/2023 14:47:45.976 [InstanceLoader] MetricsModule dependencies initialized +8ms
[Worker] Info   12/12/2023 14:47:45.976 [InstanceLoader] HttpModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:45.977 [InstanceLoader] PrometheusModule dependencies initialized +1ms
[Worker] Info   12/12/2023 14:47:45.977 [InstanceLoader] DiscoveryModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:45.977 [InstanceLoader] ConfigHostModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:45.977 [InstanceLoader] TerminusModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:45.978 [InstanceLoader] EventEmitterModule dependencies initialized +1ms
[Worker] Info   12/12/2023 14:47:45.978 [InstanceLoader] ConfigModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:45.978 [InstanceLoader] ConfigModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:45.983 [InstanceLoader] JsonRpcProviderModule dependencies initialized +5ms
[Worker] Info   12/12/2023 14:47:45.985 [InstanceLoader] HealthModule dependencies initialized +2ms
[Worker] Info   12/12/2023 14:47:46.136 [InstanceLoader] TypeOrmCoreModule dependencies initialized +151ms
[Worker] Info   12/12/2023 14:47:46.137 [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Worker] Info   12/12/2023 14:47:46.137 [InstanceLoader] TypeOrmModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:46.137 [InstanceLoader] UnitOfWorkModule dependencies initialized +0ms
[Worker] Info   12/12/2023 14:47:46.139 [InstanceLoader] CounterModule dependencies initialized +2ms
[Worker] Info   12/12/2023 14:47:46.140 [InstanceLoader] AppModule dependencies initialized +1ms
[Worker] Info   12/12/2023 14:47:46.156 [RoutesResolver] PrometheusController {/metrics}: +16ms
[Worker] Info   12/12/2023 14:47:46.158 [RouterExplorer] Mapped {/metrics, GET} route +2ms
[Worker] Info   12/12/2023 14:47:46.159 [RoutesResolver] HealthController {/health}: +1ms
[Worker] Info   12/12/2023 14:47:46.159 [RouterExplorer] Mapped {/health, GET} route +0ms
[Worker] Info   12/12/2023 14:47:46.159 [RoutesResolver] HealthController {/ready}: +0ms
[Worker] Info   12/12/2023 14:47:46.160 [RouterExplorer] Mapped {/ready, GET} route +1ms
[Worker] Info   12/12/2023 14:47:46.182 [NestApplication] Nest application successfully started +22ms
[Worker] Info   12/12/2023 14:47:46.186 [AppService] _lock created, running migrations if there are any to run +4ms
[Worker] Info   12/12/2023 14:47:46.705 [AppService] _lock removed, migrations completed +519ms
[Worker] Info   12/12/2023 14:47:46.791 [BlockProcessor] Adding block #0 - {"blockNumber":0} +86ms
[Worker] Info   12/12/2023 14:47:46.792 [BlockProcessor] Adding block #1 - {"blockNumber":1} +1ms
[Worker] Info   12/12/2023 14:47:46.792 [BlockProcessor] Adding block #2 - {"blockNumber":2} +0ms
[Worker] Info   12/12/2023 14:47:46.797 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":1} +5ms
[Worker] Info   12/12/2023 14:47:46.798 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":0} +1ms
[Worker] Info   12/12/2023 14:47:46.800 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":2} +2ms
[Worker] Info   12/12/2023 14:47:46.801 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":3} +1ms
[Worker] Info   12/12/2023 14:47:46.837 [CounterProcessor] Getting next records from the DB to update counters - {"tableName":"transfers","startingFromNumber":0} +36ms
[Worker] Info   12/12/2023 14:47:46.840 [CounterProcessor] Getting next records from the DB to update counters - {"tableName":"transactions","startingFromNumber":0} +3ms
[Worker] Info   12/12/2023 14:47:46.855 [BalanceService] Deleting old balances - {"fromBlockNumber":-1,"toBlockNumber":0} +15ms
[Worker] Info   12/12/2023 14:47:46.862 [BalanceService] Deleting zero balances - {"fromBlockNumber":-1,"toBlockNumber":0} +7ms
[Worker] Warn   12/12/2023 14:47:47.261 [Contract] Requested contract function symbol failed to execute, not retryable - {"contractAddress":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e","error":{"reason":null,"code":"CALL_EXCEPTION","method":"symbol()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e","args":[],"transaction":{"data":"0x95d89b41","to":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e"}}} +399ms
[Worker] Info   12/12/2023 14:47:47.261 [TokenService] Cannot parse ERC20 contract. Might be a token of a different type. - {"contractAddress":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e"} +0ms
[Worker] Warn   12/12/2023 14:47:47.262 [Contract] Requested contract function symbol failed to execute, not retryable - {"contractAddress":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78","error":{"reason":null,"code":"CALL_EXCEPTION","method":"symbol()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78","args":[],"transaction":{"data":"0x95d89b41","to":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78"}}} +1ms
[Worker] Info   12/12/2023 14:47:47.263 [TokenService] Cannot parse ERC20 contract. Might be a token of a different type. - {"contractAddress":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78"} +1ms
[Worker] Warn   12/12/2023 14:47:47.264 [Contract] Requested contract function decimals failed to execute, not retryable - {"contractAddress":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e","error":{"reason":null,"code":"CALL_EXCEPTION","method":"decimals()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e","args":[],"transaction":{"data":"0x313ce567","to":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e"}}} +1ms
[Worker] Warn   12/12/2023 14:47:47.265 [Contract] Requested contract function name failed to execute, not retryable - {"contractAddress":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF","error":{"reason":null,"code":"CALL_EXCEPTION","method":"name()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF","args":[],"transaction":{"data":"0x06fdde03","to":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF"}}} +1ms
[Worker] Info   12/12/2023 14:47:47.265 [TokenService] Cannot parse ERC20 contract. Might be a token of a different type. - {"contractAddress":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF"} +0ms
[Worker] Warn   12/12/2023 14:47:47.266 [Contract] Requested contract function name failed to execute, not retryable - {"contractAddress":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78","error":{"reason":null,"code":"CALL_EXCEPTION","method":"name()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78","args":[],"transaction":{"data":"0x06fdde03","to":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78"}}} +1ms
[Worker] Warn   12/12/2023 14:47:47.267 [Contract] Requested contract function name failed to execute, not retryable - {"contractAddress":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e","error":{"reason":null,"code":"CALL_EXCEPTION","method":"name()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e","args":[],"transaction":{"data":"0x06fdde03","to":"0xd07d77e5f1b80a7BA2D07Cfd6FF97f4149eBf35e"}}} +1ms
[Worker] Warn   12/12/2023 14:47:47.268 [Contract] Requested contract function symbol failed to execute, not retryable - {"contractAddress":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF","error":{"reason":null,"code":"CALL_EXCEPTION","method":"symbol()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF","args":[],"transaction":{"data":"0x95d89b41","to":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF"}}} +1ms
[Worker] Warn   12/12/2023 14:47:47.268 [Contract] Requested contract function decimals failed to execute, not retryable - {"contractAddress":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF","error":{"reason":null,"code":"CALL_EXCEPTION","method":"decimals()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF","args":[],"transaction":{"data":"0x313ce567","to":"0x58719fC8F019cBcb64604D38b3dfc58b499547fF"}}} +0ms
[Worker] Warn   12/12/2023 14:47:47.270 [Contract] Requested contract function decimals failed to execute, not retryable - {"contractAddress":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c","error":{"reason":null,"code":"CALL_EXCEPTION","method":"decimals()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c","args":[],"transaction":{"data":"0x313ce567","to":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c"}}} +2ms
[Worker] Info   12/12/2023 14:47:47.271 [TokenService] Cannot parse ERC20 contract. Might be a token of a different type. - {"contractAddress":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c"} +1ms
[Worker] Warn   12/12/2023 14:47:47.271 [Contract] Requested contract function symbol failed to execute, not retryable - {"contractAddress":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c","error":{"reason":null,"code":"CALL_EXCEPTION","method":"symbol()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c","args":[],"transaction":{"data":"0x95d89b41","to":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c"}}} +0ms
[Worker] Warn   12/12/2023 14:47:47.272 [Contract] Requested contract function name failed to execute, not retryable - {"contractAddress":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c","error":{"reason":null,"code":"CALL_EXCEPTION","method":"name()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c","args":[],"transaction":{"data":"0x06fdde03","to":"0x0040F89FE004fad14D9cA951560b8e4C08265b0c"}}} +1ms
[Worker] Warn   12/12/2023 14:47:47.273 [Contract] Requested contract function name failed to execute, not retryable - {"contractAddress":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A","error":{"reason":null,"code":"CALL_EXCEPTION","method":"name()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A","args":[],"transaction":{"data":"0x06fdde03","to":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A"}}} +1ms
[Worker] Info   12/12/2023 14:47:47.273 [TokenService] Cannot parse ERC20 contract. Might be a token of a different type. - {"contractAddress":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A"} +0ms
[Worker] Warn   12/12/2023 14:47:47.275 [Contract] Requested contract function decimals failed to execute, not retryable - {"contractAddress":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78","error":{"reason":null,"code":"CALL_EXCEPTION","method":"decimals()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78","args":[],"transaction":{"data":"0x313ce567","to":"0xFD106834e5fc159f85D8e453A3BF4e0db2F70B78"}}} +2ms
[Worker] Warn   12/12/2023 14:47:47.276 [Contract] Requested contract function decimals failed to execute, not retryable - {"contractAddress":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A","error":{"reason":null,"code":"CALL_EXCEPTION","method":"decimals()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A","args":[],"transaction":{"data":"0x313ce567","to":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A"}}} +1ms
[Worker] Warn   12/12/2023 14:47:47.277 [Contract] Requested contract function symbol failed to execute, not retryable - {"contractAddress":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A","error":{"reason":null,"code":"CALL_EXCEPTION","method":"symbol()","data":"0x","errorArgs":null,"errorName":null,"errorSignature":null,"address":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A","args":[],"transaction":{"data":"0x95d89b41","to":"0x9D394314b7dFAa73aD2e2136fbDB908a74c9dA7A"}}} +1ms
[Worker] Info   12/12/2023 14:47:47.833 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":1} +556ms
[Worker] Info   12/12/2023 14:47:47.835 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":2} +2ms
[Worker] Info   12/12/2023 14:47:47.838 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":0} +3ms
[Worker] Info   12/12/2023 14:47:47.839 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":0,"currentBatchState":3} +1ms
[Worker] Info   12/12/2023 14:47:47.869 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":1,"currentBatchState":3} +30ms
[Worker] Info   12/12/2023 14:47:47.897 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":2,"currentBatchState":3} +28ms
[Worker] Info   12/12/2023 14:47:48.850 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":2,"currentBatchState":0} +953ms
[Worker] Info   12/12/2023 14:47:48.851 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":2,"currentBatchState":2} +1ms
[Worker] Info   12/12/2023 14:47:48.852 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":2,"currentBatchState":1} +1ms
[Worker] Info   12/12/2023 14:47:48.906 [BatchProcessor] Getting batch from the blockchain - {"batchNumber":2,"currentBatchState":3} +54ms
[...]
haraldh commented 11 months ago

error on my side... forgot to port forward 3020 ... all is fine... :)