Title
#fleet
j

Jaideep Natu

10/01/2021, 6:18 AM
Hello, I'm getting the error below. What am I doing wrong?
# 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
6:43 AM
Fleet preview runs fine
Sarah Gillespie

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
zwass

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>
.
5:19 PM
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:
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
zwass

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 -
404 page not found
Fleet has already been setup
I don't recall fleetctl not executing without an error.
zwass

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
9:40 PM
I don't know which password was used during the setup and I never get password reset email. How can I reset my password?
Login failed: login received status 401 Authentication failed: Authentication failed
zwass

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
zwass

zwass

10/05/2021, 10:34 PM
Try
<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?
zwass

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.