/addresses endpoint hangs seemingly indefinitely
Summary
i have v1.16.1 bee nodes on two Guix machines, pretty much the same environment except their network upstream.
the /addresses endpoint hangs on all the 4 nodes on machine 1, and works on all 4 nodes on machine 2.
the other endpoints seem to work, e.g. /status works as expected.
$ date
Wed Jun 28 05:24:00 PM CEST 2023
alendvai@serlap ~ $ curl -s localhost:1800/addresses | jq
^C
alendvai@serlap ~ $ date
Wed Jun 28 05:26:38 PM CEST 2023
i don't see anything relevant in the log, not even the fact that the endpoint is being served.
on machine 2 (where it works), i can see the expected log line:
2023-06-28 17:27:47 "time"="2023-06-28 17:27:47.833371" "level"="info" "logger"="node/api" "msg"="debug api access" "ip"="127.0.0.1" "method"="GET" "host"="localhost:1800" "uri"="/addresses" "proto"="HTTP/1.1" "status"=200 "size"=648 "duration"="166.311µs" "user-agent"="curl/7.85.0"
Steps to reproduce
i have no idea.
restarting the node fixed the issue.
restarting was strange though: it was using quite some CPU time (~40-50% for a minute), and it has failed to finish shutting down in the 60 seconds grace period i have on my setup. the logs were showing that the shutdown was happening:
2023-06-28 17:29:32 "time"="2023-06-28 17:29:32.447492" "level"="info" "logger"="node" "msg"="received interrupt signal"
2023-06-28 17:29:32 "time"="2023-06-28 17:29:32.448517" "level"="info" "logger"="node" "msg"="shutting down..."
2023-06-28 17:29:32 "time"="2023-06-28 17:29:32.449686" "level"="info" "logger"="node/api" "msg"="api shutting down"
2023-06-28 17:29:47 "time"="2023-06-28 17:29:47.451739" "level"="info" "logger"="node/pusher" "msg"="pusher shutting down"
2023-06-28 17:29:47 "time"="2023-06-28 17:29:47.451964" "level"="info" "logger"="node/pullsync" "msg"="pull syncer shutting down"
2023-06-28 17:29:47 "time"="2023-06-28 17:29:47.451961" "level"="info" "logger"="node/puller" "msg"="puller shutting down"
2023-06-28 17:30:34 "time"="2023-06-28 17:30:34.988409" "level"="warning" "logger"="node" "msg"="clef is not enabled; portability and security of your keys is
sub optimal"