Title
#kolide
a

Adnan Mama

03/12/2019, 7:08 PM
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

Kenny Stevens

03/12/2019, 7:27 PM
Is the host local?
a

Adnan Mama

03/12/2019, 8:04 PM
yes, I am trying to evaluate the product before hosting one
k

Kenny Stevens

03/12/2019, 8:04 PM
Ahh. Okay. There’s configurations to load into Kollide.
8:05 PM
Also, does that user exist in your DB?
a

Adnan Mama

03/12/2019, 8:11 PM
Yes I have created a user 'kolide'
8:12 PM
I was not able to find, how to pass the credentials when running the prepare db command
8:13 PM
could you please guide me to the documentation for setting up the credentials ?
k

Kenny Stevens

03/12/2019, 8:20 PM
Sure.
8:20 PM
One second.
a

Adnan Mama

03/12/2019, 8:22 PM
@Kenny Stevens Thank you, so the
serve
command will also set up the database ?
k

Kenny Stevens

03/12/2019, 8:22 PM
I believe so.
a

Adnan Mama

03/12/2019, 8:23 PM
cool, thank you.
zwass

zwass

03/12/2019, 8:25 PM
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

Kenny Stevens

03/12/2019, 8:25 PM
Oh.
8:25 PM
Well there you go.
8:26 PM
Sorry for giving bad advice, @Adnan Mama.
a

Adnan Mama

03/12/2019, 8:27 PM
No worries @Kenny Stevens, Thanks @zwass, i'll pass the similar config to the
prepare
command .
2:33 PM
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.
{
  "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"
}
zwass

zwass

03/14/2019, 6:28 PM
This is commonly because the TLS certificate you are using is invalid. Is the cert issued for 10.104.173.76?
a

Adnan Mama

03/15/2019, 5:02 PM
Thats right, actually I had not passed the crt and key info in the fleet server config. @zwass Thanks lot for your help