oh, your `enroll_secret_env` flag should not be t...
# kolide
g
oh, your
enroll_secret_env
flag should not be the secret
e
than what should be?
g
see below
e
to place the secret in file?
osqueryd --enroll_secret_path=/tmp/enroll --tls_server_certs=/etc/osquery/kolide.crt --tls_hostname=127.0.0.1 --host_identifier=uuid --enroll_tls_endpoint=/api/v1/osquery/enroll --config_plugin=tls --config_tls_endpoint=/api/v1/osquery/config --config_tls_refresh=10 --disable_distributed=false --distributed_plugin=tls
g
your tls hostname flag is also wrong. that's just an ip address. it needs the port and it needs to match your certificate
can you show us the fleet startup as well?
and any logs osquery might be reporting. you'll ahve to add
--verbose
and
--tls_dump
to the osqueryd startup
e
fleet serve --config /tmp/kolide.yml --auth_jwt_key 93hxhlw4b+WFMlxGV5RKzKTmml5itxA1
g
ok that looks fine i'm guessing
add the verbose and tls_dump flags to osqueryd and try starting it again
e
Copy code
W0206 18:31:39.313983  5271 tls_enroll.cpp:70] Failed enrollment request to <https://localhost:12345/api/v1/osquery/enroll> (Request error: Failed to connect to localhost:12345: Connection refused) retrying
g
is your cert signed for localhost?
e
yes
g
and is fleet running on port 12345?
e
no. it is forwarded port to 8080
g
sounds like that's where the issue is
e
shit added new host 😄
k
can you help me about this issue? /usr/bin/fleet prepare db \ --mysql_address=127.0.0.1:3306 \ --mysql_database=kolide \ --mysql_username=root \ --mysql_password=toor I edited that code for my environment and when I ran I got this error 2018/02/07 080308 FAIL 20161118212641_CreateTablePasswordResetRequests.go (Error 1067: Invalid default value for ‘expires_at’), quitting migration.
i set system time to UTC and Repeated the command again this time mysql output is migration completed
g
you must use mysql 5.7
k
yes, 5.7.21 ubuntu 16.04.1 and I solved this after I set timezone to UTC and restart the system
i dont know the case is related restarting or setting UTC?
g
probably setting UTC