The /usr/local/agent/pyenv directory has incorrect permissions. I’m not sure why, but I assume something went wrong during the extraction of the new core image.
To fix the permissions, run:
chmod -c 0755 /usr/local/agent/pyenv
Then try running the command again:
runagent -m loki1 python3 -c 'import redis' && echo ok