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

etcd: Start node got etcd error: stm.Commit() failed - etcdserver: request timed out #9560

Open
yyforyongyu opened this issue Feb 27, 2025 · 0 comments

Comments

@yyforyongyu
Copy link
Member

Found from this build,

--- FAIL: TestLightningNetworkDaemon/tranche03/134-of-271/bitcoind/send_multi_path_payment (17.82s)
        harness_node.go:403: Starting node (name=Alice) with PID=15804
        harness_node.go:403: Starting node (name=Bob) with PID=15824
        harness.go:482: 
            	Error Trace:	/home/runner/work/lnd/lnd/lntest/harness.go:482
            	            				/home/runner/work/lnd/lnd/lntest/harness.go:501
            	            				/home/runner/work/lnd/lnd/itest/lnd_mpp_test.go:269
            	            				/home/runner/work/lnd/lnd/itest/lnd_mpp_test.go:23
            	            				/home/runner/work/lnd/lnd/lntest/harness.go:297
            	            				/home/runner/work/lnd/lnd/itest/lnd_test.go:130
            	Error:      	Received unexpected error:
            	            	waiting for server active: receive server state err: rpc error: code = Unavailable desc = error reading from server: EOF
            	Test:       	TestLightningNetworkDaemon/tranche03/134-of-271/bitcoind/send_multi_path_payment
            	Messages:   	failed to start node Bob
        harness.go:375: finished test: send_multi_path_payment, start height=944, end height=945, mined blocks=1
        harness.go:334: test failed, skipped cleanup
    lnd_test.go:138: Failure time: 2025-02-27 10:02:25.753
FAIL

Digging the log, it turns out the request made to etcd has timed out, causing the node to fail to be started,

2025-02-27 10:02:13.800 [DBG] RPCS interceptor.go:791: [/lnrpc.State/SubscribeState] requested
{"level":"warn","ts":"2025-02-27T10:02:20.952Z","logger":"etcd-client","caller":"[email protected]/retry_interceptor.go:62","msg":"retrying of unary invoker failed","target":"etcd-endpoints://0xc001045340/127.0.0.1:14928","attempt":0,"error":"rpc error: code = Unavailable desc = etcdserver: request timed out"}
2025-02-27 10:02:20.952 [ERR] LTND config_builder.go:815: unable to create chain control: unable to create wallet: etcd error: stm.Commit() failed - etcdserver: request timed out
2025-02-27 10:02:20.952 [ERR] LTND lnd.go:169: Shutting down due to error in main method err="unable to create chain control: unable to create wallet: etcd error: stm.Commit() failed - etcdserver: request timed out"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant