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

Bridge service UI not working #363

Closed
anurag-iitk opened this issue Nov 7, 2024 · 4 comments
Closed

Bridge service UI not working #363

anurag-iitk opened this issue Nov 7, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@anurag-iitk
Copy link
Contributor

System information

Ubuntu 22.04

Commit id

main branch

Description & steps to reproduce

When I run the bridge-service-ui setup through kurtosis for Polygon CDK based on this cmd:
kurtosis run --enclave cdk github.com/0xPolygon/kurtosis-cdk

Desired behavior

ZodError: [
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_BRIDGE_API_URL"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ENABLE_DEPOSIT_WARNING"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ENABLE_FIAT_EXCHANGE_RATES"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ENABLE_REPORT_FORM"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ETHEREUM_BRIDGE_CONTRACT_ADDRESS"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ETHEREUM_EXPLORER_URL"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ETHEREUM_PROOF_OF_EFFICIENCY_CONTRACT_ADDRESS"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ETHEREUM_ROLLUP_MANAGER_ADDRESS"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_ETHEREUM_RPC_URL"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_POLYGON_ZK_EVM_BRIDGE_CONTRACT_ADDRESS"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_POLYGON_ZK_EVM_EXPLORER_URL"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_POLYGON_ZK_EVM_NETWORK_ID"
],
"message": "Required"
},
{
"code": "invalid_type",
"expected": "string",
"received": "undefined",
"path": [
"VITE_POLYGON_ZK_EVM_RPC_URL"
],
"message": "Required"
}
]

My bridge ui conainer:

root@superb-adder:/tmp/kurtosis-cdk# docker logs 5f1aa77040b4
Generated .env file:
VITE_ETHEREUM_RPC_URL=/l1rpc
VITE_ETHEREUM_EXPLORER_URL=https://sepolia.etherscan.io/
VITE_ETHEREUM_BRIDGE_CONTRACT_ADDRESS=0xD71f8F956AD979Cc2988381B8A743a2fE280537D
VITE_ETHEREUM_FORCE_UPDATE_GLOBAL_EXIT_ROOT=true
VITE_ETHEREUM_PROOF_OF_EFFICIENCY_CONTRACT_ADDRESS=0x1Fe038B54aeBf558638CA51C91bC8cCa06609e91
VITE_ETHEREUM_ROLLUP_MANAGER_ADDRESS=0x2F50ef6b8e8Ee4E579B17619A92dE3E2ffbD8AD2
VITE_POLYGON_ZK_EVM_RPC_URL=/l2rpc
VITE_POLYGON_ZK_EVM_EXPLORER_URL=https://explorer.private/
VITE_POLYGON_ZK_EVM_BRIDGE_CONTRACT_ADDRESS=0xD71f8F956AD979Cc2988381B8A743a2fE280537D
VITE_POLYGON_ZK_EVM_NETWORK_ID=1
VITE_BRIDGE_API_URL=/bridgeservice
VITE_RESOLVE_RELATIVE_URLS=
VITE_ENABLE_FIAT_EXCHANGE_RATES=false
VITE_ENABLE_OUTDATED_NETWORK_MODAL=false
VITE_ENABLE_DEPOSIT_WARNING=false
VITE_ENABLE_REPORT_FORM=false
2024/11/07 15:46:52 [notice] 10#10: using the "epoll" event method
2024/11/07 15:46:52 [notice] 10#10: nginx/1.27.2
2024/11/07 15:46:52 [notice] 10#10: built by gcc 13.2.1 20240309 (Alpine 13.2.1_git20240309)
2024/11/07 15:46:52 [notice] 10#10: OS: Linux 5.15.0-124-generic
2024/11/07 15:46:52 [notice] 10#10: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2024/11/07 15:46:52 [notice] 10#10: start worker processes
2024/11/07 15:46:52 [notice] 10#10: start worker process 11
2024/11/07 15:46:52 [notice] 10#10: start worker process 12
2024/11/07 15:46:52 [notice] 10#10: start worker process 13
2024/11/07 15:46:52 [notice] 10#10: start worker process 14
2024/11/07 15:46:52 [notice] 10#10: start worker process 15
2024/11/07 15:46:52 [notice] 10#10: start worker process 16
2024/11/07 15:46:52 [notice] 10#10: start worker process 17
2024/11/07 15:46:52 [notice] 10#10: start worker process 18
2024/11/07 15:46:52 [notice] 10#10: start worker process 19
2024/11/07 15:46:52 [notice] 10#10: start worker process 20
2024/11/07 15:46:52 [notice] 10#10: start worker process 21
2024/11/07 15:46:52 [notice] 10#10: start worker process 22
2024/11/07 15:46:52 [notice] 10#10: start worker process 23
2024/11/07 15:46:52 [notice] 10#10: start worker process 24
2024/11/07 15:46:52 [notice] 10#10: start worker process 25
2024/11/07 15:46:52 [notice] 10#10: start worker process 26
49.36.144.186 - - [07/Nov/2024:15:50:53 +0000] "GET / HTTP/1.1" 200 926 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "-"
49.36.144.186 - - [07/Nov/2024:15:50:53 +0000] "GET /assets/index.9d9ae4af.css HTTP/1.1" 200 1816 "http://93.115.26.57:32967/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "-"
49.36.144.186 - - [07/Nov/2024:15:50:55 +0000] "GET /assets/index.13dcb107.js HTTP/1.1" 200 1248382 "http://93.115.26.57:32967/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "-"
49.36.144.186 - - [07/Nov/2024:15:50:58 +0000] "GET /favicon.ico HTTP/1.1" 200 15086 "http://93.115.26.57:32967/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "-"
49.36.144.186 - - [07/Nov/2024:15:50:58 +0000] "GET /fonts/modern-era/ModernEra-Regular.woff2 HTTP/1.1" 200 28632 "http://93.115.26.57:32967/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "-"
49.36.144.186 - - [07/Nov/2024:15:51:05 +0000] "GET /assets/index.13dcb107.js.map HTTP/1.1" 200 4195530 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36" "-"

What is the severity of this bug?

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

@anurag-iitk anurag-iitk added the bug Something isn't working label Nov 7, 2024
@praetoriansentry
Copy link
Member

Weird. Thank you for reporting this @anurag-iitk . Can you try running this?

kurtosis run --enclave cdk . '{args: {"zkevm_bridge_ui_image": "leovct/zkevm-bridge-ui:multi-network"}}'

It seems like something might be wrong with leovct/zkevm-bridge-ui:multi-network-2 but I'm not sure what right now.

@anurag-iitk
Copy link
Contributor Author

Thanks @praetoriansentry, Now this issue is fixed but I got different issue inside the bridge-ui service.
Please look inside this image. When I add the metamsk inside the web browser.
Screenshot from 2024-11-08 10-37-59

@jhkimqd
Copy link
Collaborator

jhkimqd commented Nov 8, 2024

Your error seems like its either a metamask or a setup issue - The L2 RPC doesn't look like an expected output from the Kurtosis CDK deployment. Can you do a cast block --rpc-url <your_l2_rpc_url> and share the results?

@anurag-iitk
Copy link
Contributor Author

Thanks @jhkimqd for your response. Yeah, all issues is fixed and bridge service is working fine.
Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants