https://github.com/osquery/osquery logo
#fleet
Title
# fleet
What's the error when running from Linux? (We recommend generating the packages from Linux or macOS)
j

juan

01/18/2023, 4:48 PM
[root@wazuh sistemas]# fleetctl package --type=msi --fleet-url=https://x.x.x.x.x:8080 --enroll-secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Generating your osquery installer... Windows Installer XML Toolset Toolset Harvester version Copyright (c) .NET Foundation and contributors. All rights reserved. heat.exe : error HEAT5052 : The directory 'C:\root' could not be found. Error: package root files: heat failed: exit status 188
l

Lucas Rodriguez

01/18/2023, 4:49 PM
OK!, please run the following to get the version:
Copy code
fleetctl --version
j

juan

01/18/2023, 4:49 PM
last version. fleetctl - version 4.26.0 branch: HEAD revision: f1fdcfc481769eaee175231c789787e89dfc549c build date: 2023-01-14 build user: runner go version: go1.19.4
l

Lucas Rodriguez

01/18/2023, 4:50 PM
And just in case, try not running as root.
j

juan

01/18/2023, 4:52 PM
Yeah. and i have another error. im since rocky linux based on centos with podman
l

Lucas Rodriguez

01/18/2023, 4:53 PM
OK, on our internal CI testing we usually test on Ubuntu/Debian based distros.
j

juan

01/18/2023, 4:53 PM
sistemas@wazuh ~> fleetctl package --type=msi --fleet-url=https://x.x.x.x.x:8080 --enroll-secret=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Generating your osquery installer... Error: short-name resolution enforced but cannot prompt without a TTY Error: package root files: heat failed: exit status 125 sistemas@wazuh ~ [1]>
l

Lucas Rodriguez

01/18/2023, 4:55 PM
fleetctl
uses docker containers to generate the packages. We've tested it with Docker for macOS and with standard
docker
on Linux, so that may be the issue.
j

juan

01/18/2023, 4:55 PM
okay. So I build a debian machine and run the build script. I have a way to run it without the docker that calls?
l

Lucas Rodriguez

01/18/2023, 4:56 PM
I have a way to run it without the docker that calls?
No. Docker is a dependency to generate the packages.
j

juan

01/18/2023, 5:01 PM
What version of ubuntu or debian do you recommend to build the installer? What version have you tested it with?
and thank you very much for the assistance.
l

Lucas Rodriguez

01/18/2023, 5:06 PM
Looks like we test on Github's
ubuntu-latest
(see here) As of today,
ubuntu-latest
is Ubuntu 22.04 (for what's worth it we've had it working on previous versions for sure)
j

juan

01/18/2023, 5:23 PM
thank you!!! from wsl i was able to with an ubuntu image. Success! You generated an osquery installer...!!!