Mixnode 1.1.3 default configuration problem with Metrics http API endpoint

Hello everyone.

After update 1.1.3 Nym Binaries v2024.6-chomp Releases · nymtech/nym · GitHub when performing a new nym-node deployment and initialization (in mixnode mode) a configuration file .nym/nym-nodes//config/config.toml is generated.

In the configuration section:

##### http-API nym-node config options #####
[http]
# Socket address this node will use for binding its http API.
# default: `0.0.0.0.0:8080`.
bind_address = `0.0.0.0.0.0:8080`.

The default API port is set to 8080 which is responsible for generating the Mixnode Stats at https://explorer.nymtech.net/. This default configuration is wrong, as stated in the operator’s guide the port for “Metrics http API endpoint” must be 8000 VPS Setup - Nym Operators Guide

If you detect that the explorer does not detect the statistics correctly, it is solved by modifying the port to 8000 in this section of the config.tolm file of your mix-node:

##### http-API nym-node config options #####
[http]
# Socket address this node will use for binding its http API.
# default: `0.0.0.0.0:8080`.
bind_address = `0.0.0.0.0.0:8000`.

Best regards.

3 Likes

Hey @jleiva
You bring a good point and it helped me realize that there is a flaw in the Nym Wallet port setup, which on Mixnode bonding menu default to port 8000 instead of to 8080.

Solution

However the way to go is NOT to change binding address in your .nym/nym-nodes/<NODE_ID>/config/config.toml to 0.0.0.0:8000 but to change the value in the wallet when bonding.

I made it more explicit in the documentation:

Everyone please keep the http port in both config.toml and Wallet API setup to 8080 because that’s where the API is looking for that endpoint for all modes of nym-node.

Thank you very much for flagging and have a great day.

2 Likes

How crucial is it to have port 8000 instead of 8080?