This is an awesomely detailed write up of your problem - thank you @michael!!
Unfortunately, we have not had success running the medic-os
container in Docker on the Apple M1 CPUs. I believe the hope is that when we move to CHT Core 4.0.0, which will have discrete containers for each service, that we’ll be closer to working on the M1.
Until then,I believe @Elvis and @yuv both have M1s and may have some tips on running dev instaces? They can confirm, but I believe they’re both running the more involved developer set up vs your local setup.
Looking a bit at the issue, I believe the primary one is visible in your last screenshot with the note:
Images may have poor performance, or fail, if run via emulation
This is because of Docker container being from a amd64 image vs a native ARM one. There does seem to be some tricks we might be able to do support this maybe? Not having an M1 to test with myself, I can’t test any work-arounds.
Finally, as you noted noted that your call to supervisor-inspect
showed that most services were up for ~1200 seconds and had zero restarts:
Up: 1216 seconds, Restarts: 0
But while the API service is up
, it had been up for only 7 seconds and had dozens of restarts:
Up: 7 seconds, Restarts: 129
I don’t think it’s really up