Title
#general
p

Praveen Kumar

09/03/2022, 2:37 PM
I am facing the issue: Extension socket not available: /var/osquery/osquery.em when try to execute below cpp program!.. int main(int argc, char* argv[]) { osquery::Initializer runner(argc, argv, ToolType::EXTENSION); auto status = startExtension("example", "0.0.1"); if (!status.ok()) { LOG(ERROR) << status.getMessage(); runner.requestShutdown(status.getCode()); }} requesting a help here
Mike Myers

Mike Myers

09/06/2022, 4:44 PM
1. can you confirm that the osquery core process is running and that the extension socket is open at the location
/var/osquery/osquery.em
before the extension is launched? 2. do any of the osquery example extensions work? https://github.com/osquery/osquery/tree/master/external/examples 3. we also have #extensions channel
4:53 PM
select value from osquery_flags where name = 'extensions_socket';
confirms where the extension socket is
4:58 PM
also make sure that both osquery and the extension are running as root or administrator, that might be an issue also there are flags like
--disable_extensions=false
that must be set
p

Praveen Kumar

09/06/2022, 6:35 PM
you see my screenshot from the xcode: Extension socket not available:
Mike Myers

Mike Myers

09/06/2022, 8:38 PM