-reindex
is currently broken; I believe this bug was introduced in #5975 (and I commented there as well: #5975 (comment)). Can be reproduced by running reindex.py.
This might have a quick fix but I’m not sufficiently familiar with the changes in that pull to be sure.