dragonresearch / rpki.net

Dragon Research Labs rpki.net RPKI toolkit
54 stars 26 forks source link

rpkigui-import-routes : DataError: integer out of range #856

Open randyqx opened 7 years ago

randyqx commented 7 years ago

This is happening hourly on both ca.rg.net and ca0.rpki.net. Has been going on for a couple of days.

From: root@ca.rg.net (Cron Daemon)
Subject: Cron <rpki@ca> /usr/lib/rpki/rpkigui-import-routes
To: rpki@ca.rg.net
Date: Fri, 10 Feb 2017 02:14:51 +0000

2017-02-10 02:14:51 rpkigui-import-routes[9886]: integer out of range
: DataError: integer out of range

Running it manually gets

ca.rg.net:/root# /usr/lib/rpki/rpkigui-import-routes
2017-02-10 05:20:35 rpkigui-import-routes[17542]: FATAL:  Peer authentication failed for user "rpki"
 : OperationalError: FATAL:  Peer authentication failed for user "rpki"
sraustein commented 7 years ago

The errors when you run it by hand are because you're running it as root instead of as user rpki. You've seen this movie before.

Original error in wretched import script...dunno. Anything in logs?

randyqx commented 7 years ago
ca.rg.net:/root# su rpki -c /usr/lib/rpki/rpkigui-import-routes
2017-02-10 18:03:26 rpkigui-import-routes[12502]: integer out of range
: DataError: integer out of range

nothing in logs. no debug option in script.

randyqx commented 7 years ago

/usr/lib/rpki/rpkigui-import-routes refers to

from rpki.gui.routeview.util import import_routeviews_dump

and then calls it. but i can not find the python

sraustein commented 7 years ago

https://github.com/dragonresearch/rpki.net/blob/master/rpki/gui/routeview/util.py line 192.

randyqx commented 7 years ago

From: John Kemp kemp@network-services.uoregon.edu Subject: Re: format To: Randy Bush randy@psg.com Date: Sat, 4 Mar 2017 13:32:56 -0800

has the format of 'latest' changed a month or two ago?

We are rolling everything to the newest versions of Quagga, which include large communities. That is on one or two collectors now.

So I'm recommending that people grab: https://bitbucket.org/ripencc/bgpdump/downloads as that version of bgpdump will output correctly for large communities.

I'll post this on the website. Let me know if there is some other issue.