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

IPFS throws a random DNS error #630

Closed
JayArrowz opened this issue Jul 5, 2019 · 8 comments
Closed

IPFS throws a random DNS error #630

JayArrowz opened this issue Jul 5, 2019 · 8 comments
Assignees
Labels
Bug 🐛 Something isn't working
Milestone

Comments

@JayArrowz
Copy link
Collaborator

JayArrowz commented Jul 5, 2019

This error is continuously thrown every ms
When i added a file to IPFS, 10 minutes later it throws a random error:

image.png

@JayArrowz JayArrowz added this to the IPFS integration for DFS milestone Jul 5, 2019
@JayArrowz JayArrowz added the Bug 🐛 Something isn't working label Jul 5, 2019
@JayArrowz
Copy link
Collaborator Author

image.png

@JayArrowz
Copy link
Collaborator Author

image.png

@richardschneider
Copy link
Collaborator

This indicates that a Multicast DNS packet contained a domain name with a byte greater than 0x7F. This is highly unusual in that normally only printable 7-bit ASCII is used for a domain name. Was it a work network or home network you were running on?

The exception is caught by MulticastService.OnDnsMessage and is just logged, so you app will not suffer an unhandled exception.

@richardschneider
Copy link
Collaborator

When i added a file to IPFS, 10 minutes later it throws a random error:

Multicast DNS is used by IPFS to discover other peers on the local network. It starts listening when the IPFS engine is started. The engine is started when you add/get a file from IPFS.

Why it takes 10 minutes after the start to get a malformed packet depends on the devices that are broadcasting on the local network.

I'll write a small program to log Multicast DNS packets and abort when a malformed packet it received.

@richardschneider
Copy link
Collaborator

@atlassanjay Could you run the traffic program in net-mdns. It will print all MDNS packets and abort when the packet cannot be decoded.

@JayArrowz
Copy link
Collaborator Author

JayArrowz commented Jul 22, 2019

Here is the first log, i am trying to capture the exact wireshark packet that causes this:

https://app.zenhub.com/files/170142194/bd6af375-8579-481b-a859-991316c297f9/download

Currently i see on a Apple device causing this. Can it be that Apple devices use UTF8 in their DNS packets?

@richardschneider
Copy link
Collaborator

Will fix Makaretu.Dns and make a new release for IPFS Engine.

@richardschneider
Copy link
Collaborator

@atlassanjay could you get the latest net-mdns and rerun the traffic program?

@nshCore nshCore closed this as completed Jul 24, 2019
@nshCore nshCore modified the milestones: IPFS integration for DFS, Test network Aug 29, 2019
@nshCore nshCore modified the milestones: poa-testnet, dfs-marketplace, dfs-development Nov 18, 2019
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