Elastic agent fail to connect fleet server

Hi all
I'm trying the enroll fleet server to manage the agent and to use elastic enpoint.
But when i tried to start the fleet server, i see nothing happening in the kibana fleet enrolling interface.
the log that agent output for me has no error but it does said that it shuting down agent

2022-01-06T08:40:48.646Z        INFO    cmd/enroll_cmd.go:571   Spawning Elastic Agent daemon as a subprocess to complete bootstrap process.
2022-01-06T08:40:48.898Z        INFO    application/application.go:67   Detecting execution mode
2022-01-06T08:40:48.918Z        INFO    application/application.go:88   Agent is in Fleet Server bootstrap mode
2022-01-06T08:40:49.269Z        INFO    [api]   api/server.go:62        Starting stats endpoint
2022-01-06T08:40:49.269Z        INFO    application/fleet_server_bootstrap.go:130       Agent is starting
2022-01-06T08:40:49.271Z        INFO    [api]   api/server.go:64        Metrics endpoint listening on: /var/lib/elastic-agent/data/tmp/elastic-agent.sock (configured: unix:///var/lib/elastic-agent/data/tmp/elastic-agent.sock)
2022-01-06T08:40:49.273Z        INFO    application/fleet_server_bootstrap.go:140       Agent is stopped
2022-01-06T08:40:49.279Z        INFO    stateresolver/stateresolver.go:48       New State ID is H2RC_5BO
2022-01-06T08:40:49.279Z        INFO    stateresolver/stateresolver.go:49       Converging state requires execution of 1 step(s)
2022-01-06T08:40:49.340Z        INFO    operation/operator.go:284       operation 'operation-install' skipped for fleet-server.7.16.2
2022-01-06T08:40:49.575Z        INFO    log/reporter.go:40      2022-01-06T08:40:49Z - message: Application: fleet-server--7.16.2[]: State changed to STARTING: Starting - type: 'STATE' - sub_type: 'STARTING'
2022-01-06T08:40:49.581Z        INFO    stateresolver/stateresolver.go:66       Updating internal state
2022-01-06T08:40:49.658Z        INFO    cmd/enroll_cmd.go:776   Fleet Server - Starting
2022-01-06T08:40:51.206Z        WARN    status/reporter.go:236  Elastic Agent status changed to: 'degraded'
2022-01-06T08:40:51.208Z        INFO    log/reporter.go:40      2022-01-06T08:40:51Z - message: Application: fleet-server--7.16.2[]: State changed to DEGRADED: Running on policy with Fleet Server integration: 183d9ba0-5f17-11ec-aeff-f35358c32aff; missing config fleet.agent.id (expected during bootstrap process) - type: 'STATE' - sub_type: 'RUNNING'
2022-01-06T08:40:51.673Z        INFO    cmd/enroll_cmd.go:757   Fleet Server - Running on policy with Fleet Server integration: 183d9ba0-5f17-11ec-aeff-f35358c32aff; missing config fleet.agent.id (expected during bootstrap process)
2022-01-06T08:40:52.141Z        INFO    cmd/enroll_cmd.go:454   Starting enrollment to URL: https://192.168.79.128:8220/
2022-01-06T08:40:53.036Z        INFO    cmd/enroll_cmd.go:258   Elastic Agent has been enrolled; start Elastic Agent
Successfully enrolled the Elastic Agent.
2022-01-06T08:40:53.037Z        INFO    cmd/run.go:184  Shutting down Elastic Agent and sending last events...
2022-01-06T08:40:53.038Z        INFO    operation/operator.go:216       waiting for installer of pipeline 'default' to finish
2022-01-06T08:40:53.039Z        INFO    process/app.go:176      Signaling application to stop because of shutdown: fleet-server--7.16.2
2022-01-06T08:40:54.545Z        INFO    status/reporter.go:236  Elastic Agent status changed to: 'online'
2022-01-06T08:40:54.546Z        INFO    log/reporter.go:40      2022-01-06T08:40:54Z - message: Application: fleet-server--7.16.2[]: State changed to STOPPED: Stopped - type: 'STATE' - sub_type: 'STOPPED'
2022-01-06T08:40:54.546Z        INFO    cmd/run.go:192  Shutting down completed.
2022-01-06T08:40:54.547Z        INFO    [api]   api/server.go:66        Stats endpoint (/var/lib/elastic-agent/data/tmp/elastic-agent.sock) finished: accept unix /var/lib/elastic-agent/data/tmp/elastic-agent.sock: use of closed network connection

Is there know who khow what is the problems?
Please help.
Thanks for your time

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.