Is this meant to happen when I run the rebuild command?

It usually prints that message when you log in and you can just control-c to quite and then

cd /var/discourse
./launcher rebuild app

I know some ways that I’d fix it, but none are simple enough to explain here.

But sure, take a snap shot and see if you can fix it. If things get really bad you can step back to the snapshot.