<https://osquery.slack.com/archives/C08V7KTJB/p167...
# fleet
What's the error when running from Linux? (We recommend generating the packages from Linux or macOS)
j
[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
OK!, please run the following to get the version:
Copy code
fleetctl --version
j
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
And just in case, try not running as root.
j
Yeah. and i have another error. im since rocky linux based on centos with podman
l
OK, on our internal CI testing we usually test on Ubuntu/Debian based distros.
j
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
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
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
I have a way to run it without the docker that calls?
No. Docker is a dependency to generate the packages.
j
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
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
thank you!!! from wsl i was able to with an ubuntu image. Success! You generated an osquery installer...!!!