https://github.com/osquery/osquery logo
#fleet
Title
# fleet
j

Jaideep Natu

10/01/2021, 6:18 AM
Hello, I'm getting the error below. What am I doing wrong?
Copy code
# fleetctl setup --email <email> --name <name> --org-name <org> --debug

RoundTrip error: dial tcp 127.0.0.1:8412: connect: connection refusederror setting up Fleet: POST /api/v1/setup: do request: Post "<https://127.0.0.1:8412/api/v1/setup>": dial tcp 127.0.0.1:8412: connect: connection refused
Fleet preview runs fine
s

Sarah Gillespie

10/01/2021, 5:41 PM
@Jaideep Natu Have you tried using port 8080 instead?
j

Jaideep Natu

10/01/2021, 6:10 PM
yes same result with 8080
z

zwass

10/04/2021, 5:17 PM
@Jaideep Natu do you have a Fleet server running on
localhost
?
connection refused
usually means that there is no server listening on that port. One easy way to double-check is to try
curl -k -v <https://127.0.0.1:8412>
.
You can also try
fleetctl debug connection <https://127.0.0.1:8412>
. I think you're going to get
connection refused
with any of these methods.
j

Jaideep Natu

10/04/2021, 9:38 PM
curl was successful, got a HTTP 200 OK. fleetctl debug connection gave an error:
Copy code
Debugging connection to 127.0.0.1; Configuration context: none - using provided address; Root CA: (system); TLS: secure.
Success: can resolve host 127.0.0.1.
Success: can dial server at 127.0.0.1:8412.
Fail: agent API endpoint: request failed: Post "<https://127.0.0.1:8412/api/v1/osquery/enroll>": x509: cannot validate certificate for 127.0.0.1 because it doesn't contain any IP SANs
z

zwass

10/05/2021, 12:29 AM
Try
fleetctl config set --tls-skip-verify=true
and then the
fleetctl setup
command again.
j

Jaideep Natu

10/05/2021, 4:22 PM
Strange, now I get -
Copy code
404 page not found
Fleet has already been setup
I don't recall fleetctl not executing without an error.
z

zwass

10/05/2021, 4:25 PM
Can you access the Fleet server via the browser now?
j

Jaideep Natu

10/05/2021, 5:06 PM
yes I can, thank you
I don't know which password was used during the setup and I never get password reset email. How can I reset my password?
Copy code
Login failed: login received status 401 Authentication failed: Authentication failed
z

zwass

10/05/2021, 9:52 PM
Are you using
fleetctl preview
?
j

Jaideep Natu

10/05/2021, 10:02 PM
yes preview is running concurrently, the password issue is with fleetctl login and the web UI
z

zwass

10/05/2021, 10:34 PM
Try
Copy code
<mailto:admin@example.com|admin@example.com>
admin123#
those are the default credentials that preview sets up.
j

Jaideep Natu

10/05/2021, 10:47 PM
why didn't the username from the config file work though? do I need to restart fleet for that?
z

zwass

10/05/2021, 10:49 PM
fleetctl preview
automatically creates that user, so Fleet is already set up. If you want to create another user you'll need to use
fleetctl user create
or the UI.
24 Views