Hi all, I'm getting a `could not start extension p...
# general
Hi all, I'm getting a
could not start extension process
error when trying to use a python .ext extension. It only works if I suspend osqueryi and run the extension with python. Any help would be appreciated. The extension is the sample python extension, I'll paste it in thread
Copy code
#!/usr/bin/env python

import osquery

class MyTablePlugin(osquery.TablePlugin):
    def name(self):
        return "foobar"

    def columns(self):
        return [
            osquery.TableColumn(name="foo", type=osquery.STRING),
            osquery.TableColumn(name="baz", type=osquery.STRING),

    def generate(self, context):
        query_data = []

        for _ in range(2):
            row = {}
            row["foo"] = "bar"
            row["baz"] = "baz"

        return query_data

if __name__ == "__main__":
    osquery.start_extension(name="my_awesome_extension", version="1.0.0")
@Matt Ackard please try running
and see if that works. If so it might be a permissions issue.
If it does work after adding that flag please see the following Osquery documentation to set the correct permissions: https://osquery.readthedocs.io/en/stable/deployment/extensions/
allow_unsafe doesn't change anything. I think it may be thrift socket related. I get errors from TServerSocket and TServerTransport if I leave the osqueryi process running when it fails to start the extension
got it. it was a combination of permissions and default python binary. thanks
🦜 1