Praveen Kumar
09/06/2022, 6:55 PMPraveen Kumar
09/06/2022, 6:55 PMPraveen Kumar
09/06/2022, 6:56 PMKathy Satterlee
09/07/2022, 3:54 PMnick fury
09/08/2022, 9:43 AMnick fury
09/08/2022, 11:24 AMShawn Maddock
09/08/2022, 2:41 PMfleet serve --config /etc/fleet/fleet.yml
, I’m getting:
mysql="could not connect to db: Error 1045: Access denied for user 'fleet'@'localhost' (using password: NO), sleeping 0s"
If instead I specify the password with a CLI flag, it works fine. The config file is fairly simple:
apiVersion: v1
kind: config
spec:
mysql:
password: '<my password>'
server:
address: 0.0.0.0:443
cert: '/etc/letsencrypt/live/<my domain>/fullchain.pem'
key: '/etc/letsencrypt/live/<my domain>/privkey.pem'
Anyone know why fleet would seem to be ignoring my config file?Gavin
09/09/2022, 2:48 PMRobert R. Henry
09/09/2022, 9:12 PMfleetctl setup
more than once? The 2nd attempt says Fleet has already been setup
I'd rather not totally remove the whole stack and start over.zwass
Shawn Maddock
09/12/2022, 4:48 PMJason
09/12/2022, 6:39 PMAdam Connor
09/13/2022, 1:43 AMfleetctl setup --email $email --name '$name' --org-name '$company Fleet'
I get
Error: Fleet has already been setup
Adam Connor
09/13/2022, 1:44 AMAdam Connor
09/13/2022, 1:47 AMmarnin
09/13/2022, 4:41 PMOjas
09/14/2022, 9:15 AMr
09/14/2022, 1:53 PMJ.R. Murray
09/16/2022, 12:20 AMfleet prepare db
on a fresh installation:
INFO: 00:13:41 Deleting dummy software_cpe entries...
INFO: 00:13:41 Done deleting dummy cpe_id entries...
INFO: 00:13:41 Removing cpe_id from software_cve...
2022/09/16 00:13:41 FAIL 20220831100036_RemoveCpeIDColumnFromSoftwareCve.go (removing cpe_id FK from software_cve: Error 1091: Can't DROP FOREIGN KEY `software_cve_ibfk_1`; check that it exists), quitting migration.
wennan.he
09/16/2022, 3:29 AMwennan.he
09/16/2022, 3:49 AMPraveen Kumar
09/16/2022, 4:20 AMzwass
*
MariaDB is not officially supported. Future issues specific to MariaDB may not be fixed quickly (or at all). We strongly advise migrating to MySQL 8.0.19+.Shawn Maddock
09/16/2022, 7:40 PMfleetctl setup
documentation and help text says it takes a --config
argument with a path to a config file, but if I include that flag I get:
Error: set the Fleet API address with: fleetctl config set --address <https://localhost:8080>
If I run setup without the config file and then fleetctl apply -f
the config file, it works.
I don’t see any open bug reports, has anyone else seen this or can confirm the behavior, or let me know what I’m doing wrong?Shawn Maddock
09/16/2022, 8:23 PMfleetctl setup
immediately after systemctl start fleet
but the server is not ready for incoming API calls. I’d rather do something smarter than just a sleep
Shawn Maddock
09/17/2022, 10:47 AMShawn Maddock
09/17/2022, 11:10 AM—logging_debug=true
also note you’d need \
at the end of the previous line to continue the command.
For the second I believe it's only accepted as an environment variable, so you’d need a separate line in the [Service]
block:
Environment=FLEET_ENABLE_DEV_SQL_INTERCEPTOR=true
Slackbot
09/17/2022, 9:20 PMKathy Satterlee
09/19/2022, 9:36 PMShawn Maddock
09/20/2022, 1:47 PMpkgbuild --ownership preserve
instead of pkgbuild --ownership recommended
... a simple flag to switch