Closed job closed 4 years ago
Some databases are empty because this instance is not on all accesslists, but for example RIPE is expected to be complete
I've tried this on irrd02, and it works fine. Valid gzip files, with content that looks reasonable. Sizes seem similar to yours:
-rw-r--r-- 1 irrd irrd 6 Aug 28 18:05 AFRINIC.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 1.9M Aug 28 18:05 afrinic.db.gz
-rw-r--r-- 1 irrd irrd 5 Aug 28 18:05 ALTDB.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 617K Aug 28 18:05 altdb.db.gz
-rw-r--r-- 1 irrd irrd 7 Aug 28 18:13 APNIC.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 7.7M Aug 28 18:13 apnic.db.gz
-rw-r--r-- 1 irrd irrd 5 Aug 28 18:05 ARIN.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 1.1M Aug 28 18:05 arin.db.gz
-rw-r--r-- 1 irrd irrd 5 Aug 28 18:12 ARIN-NONAUTH.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 965K Aug 28 18:12 arin-nonauth.db.gz
-rw-r--r-- 1 irrd irrd 5 Aug 28 18:12 BBOI.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 56K Aug 28 18:12 bboi.db.gz
-rw-r--r-- 1 irrd irrd 6 Aug 28 18:12 BELL.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 277K Aug 28 18:12 bell.db.gz
-rw-r--r-- 1 irrd irrd 6 Aug 28 18:12 JPIRR.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 303K Aug 28 18:12 jpirr.db.gz
-rw-r--r-- 1 irrd irrd 6 Aug 28 18:12 LEVEL3.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 5.3M Aug 28 18:12 level3.db.gz
-rw-r--r-- 1 irrd irrd 7 Aug 28 18:07 NTTCOM.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 3.2M Aug 28 18:07 nttcom.db.gz
-rw-r--r-- 1 irrd irrd 7 Aug 28 18:14 RADB.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 17M Aug 28 18:14 radb.db.gz
-rw-r--r-- 1 irrd irrd 4 Aug 28 18:12 RGNET.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 4.9K Aug 28 18:12 rgnet.db.gz
-rw-r--r-- 1 irrd irrd 8 Aug 28 18:14 RIPE.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 38M Aug 28 18:14 ripe.db.gz
-rw-r--r-- 1 irrd irrd 8 Aug 28 18:12 RIPE-NONAUTH.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 1.2M Aug 28 18:12 ripe-nonauth.db.gz
-rw-r--r-- 1 irrd irrd 5 Aug 28 18:13 TC.CURRENTSERIAL
-rw-r--r-- 1 irrd irrd 847K Aug 28 18:13 tc.db.gz
I'm guessing you're seeing this on OpenBSD? We use the Python standard library gzip, perhaps it is broken somehow. You could try:
import gzip
content = b"Lots of content here" * 1000
with gzip.open('gziptest.txt.gz', 'wb') as f:
f.write(content)
And see if that produces a valid gzip file with your Python.
yes, that works
bench$ . irrd-venv/bin/activate
(irrd-venv) bench$ python
Python 3.7.8 (default, Aug 20 2020, 20:55:46)
[Clang 10.0.1 ] on openbsd6
Type "help", "copyright", "credits" or "license" for more information.
>>> import gzip
>>> content = b"Lots of content here" * 1000
>>> with gzip.open('gziptest.txt.gz', 'wb') as f:
... f.write(content)
...
20000
>>>
(irrd-venv) bench$ gunzip gziptest.txt.gz
(irrd-venv) bench$
it appears the database dumps are incomplete on my 4.1.0rc2 instance