Trying to use Synthetics but it shows an error on enrollment

Hello,

I am trying to use the complete agent as recommended by the docs, for use the browser synthetics, according this post:

Also i have alredy everything configured fine and working, without issues, but its a normal agent, so when i use browser synthetics i receive this error:
Job could not be initialized: browser monitors cannot be created outside the official elastic docker image

At this time i am running this command to try install the elastic complete agent from the image docker provided on the docs:

/[root@vps-testes ~]# docker run   --env FLEET_ENROLL=1   --env FLEET_URL=https://MYIPHERE:9200   --env FLEET_SERVER_ELASTICSEARCH_CA=/elastic_cert/http_ca.crt   --env FLEET_ENROLLMENT_TOKEN=MYTOKENHERE==   --env FLEET_INSECURE=1   --cap-add=NET_RAW   --cap-add=SETUID   --rm   docker.elastic.co/beats/elastic-agent-complete:8.8.2 -e
{"log.level":"warn","@timestamp":"2023-07-07T18:44:41.339Z","log.logger":"tls","log.origin":{"file.name":"tlscommon/tls_config.go","file.line":104},"message":"SSL/TLS verifications disabled.","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-07-07T18:44:41.682Z","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":478},"message":"Starting enrollment to URL: https://IPHERE:9200/","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2023-07-07T18:44:41.884Z","log.logger":"tls","log.origin":{"file.name":"tlscommon/tls_config.go","file.line":104},"message":"SSL/TLS verifications disabled.","ecs.version":"1.6.0"}
Error: fail to enroll: fail to execute request to fleet-server: status code: 0, fleet-server returned an error: no handler found for uri [/api/fleet/agents/enroll?] and method [POST]
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.8/fleet-troubleshooting.html
Error: enrollment failed: exit status 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.8/fleet-troubleshooting.html
[root@vps-testes ~]# 

I was also tried used to see more verbose without successfull on verbose logs. Also in the server at /var/log/elasticsearch/elasticsearch.log or elasticsearch_server.json dont have nothing relevant to this issue.

Thanks in advance!

Hi Igor, welcome to the community.

The error message of the docker command indicates that the Fleet Server API is not found, are you using the right url for FLEET_URL? Fleet Server is started on port 8220 by default, 9200 sounds like Elasticsearch.

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