Error rebuilding on 2GB RAM without swap

So you originally installed without running discouse-setup?