I have the same problem and when I turn off the exec part of discourse-animated-avatars the rebuild works.