hello everyone, I am trying to install fleet on a ...
# kolide
a
hello everyone, I am trying to install fleet on a mac, I have the mysql and redis-server up when I run the
fleet prepare db
I get the error
Error creating db connection: Error 1045: Access denied for user 'kolide'@'localhost' (using password: YES)
k
Is the host local?
a
yes, I am trying to evaluate the product before hosting one
k
Ahh. Okay. There’s configurations to load into Kollide.
Also, does that user exist in your DB?
a
Yes I have created a user 'kolide'
I was not able to find, how to pass the credentials when running the prepare db command
could you please guide me to the documentation for setting up the credentials ?
k
Sure.
One second.
a
@Kenny Stevens Thank you, so the
serve
command will also set up the database ?
k
I believe so.
a
cool, thank you.
z
The
serve
command will not also set up the database, but you can pass the database configuration to the
prepare db
command in the same way you do to the
serve
command.
👍 1
k
Oh.
Well there you go.
Sorry for giving bad advice, @Adnan Mama.
a
No worries @Kenny Stevens, Thanks @zwass, i'll pass the similar config to the
prepare
command .
Thank you @zwass, I was able to move past the error and get the fleet server up, however when I try to use the launcher to enroll the host using the command
./launcher --hostname=10.104.173.76:8080 --root_directory=$(mktemp -d) --enroll_secret=4KRa+3lkXEsIYc77Jgg77O1oICmfx/4 --insecure --insecure_transport
I get the following error.
Copy code
{
  "caller": "request_enrollment.go:179",
  "enrollSecret": "4KRa+3lkXEsIYc77Jgg77O1oICmfx/4",
  "err": "rpc error: code = Unavailable desc = all SubConns are in TransientFailure, latest connection error: <nil>",
  "hostIdentifier": "e4c40b9b-a6b9-4415-8643-4b8c8cc26e84",
  "method": "RequestEnrollment",
  "nodekey": "",
  "reauth": false,
  "severity": "info",
  "took": "52.389µs",
  "ts": "2019-03-14T14:28:03.539074Z",
  "uuid": "86f710c5-44d3-48a7-aa12-364ae22c3b3f"
}
z
This is commonly because the TLS certificate you are using is invalid. Is the cert issued for 10.104.173.76?
a
Thats right, actually I had not passed the crt and key info in the fleet server config. @zwass Thanks lot for your help