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
Assertion `!attr->community' failed #62
Comments
I think I have been seeing some similar failures in processing that we do. |
I've been trying to track this problem down, and I have some ideas about what is going on, but I can't explain why so many dumps failed. Can you give me a bit more information?
|
This last time it worked was on March 20th, since then it has been failing daily at the same Assertion. I don't have any more detailed logs than above. |
It works fine when only pulling from RIS collectors. |
Thanks for checking. Is the problem is reproducible? That is, if you run your script on yesterday's data, would it fail in the same way? Or does the problem only happen when processing data in real time? |
Nevermind, I think I've been able to reproduce the problem. Working on a patch now. |
Ok, @reuteran, can you try checking out the Please try this patch and if it solves the problem for you, I'll merge it into master. Also, we have an early beta version of BGPStream v2 available which uses a completely different parsing library that is much more robust, so should be able to handle these cases more gracefully (for example, the patched v1 code can only read 253,809 elems from one of these eqix dumps before it has to give up, whereas v2 can read all 8,733,060 elems). If you are interested in being part of the testing of this code, please contact bgpstream-info@caida.org for more information. |
Thanks! I tested the build you provided. The assertion error is fixed, but the problem now is that my script has slowed down considerably. Usually it took 9 hours to run, now its been running for almost 2 days (no idea if its actually gonna finish or if its stuck). |
That is unusual. Those changes shouldn't have affected anything like that. I'll try and reproduce the problem and get back to you. |
I haven't been able to reproduce this problem for the March 29th 00:00 RIB dumps. What time period were you processing when it got stuck? |
Hmm, it got stuck for the dumps on 2017-03-21 and 2017-04-02 (whole day in both cases). Although for 2017-04-03 it worked. I will run a few more and let you know if this keeps happening. |
@reuteran Do you still see any error messages when it happens? Could you post it if you see them? Thanks! |
The scripts that were stuck have now completed on second try, in about the same time as usual. So everything is working as it should now
|
I had not pulled that commit. Will give it a try now. |
I have the same issue with the route-views.eqix data source, but I'm using the bgpreader command line. I have cloned the bgpdump-fixes branch and I'm testing now. |
bgpreader stop processing the route-views.eqix data source, but it will continue to read other data sources if provided.
|
@sclintow thank you for providing the feedback. We will investigate this issue and get back to you soon. |
Yeah, that I'm hesitant to spend much time improving the parser (based on libbgpdump) in v1 because we have a completely new parser implemented for v2. |
I'm going to merge those fixes into master and will close this issue. Feel free to reopen it if you have any further problems/questions. |
I have a daily script that uses pybgpstream to load RIB data from all routeviews/ris collectors.
This has been working without problems for a few months now.
The last few days, this has been failing with this error message:
python3: bgpdump_lib.c:970: process_one_attr: Assertion !attr->community' failed.
I am using the bgpstream build from the master branch (commit 1115a80), both for the lib and for pybgpstream.
The error message is preceded by a lot of 'incomplete dump' error messages:
I haven't changed anything in the system, or the script.
The text was updated successfully, but these errors were encountered: