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

config.axon.port ignored when port parameter is used or defaults to 8091 #2488

Closed
mltrev23 opened this issue Nov 27, 2024 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@mltrev23
Copy link

Describe the bug

Hey team,

I noticed that this line in the axon.py file:

config.axon.port = port or DEFAULTS.axon.port

...ends up replacing config.axon.port with the port parameter (if provided) or defaults to 8091. This makes the config.axon.port setting kind of pointless since it only gets used if no port is passed explicitly.

What’s the recommended way to set a custom port? Should we always pass it as a parameter?

Thanks!

To Reproduce

  1. python neurons/miner.py --axon.port 8092
  2. However, you could see the terminal log like following:
    Axon created: Axon([::], 8091, ..., stopped, ['Synapse'])
  3. If I fix the code to hand in port as a param, axon is created on 8092.

Expected behavior

We can't run multiple neurons on the same device.

Screenshots

No response

Environment

Ubuntu 22.04 Bittensor 8.3.1

Additional context

No response

@mltrev23 mltrev23 added the bug Something isn't working label Nov 27, 2024
@thewhaleking
Copy link
Contributor

👀

@garrett-opentensor
Copy link
Collaborator

This issue is resolved with the release of Bittensor 8.4.1 #2496

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants