ChainMovers / suibase

Sui development environment and cookbook.
https://suibase.io
Apache License 2.0
35 stars 6 forks source link

request timeout on "dsui client gas" #82

Closed georgescharlesbrain closed 8 months ago

georgescharlesbrain commented 8 months ago

Having some issues here with suibase.

steps taken: ~/suibase/update Current version 0.1.5-1b9b167

devnet update devnet_proxy │ http://0.0.0.0:44341 │ * │ devnet │ https://fullnode.devnet.sui.io:443

"dsui client gas" gives Request timeout

georgescharlesbrain commented 8 months ago

"sui client gas" did work

mario4tier commented 8 months ago

Is it intermittent or all the time?

Can you please show me the output of "devnet links"? (to see the health of the RPC servers from your setup).

mario4tier commented 8 months ago

If you are block by this, you can try disabling the proxy with adding proxy_enabled: false in ~/suibase/workdirs/devnet/suibase.yaml followed by "devnet stop" and start to make sure the config is well applied.

...but I would prefer to figure out the problem when you have time.

georgescharlesbrain commented 8 months ago

"devnet links" does not return anything, it just hangs

proxy_enabled: false --> dsui client gas works

proxy_enabled: true + devnet  stop & start 
--> dsui client gas gives request timeout

--> devnet links still no return

mario4tier commented 8 months ago

A behavior I have never seen before (hanging and timeouts). That is interesting (to me!). The RPC proxy is not working on this machine.

(1) Is this Linux, MacOS...?

(2) Is this a "powerful modern" computer with plenty of RAM etc...?

(3) When proxy is enabled, what does "devnet status" shows? Does the "pid" of the proxy server changes or it remains the same? (it should remain the same when running healthy).

(4) Check for any hint of errors in "~/suibase/workdirs/common/logs/suibase-daemon.log"... or even better, attach it to this issue.

georgescharlesbrain commented 8 months ago

1,2 : Ubuntu

3: devnet stop, devnet start after setting proxy_enabled: true
devnet status --> no return

4. devnet status: nothing is being returned in output, log:
[2023-10-21T08:04:02Z INFO jsonrpsee_server::server] Accepting new connection 1/100

ctrl+c
[2023-10-21T08:06:55Z WARN jsonrpsee_server::server] HTTP serve connection failed hyper::Error(IncompleteMessage)

devnet status: nothing is being returned in output, log:
[2023-10-21T08:07:00Z INFO jsonrpsee_server::server] Accepting new connection 1/100

georgescharlesbrain commented 8 months ago

See resolution in #83