After upgrade from Debian 10 to 11, emoncms_mqtt.service and service-runner broken

I think you may need to reistall Moquitto as PHP may have updated.

See this which looks a similar situation.

[edit]
Although it didn’t seem to fix it. What PHP version is now installed?