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

When started with -v flag, Alfis tries to initialize the DNS port listening #9

Closed
xaozai opened this issue Mar 30, 2021 · 4 comments
Closed

Comments

@xaozai
Copy link

xaozai commented Mar 30, 2021

It looks like when started with -v flag, it tries to initialize the DNS port listening. If another instance of Alfis is already running at this time, the "Failed to bind TCP (UDP) listener" error will occur.

2021-03-30 23:25:40,119 ERROR [alfis::dns_utils] Failed to bind UDP listener: Io(Os { code: 98, kind: AddrInUse, message: "Address already in use" })
2021-03-30 23:25:40,119 ERROR [alfis::dns_utils] Failed to bind TCP listener: Io(Os { code: 98, kind: AddrInUse, message: "Address already in use" })
thread 'main' panicked at 'Can't bind to address: Os { code: 98, kind: AddrInUse, message: "Address already in use" }', src/p2p/network.rs:49:50
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
@r4sas
Copy link
Contributor

r4sas commented Mar 30, 2021

Here no problem. How can you start few services on one port at same time?

@xaozai
Copy link
Author

xaozai commented Mar 30, 2021

I think when running with the flag to display the version just don't need to initialize the DNS listener.

@Revertron
Copy link
Owner

Just run with the -h flag and read the help, ok?

@xaozai
Copy link
Author

xaozai commented Mar 30, 2021

Ups! I'm sorry!

@xaozai xaozai closed this as completed Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants