Discourse layouts plugin is broken

Comment out the layout plugin on your .yml file and launch the rebuild again.
Then wait until @angus fixes the problem before rehabilitating it.