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

asn_get_routeviews broken #137

poeml opened this Issue Jun 5, 2015 · 0 comments


None yet
1 participant
Copy link

poeml commented Jun 5, 2015

                                                                                                          [          ]

Issue migrated (2015-06-05) from old issue tracker

Title    asn_get_routeviews broken
 Priority   urgent  Status   resolved
Superseder         Nosy List floeff, poeml
Assigned To poeml  Keywords

msg476 (view) Author: floeff Date: 2014-01-27.09:40:26

It seems asn_get_routeviews | asn_import -b main is broken:

Traceback (most recent call last):
File "/usr/bin/asn_get_routeviews", line 197, in
File "/usr/bin/asn_get_routeviews", line 188, in main
for pfx, asnb, asn in pfxasn_uniq:
File "/usr/bin/asn_get_routeviews", line 132, in gen_firstuniq
for tupl in tupls:
File "/usr/bin/asn_get_routeviews", line 100, in gen_asn
for line in lines:
File "/usr/bin/asn_get_routeviews", line 82, in gen_grep
for line in lines:
File "/usr/bin/asn_get_routeviews", line 66, in gen_lines
for line in lines:
File "/usr/bin/asn_get_routeviews", line 48, in gen_cat
for item in s:
EOFError: compressed file ended before the logical end-of-stream was detected

This also leads to the following error message for mb update -a:

psycopg2.IntegrityError: null value in column "prefix" violates not-null constraint

Probably it's related to those messages: updating network prefix ( -> None) updating network prefix ( -> None) updating network prefix ( -> None) updating network prefix ( -> None) updating network prefix ( -> None)

msg478 (view) Author: poeml Date: 2014-01-27.20:34:30

The file is indeed broken.

bzcat oix-full-snapshot-latest.dat.bz2 > /dev/null

bzcat: Compressed file ends unexpectedly;
perhaps it is corrupted? Possible reason follows.

msg479 (view) Author: poeml Date: 2014-01-27.20:55:15

But the routing table snapshots are provided every few hours, and apparently the issue has been fixed. The
version of the file currently mirrored on works.

Let me know if you still get database errors after re-running the command!

msg481 (view) Author: floeff Date: 2014-01-27.21:03:17

Partially indeed - the download works again. However, mb main update yields
errors still. Is this a bug in the file, or something different?

mb -b main update --all --all-mirrors updating network prefix ( -> None)
Traceback (most recent call last):
File "/usr/bin/mb", line 1655, in
r = mirrordoctor.main()
File "/usr/lib/pymodules/python2.7/", line 257, in main
return self.cmd(args)
File "/usr/lib/pymodules/python2.7/", line 280, in cmd
retval = self.onecmd(argv)
File "/usr/lib/pymodules/python2.7/", line 412, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/pymodules/python2.7/", line 1100, in _dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/bin/mb", line 439, in do_update
mirror.prefix = res.prefix
File "", line 1, in
File "/usr/lib/pymodules/python2.7/sqlobject/", line 1049, in _SO_setValue
File "/usr/lib/pymodules/python2.7/sqlobject/", line 523, in
File "/usr/lib/pymodules/python2.7/sqlobject/", line 349, in query
return self._runWithConnection(self._query, s)
File "/usr/lib/pymodules/python2.7/sqlobject/", line 262, in
val = meth(conn, *args)
File "/usr/lib/pymodules/python2.7/sqlobject/", line 346, in _query
self._executeRetry(conn, conn.cursor(), s)
File "/usr/lib/pymodules/python2.7/sqlobject/", line 341, in
return cursor.execute(query)
psycopg2.IntegrityError: null value in column "prefix" violates not-null constraint

msg484 (view) Author: poeml Date: 2014-01-27.21:24:16

Apparently, there is no network prefix in the current routing data snapshot which
contains Too bad, shouldn't happen I guess. It's quite strange and would
mean that the routing data snapshot is incomplete. But, it will probably fix itself

I can reproduce the error here for another mirror:

As for the error spit out by "mb update", I have a local fix here that I'll commit to
SVN now, which makes mb cope like this:

mb update --all STRANGE! There's no prefix containing this hosts IP address
( STRANGE! There's no ASN containing this hosts IP address
( updating geographical coordinates (50.033 19.233 -> 52.0 20.0)

So the command completes to run.

msg485 (view) Author: poeml Date: 2014-01-27.21:31:39

the fix is here:

         Date          User  Action             Args
2014-01-27 21:31:39 poeml  set    status: chatting -> resolved
                                    messages: + msg485
2014-01-27 21:24:16 poeml  set    messages: + msg484
2014-01-27 21:03:17 floeff set    status: resolved -> chatting
                                    messages: + msg481
2014-01-27 20:55:16 poeml  set    status: chatting -> resolved
                                    messages: + msg479
                                    status: unread -> chatting
2014-01-27 20:34:30 poeml  set    assignedto: poeml
                                    messages: + msg478
                                    nosy: + poeml
2014-01-27 09:40:26 floeff create

(end of migrated issue)

@poeml poeml added bug resolved labels Jun 5, 2015

@poeml poeml closed this Jun 5, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.