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

MRT parsing error: MRT dump is truncated: 1492578098 16/4 99 #6

Closed
nagarjung opened this issue May 4, 2017 · 6 comments
Closed

MRT parsing error: MRT dump is truncated: 1492578098 16/4 99 #6

nagarjung opened this issue May 4, 2017 · 6 comments

Comments

@nagarjung
Copy link

nagarjung commented May 4, 2017

Hi @guedou @nv-anssi ,

I am unable to parse the BGP MRT update files collected from openbgpd router.
bgp command used to generate the update files dump all in "/tmp/all-in-%H%M" 300

It parses few records, then fails with below error

MRT parsing error: MRT dump is truncated: 1492578098 16/4 99
MRT parsing error: MRT dump is truncated: 1492578098 16/4 99
MRT parsing error: MRT dump is truncated: 1492578098 16/4 99
MRT parsing error: MRT dump is truncated: 1492578098 16/4 99

I am able to parse the RIB files from the same router, problem is with update files.

But I am able to parse the mrt files from RIPE.

Thank you

@guedou
Copy link
Contributor

guedou commented May 4, 2017

Could you share the dump ? I am not familiar with OpenBGPD.

According to the documentation, you want to use dump updates in "/tmp/updates-in-%H%M" 300

@nagarjung
Copy link
Author

updates-in-1223.gz

Please find the attached file.
I have also tried with dump updates option. It does not work

@guedou
Copy link
Contributor

guedou commented May 4, 2017

It seems to work fine, see:

$ ./mabo dump updates-in-1223.gz
{"type":"update","timestamp":1493880788.0,"peer_as":4755.0,"peer_ip":"121.244.206.224","as_path":"4755 6453 7575 38022 55702","announce":["49.0.31.0/24"],"withdraw":[]}
[..]
MRT parsing error: MRT dump is truncated: 1493880791 16/4 138

The error only states that the file is broken. That could happen when the dump was not properly closed before copying it.

@guedou guedou closed this as completed May 4, 2017
@nagarjung
Copy link
Author

@guedou : But the router is able to successfully parse it.

@guedou
Copy link
Contributor

guedou commented May 11, 2017 via email

@nagarjung
Copy link
Author

@guedou : It was a bug in OpenBSD which was fixed in latest release. Now files are properly generated and mabo is able to parse them.

Thanks

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

2 participants