filecoin-saturn / L2-node

Saturn L2 Node implementation in Golang
MIT License
35 stars 9 forks source link

Unable to connect to L1s #97

Open fabricedesre opened 1 year ago

fabricedesre commented 1 year ago

I'm trying to run Saturn-l2 with a mostly default config. It gets L1 addresses but fails to connect to any because of SSL issues:


2023-01-12T02:48:19.566Z        INFO    saturn-l2       saturn-l2/main.go:428   Using root dir /data/saturn-l2/data

2023-01-12T02:48:19.566Z        INFO    saturn-l2       saturn-l2/main.go:200   parsed config   {"cfg": {"Port":1414,"fil_wallet_address":"f12grk3fby333a5qshplrxxvxaukb7vgscltltz2i","MaxDiskSpace":6597069766656,"RootDir":"/data/saturn-l2/data","L1DiscoveryAPIUrl":"https://orchestrator.strn.pl/nodes/nearby","MaxL1Connections":100,"MaxConcurrentL1Requests":5,"UseTestL1IPAddrs":false,"TestL1IPAddr":null,"MaxDownloadPerRequest":2147483648}}
2023-01-12T02:48:19.566Z        INFO    saturn-l2       saturn-l2/main.go:211   read l2 node Id {"l2Id": "d73b0a19-a2ff-46e7-84c9-865595f6d53f"}
2023-01-12T02:48:19.566Z        INFO    saturn-l2       saturn-l2/main.go:221   waiting to discover L1s...
INFO: Saturn Node will try to connect to the Saturn Orchestrator...
2023-01-12T02:48:21.624Z        INFO    saturn-l2       saturn-l2/main.go:232   discovered L1s  {"l1 IP Addrs": "65.109.17.174, 50.7.44.82, 95.217.122.42, 95.217.122.13, 91.108.24.210, 153.92.126.211, 37.19.222.215, 212.63.204.34, 13.50.110.165, 65.20.112.101, 85.206.160.209, 82.135.241.79, 31.169.51.133, 185.125.168.135, 194.182.34.235, 158.160.7.188, 88.218.240.13, 66.90.95.21, 94.250.249.100, 158.160.49.11, 88.218.240.10, 88.218.240.12, 185.174.136.197, 51.250.42.237, 88.218.240.11"}
INFO: Saturn Node was able to connect to the Orchestrator and will now start connecting to the Saturn network...
2023-01-12T02:48:22.101Z        INFO    car-store       carstore/carstore.go:173        starting car store
2023-01-12T02:48:22.101Z        INFO    car-store       carstore/carstore.go:190        successfully started car store
2023-01-12T02:48:22.101Z        INFO    saturn-l2       saturn-l2/main.go:335   Server listening on 127.0.0.1:1414
WebUI: http://localhost:1414/webui
API: http://localhost:1414/
2023-01-12T02:48:22.103Z        ERROR   l1-interop      l1interop/l1sseclient.go:145    failed to send register request to l1; will backoff and retry   {"l1": "95.217.122.13", "err": "Get \"https://95.217.122.13/register/d73b0a19-a2ff-46e7-84c9-865595f6d53f\": x509: certificate is valid for strn.pl, core.strn.pl, rings.strn.pl, not strn-test.pl"}
2023-01-12T02:48:22.104Z        ERROR   l1-interop      l1interop/l1sseclient.go:145    failed to send register request to l1; will backoff and retry   {"l1": "65.109.17.174", "err": "Get \"https://65.109.17.174/register/d73b0a19-a2ff-46e7-84c9-865595f6d53f\": x509: certificate is valid for strn.pl, core.strn.pl, rings.strn.pl, not strn-test.pl"}
2023-01-12T02:48:22.104Z        ERROR   l1-interop      l1interop/l1sseclient.go:145    failed to send register request to l1; will backoff and retry   {"l1": "95.217.122.42", "err": "Get \"https://95.217.122.42/register/d73b0a19-a2ff-46e7-84c9-865595f6d53f\": x509: certificate is valid for strn.pl, core.strn.pl, rings.strn.pl, not strn-test.pl"}
2023-01-12T02:48:22.116Z        ERROR   l1-interop      l1interop/l1sseclient.go:145    failed to send register request to l1; will backoff and retry   {"l1": "65.20.112.101", "err": "Get \"https://65.20.112.101/register/d73b0a19-a2ff-46e7-84c9-865595f6d53f\": x509: certificate is valid for strn.pl, core.strn.pl, rings.strn.pl, not strn-test.pl"}
2023-01-12T02:48:22.116Z        ERROR   l1-interop      l1interop/l1sseclient.go:145    failed to send register request to l1; will backoff and retry   {"l1": "212.63.204.34", "err": "Get \"https://212.63.204.34/register/d73b0a19-a2ff-46e7-84c9-865595f6d53f\": x509: certificate is valid for strn.pl, core.strn.pl, rings.strn.pl, not strn-test.pl"}
2023-01-12T02:48:22.120Z        ERROR   l1-interop      l1interop/l1sseclient.go:145    failed to send register request to l1; will backoff and retry   {"l1": "153.92.126.211", "err": "Get \"https://153.92.126.211/register/d73b0a19-a2ff-46e7-84c9-865595f6d53f\": x509: certificate is valid for strn.pl, core.strn.pl, rings.strn.pl, not strn-test.pl"}
2023-01-12T02:48:22.120Z        ERROR   l1-interop      l1interop/l1sseclient.go:145    failed to send register request to l1; will backoff and retry   {"l1": "37.19.222.215", "err": "Get \"https://37.19.222.215/register/d73b0a19-a2ff-46e7-84c9-865595f6d53f\": x509: certificate is valid for strn.pl, core.strn.pl, rings.strn.pl, not strn-test.pl"}
fabricedesre commented 1 year ago

Using the default configuration works and uses https://orchestrator.strn-test.pl/nodes/nearby

Does that mean that this is not part of the production FileCoin network?

DiegoRBaquero commented 1 year ago

It seems to be using production orchestrator??

"L1DiscoveryAPIUrl":"https://orchestrator.strn.pl/nodes/nearby"

It should be using test orchestratror

fabricedesre commented 1 year ago

Using the production orchestrator is what the README documents... If this is not ready to use yet, the README should be updated and the current status of test vs. production made clear for people that want to run a L2.

Does that also apply to the FileCoin Station software?