Has anyone gotten py-spy to work within the Home Assistant container running in HassOS on a Raspberry Pi 3?
I downloaded the armv7 binary package of py-spy 0.3.3 and when I try to run it I get the error “No such file or directory”. Some quick googling tells me that the docker capability “SYS_PTRACE” is needed.
I tried to change the “hostconfig.json” in the /mnt/data/docker/containers// folder but it is overwritten after each restart.
Is it possible to make persistent changes to the docker configuration of the homeassistant container?
I would if I knew how. It’s all very automatic when running HassOS, and I have no idea where to inject this. It would be easy if I ran a more capable base OS and hass.io as a separate appliance, which I am considering more and more.
Even if you would be able to install it, it would be overwritten on every restart. It’d be better to run Home Assistant Supervised, this way you have full control over the Host OS.
py-spy requires the SYS_PTRACE capability in the docker container where it is executing, which my installation doesn’t seem to have. Did you add this to yours somehow?
I did all those steps on a NUC with Home Assistant Operating System v4.13 and then I could use Py-Spy.
Only after a reboot I have to do all these steps again.