-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Intermittent "Error: MAC Invalid" #945
Comments
is there something I can do to help track it down, I see it often enough that it will probably recur while I'm watching. I currently load the Node environment (used to run code tests) with { ipfs:
{ repo: '/tmp/ipfs_dweb20170804',
config: {
Addresses: Swarm: [ '/libp2p-webrtc-star/dns4/star-signal.cloud.ipfs.team/wss' ] ,
Discovery: { webRTCStar: { Enabled: true } }
},
EXPERIMENTAL: { pubsub: true } },
store: 'leveldb',
partition: 'dweb20170804' } And the browser environment with same except store: 'indexeddb' |
Just flagging .. still seeing this "MAC Invalid" pretty regularly. |
Thanks, still not sure where this comes from, might simply be nodes with different config, or an actual issue on our side |
@dignifiedquire I have a hunch that it might be VPN related? @mitra42 are you on a VPN when getting this error, I believe @whyrusleeping got the same error recently and he is on a VPN. |
No - not on a VPN either at home or at Internet Archive. I'll try and note next time I see it what the network config is. Is there anything you'd like me to check at that point? |
Nothing in particular, just a few things that come to mind:
|
@dryajov this is not MAC as in MAC addresses, it is as in Message Authentication Code :) It comes from https://github.com/libp2p/js-libp2p-secio/blob/master/src/etm.js#L54-L56, which is a Buffer comparison. Another error that sometimes is seen is "Stream ended prematurely" which comes from the same module https://github.com/libp2p/js-libp2p-secio/blob/master/src/handshake/index.js#L19-L25 |
ah, lol! Feeling pretty dumb right now 😁 . The fact its coming from |
Note - I'm still seeing this, (not necessarily a problem) |
Happening for me too, I'm following the example https://github.com/ipfs/js-ipfs/blob/master/examples/browser-browserify/src/index.js |
Hi all, this is a known issue although very hard to replicate. If you get a script that makes it happen 100% of the time it would help us a ton. What is happening is that the SECIO (our crypto channel) protocol fails and IPFS aborts dialing to that peer. It is a non-destructive error as it is isolated to that specific connection. |
Would it be useful if that error was then caught and didn't generate a
console exception log (which I presume is why I and others notice it).
- Mitra
On 24/10/17 5:14 AM, David Dias wrote:
Hi all, this is a known issue although very hard to replicate. What is
happening is that the SECIO (our crypto channel) protocol fails and
IPFS aborts dialing to that peer. It is a non-destructive error as it
is isolated to that specific connection.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#945 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACI4lYQudaZ_S9prjWFU-KTiywQQaWW2ks5svdSRgaJpZM4O3CKZ>.
--
Mitra Ardron - mitra@mitra.biz +1(510)423-1767
|
@jacobheun @olizilla this has been officially fixed, correct? |
I'll verify, but this should be resolved in newer versions of libp2p-switch so that valid connection failures aren't being thrown. |
I haven't seen this in a while, maybe time to close ? |
Let's close and reopen if necessary :) Thanks @mitra42 |
License: MIT Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Type: Bug
Severity: Medium
Description:
After starting IPFS it sometimes gives a "MAC invalid" error and stack trace - intermittent, doesn't happen every time. Stack trace below
I'm running my code in github.com/internetarchive/dweb-transport, following README.md instructions, and then opening examples/example_smartdict.html, I have seen intermittent crashes, and now that the core code is more stable I'm trying to track them down, I've seen this one a number of times, the code seems to continue running after this error.
The text was updated successfully, but these errors were encountered: