Hello, I'm getting the error below. What am I doin...
# fleet
j
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
@Jaideep Natu Have you tried using port 8080 instead?
j
yes same result with 8080
z
@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
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
Try
fleetctl config set --tls-skip-verify=true
and then the
fleetctl setup
command again.
j
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
Can you access the Fleet server via the browser now?
j
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
Are you using
fleetctl preview
?
j
yes preview is running concurrently, the password issue is with fleetctl login and the web UI
z
Try
Copy code
<mailto:admin@example.com|admin@example.com>
admin123#
those are the default credentials that preview sets up.
j
why didn't the username from the config file work though? do I need to restart fleet for that?
z
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.