Can you provide more context? Is this reproducible? If so, how
06/20/2020, 3:13 AM
process = subprocess.run(['osqueryi', '--json', 'select * from os_version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, universal_newlines=True)
gives no output and when I checked the
return code it says 78
And I faced this issue only on a single machine out of 6 machines that I checked on osquery on.
06/20/2020, 3:34 AM
Exit code 78 is related to pre-defined exit codes in both Linux and BSD (/usr/include/sysexists.h). If I had to guess this one outlier has a different version of Python and libraries / eggs compared to the 5 functional machines.
06/20/2020, 3:49 AM
I usually run using python3, so I uninstalled and installed the python3, but still no change. I still get the 78 error code..
Do you have any idea on how to fix this ?
06/20/2020, 4:29 AM
osquery is a universal interface to collect telemetry and inspect hosts across multiple OS. Common usage patterns are running
with filesystem or tls logging.
It’s important to know the exact Python 3 version as subprocess modules behavior does change within the various 3.x variants. Try something like …