Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fleet Server exits if policy does not have fleet-server package #763

Closed
simitt opened this issue Oct 6, 2021 · 0 comments · Fixed by #768
Closed

Fleet Server exits if policy does not have fleet-server package #763

simitt opened this issue Oct 6, 2021 · 0 comments · Fixed by #768
Assignees
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@simitt
Copy link

simitt commented Oct 6, 2021

Fleet Server is exiting if the policy that it subscribes to does not have the Fleet Server package installed.

Following logs are seen

{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","new":{"Host":"0.0.0.0","Port":8220,"TLS":{"Enabled":null,"VerificationMode":"full","Versions":null,"CipherSuites":null,"CAs":null,"Certificate":{"Certificate":"/app/config/certs/node.crt","Key":"[redacted]","Passphrase":""},"CurveTypes":null,"Renegotiation":"never","CASha256":null},"Timeouts":{"Read":60000000000,"Write":600000000000,"Idle":30000000000,"ReadHeader":5000000000,"CheckinTimestamp":30000000000,"CheckinLongPoll":300000000000,"CheckinJitter":30000000000},"Profiler":{"Enabled":false,"Bind":"localhost:6060"},"CompressionLevel":1,"CompressionThresh":1024,"Limits":{"PolicyThrottle":5000000,"MaxHeaderByteSize":8192,"MaxConnections":0,"CheckinLimit":{"Interval":1000000,"Burst":1000,"Max":0,"MaxBody":1048576},"ArtifactLimit":{"Interval":5000000,"Burst":25,"Max":50,"MaxBody":0},"EnrollLimit":{"Interval":10000000,"Burst":100,"Max":50,"MaxBody":524288},"AckLimit":{"Interval":10000000,"Burst":100,"Max":50,"MaxBody":2097152}},"Runtime":{"GCPercent":0},"Bulk":{"FlushInterval":250000000,"FlushThresholdCount":2048,"FlushThresholdSize":1048576,"FlushMaxPending":8}},"@timestamp":"2021-10-06T20:25:15.719Z","message":"initial server configuration"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","@timestamp":"2021-10-06T20:25:15.719Z","message":"starting server on configuration change"}
{"service.name":"fleet-server","service.name":"fleet-server","log.level":"info","log.logger":"fleet-metrics.api","message":"Starting stats endpoint","@timestamp":"2021-10-06T20:25:15.719Z"}
{"service.name":"fleet-server","service.name":"fleet-server","log.level":"info","log.logger":"fleet-metrics.api","message":"Metrics endpoint listening on: /app/elastic-agent/data/tmp/default/fleet-server/fleet-server.sock (configured: unix:///app/elastic-agent/data/tmp/default/fleet-server/fleet-server.sock)","@timestamp":"2021-10-06T20:25:15.72Z"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","name":"d6335d69d89d4a7fbd66c203428a1945","uuid":"D3xF8xknTAO-G5bC0uJ8eA","vers":"7.15.1-SNAPSHOT","@timestamp":"2021-10-06T20:25:15.727Z","message":"Cluster Info"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","opts":{"flushInterval":250,"flushThresholdCnt":2048,"flushThresholdSz":1048576,"maxPending":8,"blockQueueSz":32,"apikeyMaxParallel":120},"@timestamp":"2021-10-06T20:25:15.729Z","message":"Run bulker with options"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","fleet_version":"7.15.1-SNAPSHOT","elasticsearch_version":"7.15.1","@timestamp":"2021-10-06T20:25:15.733Z","message":"versions are compatible"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","name":"d6335d69d89d4a7fbd66c203428a1945","uuid":"D3xF8xknTAO-G5bC0uJ8eA","vers":"7.15.1-SNAPSHOT","@timestamp":"2021-10-06T20:25:15.741Z","message":"Cluster Info"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","limits":{"Interval":1000000,"Burst":1000,"Max":0,"MaxBody":1048576},"long_poll_timeout":300000,"long_poll_timestamp":30000,"long_poll_jitter":30000,"@timestamp":"2021-10-06T20:25:15.743Z","message":"Checkin install limits"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","limits":{"Interval":10000000,"Burst":100,"Max":50,"MaxBody":524288},"@timestamp":"2021-10-06T20:25:15.744Z","message":"Enroller install limits"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","limits":{"Interval":5000000,"Burst":25,"Max":50,"MaxBody":0},"maxParallel":8,"@timestamp":"2021-10-06T20:25:15.744Z","message":"Artifact install limits"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","limits":{"Interval":10000000,"Burst":100,"Max":50,"MaxBody":2097152},"@timestamp":"2021-10-06T20:25:15.744Z","message":"Ack install limits"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","method":"GET","path":"/api/status","@timestamp":"2021-10-06T20:25:15.744Z","message":"Server install route"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","method":"POST","path":"/api/fleet/agents/:id","@timestamp":"2021-10-06T20:25:15.744Z","message":"Server install route"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","method":"POST","path":"/api/fleet/agents/:id/checkin","@timestamp":"2021-10-06T20:25:15.744Z","message":"Server install route"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","method":"POST","path":"/api/fleet/agents/:id/acks","@timestamp":"2021-10-06T20:25:15.744Z","message":"Server install route"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","method":"GET","path":"/api/fleet/artifacts/:id/:sha2","@timestamp":"2021-10-06T20:25:15.744Z","message":"Server install route"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","bind":"0.0.0.0:8220","rdTimeout":60000,"wrTimeout":600000,"@timestamp":"2021-10-06T20:25:15.744Z","message":"server listening"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","@timestamp":"2021-10-06T20:25:15.745Z","message":"server hard connection limiter disabled"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","ctx":"policy agent monitor","throttle":5,"@timestamp":"2021-10-06T20:25:15.744Z","message":"run policy monitor"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","index":".fleet-policies","ctx":"index monitor","@timestamp":"2021-10-06T20:25:15.744Z","message":"start"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","index":".fleet-actions","ctx":"index monitor","@timestamp":"2021-10-06T20:25:15.744Z","message":"start"}
{"log.level":"warn","service.name":"fleet-server","service.name":"fleet-server","ctx":"policy leader manager","@timestamp":"2021-10-06T20:25:15.743Z","message":"missing config fleet.agent.id; acceptable until Elastic Agent has enrolled"}
{"log.level":"error","service.name":"fleet-server","service.name":"fleet-server","error.message":"assigned policy does not have fleet-server input","@timestamp":"2021-10-06T20:25:16.001Z","message":"Policy self monitor exited"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","index":".fleet-actions","ctx":"index monitor","@timestamp":"2021-10-06T20:25:16.001Z","message":"context closed waiting for global checkpoints advance"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","index":".fleet-actions","ctx":"index monitor","@timestamp":"2021-10-06T20:25:16.001Z","message":"exited"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","index":".fleet-policies","ctx":"index monitor","@timestamp":"2021-10-06T20:25:16.002Z","message":"context closed waiting for global checkpoints advance"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","index":".fleet-policies","ctx":"index monitor","@timestamp":"2021-10-06T20:25:16.002Z","message":"exited"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","status":"FAILED","@timestamp":"2021-10-06T20:25:16.002Z","message":"Error - assigned policy does not have fleet-server input"}
{"log.level":"error","service.name":"fleet-server","service.name":"fleet-server","error.message":"assigned policy does not have fleet-server input","@timestamp":"2021-10-06T20:25:16.003Z","message":"Fleet Server failed"}
{"service.name":"fleet-server","service.name":"fleet-server","log.level":"info","log.logger":"fleet-metrics.api","message":"Stats endpoint (/app/elastic-agent/data/tmp/default/fleet-server/fleet-server.sock) finished: accept unix /app/elastic-agent/data/tmp/default/fleet-server/fleet-server.sock: use of closed network connection","@timestamp":"2021-10-06T20:25:16.003Z"}
{"log.level":"info","service.name":"fleet-server","service.name":"fleet-server","status":"STARTING","@timestamp":"2021-10-06T20:25:18.003Z","message":"Starting"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants