Closed ak11234 closed 10 months ago
👋 @ak11234
Can you run ./elastic-container.sh status
and sudo apt list --all-versions | grep -i docker
, and post the results here? Just want to make sure you've got all the right packages.
When you installed Docker, did you follow all of these specific instructions? Usually, the issue is that all the instructions under "Install the Docker packages" are sometimes adapted or skipped.
Following the install instructions, I tested a brand new Ubuntu box, and the Fleet Server was present, but in an "unhealthy" state. I noticed it took ~5 minutes for the Fleet Server to be healthy.
I'm not sure why that is specifically, but I believe the Fleet Server has to download several artifacts from Elastic - I think those are agents, integrations, etc. That said, once it became healthy, it stayed that way.
Hi @peasead, I was able to resolve it by destroying everything and starting again, this time using the absolute defaults, not modifying which rules I had set to 1 or 0 to enable or disable.
Describe the bug Fleet server setup fails on fresh start with brand new clean vm of Ubuntu 22.04.03 LTS.
To Reproduce Steps to reproduce the behavior: Fresh install ubuntu server, install docker, jq, (git and curl already present). Clone repo, set env params, execute
sudo ./elastic-container.sh start
. Log into kibana, go to fleet in side menu, find no fleet server present despite the policies having been created.In the logs of the fleet container, you can see it waiting for a server:
{"log.level":"info","@timestamp":"2023-12-25T22:04:51.912Z","message":"Waiting on fleet-server input to be added to policy: fleet-server-policy","component":{"binary":"fleet-server","dataset":"elastic_agent.fleet_server","id":"fleet-server-default","type":"fleet-server"},"log":{"source":"fleet-server-default"},"ecs.version":"1.6.0","service.name":"fleet-server","service.type":"fleet-server","state":"STARTING","ecs.version":"1.6.0"}
To try and see what went wrong, I modified the script and removed the redirect to null on the set_fleet_value, and saw that the final output was an error
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 50220 100 50219 100 1 93915 1 0:00:01 --:--:-- 0:00:01 94221 { "statusCode": 404, "error": "Not Found", "message": "Saved object [ingest-agent-policies/null] not found" }
Expected behavior A fleet server listed in the fleet page of kibana.
Screenshots See details above with log messages.
Desktop (please complete the following information):
Additional context Add any other context about the problem here.