lodestar icon indicating copy to clipboard operation
lodestar copied to clipboard

Gateway Time-out downloading beacon state from lodestar-prater server

Open twoeths opened this issue 2 years ago • 3 comments

Describe the bug

devops@contabo-20:~$ curl -H 'Accept: application/octet-stream' https://lodestar-prater.chainsafe.io/eth/v2/debug/beacon/states/3367104 --output state_3367104_v2.ssz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   132  100   132    0     0      2      0  0:01:06  0:01:00  0:00:06    33
devops@contabo-20:~$ cat state_3367104_v2.ssz
<html>
<head><title>504 Gateway Time-out</title></head>
<body>
<center><h1>504 Gateway Time-out</h1></center>
</body>
</html>

I can download the state the other time

devops@contabo-20:~$ curl -H 'Accept: application/octet-stream' https://lodestar-prater.chainsafe.io/eth/v2/debug/beacon/states/3367104 --output state_3367104_v2.ssz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 49.8M  100 49.8M    0     0   845k      0  0:01:00  0:01:00 --:--:-- 5074k

Expected behavior

No error in all cases

twoeths avatar Jul 04 '22 07:07 twoeths

figured out that the issue happened with contabo and hetzner cloud provider, not with my local environment, so not sure what we can do here. Is it something related to the client network configuration, not the server side 🤔 ?

twoeths avatar Jul 04 '22 08:07 twoeths

Should really have the debug route enabled? This is a big DOS vector for unsecured servers like this. @tuyennhv why do you need to pull the state from this node specifically?

dapplion avatar Jul 05 '22 19:07 dapplion

enabled? This is a big DOS vector for unsecured servers like this. @tuyennhv why do you need to pull the state from this node s

I wanted to benchmark the time to download state (in comparison to infura, for example)

twoeths avatar Jul 06 '22 03:07 twoeths

Closing issues for specific incidents on old versions of Lodestar, please re-open if it happens with latest stable

dapplion avatar May 29 '23 06:05 dapplion