Rebuild failed due to ruby gem incompatibility

Somehow you have ruby 2.7.0 where I have ruby 3.2.0. Perhaps you could show your complete log - something has failed to be updated. The usual sequence is

cd /var/discourse
git pull
./launcher rebuild app

(although in your case, not app, but polyf)

In a nearby thread:

4 Likes