bee
bee copied to clipboard
Swarm Desktop with Bee 1.17.2 does not start
Context
Bee version 1.17.2 Swarm Desktop 0.28.0 OS: Linux
Summary
I upgraded to the latest Desktop version (0.28.0) because there was a notification about a new version. There was a panic first (see at the end), but I built the latest master (1.17.2-551d16d5) and then I got different errors:
"time"="2023-08-16 21:01:06.853552" "level"="error" "logger"="node" "msg"="got error, shutting down..." "error"="unable to create kademlia: unable to create metrics storage: reso
urce temporarily unavailable"
"time"="2023-08-16 21:01:08.105972" "level"="info" "logger"="node/api" "msg"="debug api access" "ip"="127.0.0.1" "method"="GET" "host"="127.0.0.1:2635" "uri"="/chainstate" "proto
"="HTTP/1.1" "status"=200 "size"=91 "duration"="1.735023605s" "referrer"="http://localhost:3054/" "user-agent"="Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/1
16.0"
"time"="2023-08-16 21:01:08.434274" "level"="error" "logger"="node" "msg"="failed to build bee node" "error"="unable to create kademlia: unable to create metrics storage: resourc
e temporarily unavailable"
and
time"="2023-08-16 21:17:33.006225" "level"="info" "logger"="node" "msg"="bootstrapper created" "elapsed"="1m0.063959383s"
"time"="2023-08-16 21:17:33.006291" "level"="error" "logger"="node" "msg"="bootstrapper failed to fetch batch state" "error"="1 error occurred:\n\t* timed out waiting for kademlia peers\n\n"
Following the suggestion of @ldeffenb, I changed the use-postage-snapshot to false and the node started. Previously I had Bee 1.16 and it worked with the same config file.
Expected behavior
Ideally it would be good if the released version would not panic. Also it is worth considering the default value for the use-postage-snapshot for light nodes.
Panic logs:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x58 pc=0xf9876a]
goroutine 39 [running]:
github.com/ethersphere/bee/pkg/storer.New({0x1b02fd8, 0xc000e860a0}, {0x0, 0x0}, 0xc000ecfbe0?)
github.com/ethersphere/bee/pkg/storer/storer.go:554 +0x5ea
github.com/ethersphere/bee/pkg/node.bootstrapNode({0x1b02fd8, 0xc000e860a0}, {_, _}, {{_, _, _}}, {0xc001078de0, 0x20, 0x21}, ...)
github.com/ethersphere/bee/pkg/node/bootstrap.go:177 +0x15c9
github.com/ethersphere/bee/pkg/node.NewBee({0x1b02fd8, 0xc000e87450}, {0x1577b49, 0x5}, 0xc000030060, {0x1b05480?, 0xc001188000}, 0x1, {0x1b0ed68, 0xc000e87400}, ...)
github.com/ethersphere/bee/pkg/node/node.go:599 +0x3517
github.com/ethersphere/bee/cmd/bee/cmd.buildBeeNode({0x1b02fd8, 0xc000e87450}, 0xc000e87310, 0xc00075bb80?, {0x1b0ed68, 0xc000e87400})
github.com/ethersphere/bee/cmd/bee/cmd/start.go:295 +0x1505
github.com/ethersphere/bee/cmd/bee/cmd.buildBeeNodeAsync.func1()
github.com/ethersphere/bee/cmd/bee/cmd/start.go:200 +0x3a
created by github.com/ethersphere/bee/cmd/bee/cmd.buildBeeNodeAsync
github.com/ethersphere/bee/cmd/bee/cmd/start.go:199 +0x110