Device service not connecting

I tried to restart my device service but it appears to have failed. The task manager shows it is stuck on “Connecting”, and the service logs show:

Any easy fix I can do here that is not a full rebuild/restart? And how to avoid this in the future?

I typically see this when a service init script runs into an error. Try running the init script in your own Python environment to quickly debug. Restart the service when the init script runs without raising any errors.

Thanks! It was indeed related to this, an import was failing.