Rebuilding gives db:migrate error due to broken plugin

What version of postgres are you using? I think that 12 is required. 13 is recommended.