On 20 Feb (11:52:33), Manager wrote:
Hello,
im trying to enable prometheus metrics, and... something goes wrong:
torrc: MetricsPort 9166 MetricsPortPolicy accept *
after tor restart in logs: Tor[15368]: Opening Metrics listener on 127.0.0.1:9166 Tor[15368]: Could not bind to 127.0.0.1:9166: Address already in use. Is Tor already running?
-- before restart, no one listen on this port, as `ss | grep :9166` can say.
there is also backtrace in logs: Tor[15368]: connection_finished_flushing(): Bug: got unexpected conn type 20. (on Tor 0.4.5.6 ) Tor[15368]: tor_bug_occurred_(): Bug: ../src/core/mainloop/connection.c:5192: connection_finished_flushing: This line should not have been reached. (Future instances of this warning will be silenced.) (on Tor 0.4.5.6 )
This was reported 3 days ago:
https://gitlab.torproject.org/tpo/core/tor/-/issues/40295
And we pushed a fix upstream and will be in the next tor stable release thus 0.4.5.7. As for the timeline of that release, unclear but I will make a point to the network team to make it sooner than usually because this problem is effectively making the MetricsPort unusable :S.
Sorry about this. Thanks for the report!!!
David
tor-relays@lists.torproject.org