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

elastic-agent can not install in macbook #1209

Closed
qiansheng2 opened this issue Mar 9, 2022 · 10 comments
Closed

elastic-agent can not install in macbook #1209

qiansheng2 opened this issue Mar 9, 2022 · 10 comments
Assignees
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@qiansheng2
Copy link

  • Version:
    elastic-agent-8.1.0
  • Operating System:
    macbook(apple m1 max) macos12.2.1
  • Steps to Reproduce:
    Download elastic-agent-8.1.0-darwin-x86_64
    unzip
    sudo ./elastic-agent install ...

error:
-> % sudo ./elastic-agent install
--fleet-server-es=http://localhost:9200
--fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NDY3OTUxOTE1Mjk6cFJ1UDdGbUtUMnVzcVMyZDBJU3VKdw
--fleet-server-policy=499b5aa7-d214-5b5d-838b-3cd76469844e
--fleet-server-insecure-http
Elastic Agent will be installed at /Library/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y
{"log.level":"info","@timestamp":"2022-03-09T11:10:22.924+0800","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":777},"message":"Fleet Server - Starting","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2022-03-09T11:10:26.926+0800","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":777},"message":"Fleet Server - Error - EOF","ecs.version":"1.6.0"}
Error: fleet-server failed: context canceled

@qiansheng2
Copy link
Author

Version:
Macbook Pro(Apple M1 Max)
docker desktop 4.5.0(Engine:20.10.12)
docker compose v2.2.3

I installed the docker image from ==> https://www.elastic.co/guide/en/elasticsearch/reference/8.1/docker.html#docker-prod-prerequisites

@qiansheng2
Copy link
Author

add:

{"log.level":"info","@timestamp":"2022-03-09T11:47:41.164+0800","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":777},"message":"Fleet Server - Error - could not start the HTTP server for the API: could not set mode 480 for unix socket file at location /Library/Elastic/Agent/data/tmp/default/fleet-server/fleet-server.sock: chmod /Library/Elastic/Agent/data/tmp/default/fleet-server/fleet-server.sock: no such file or directory","ecs.version":"1.6.0"}

@qiansheng2
Copy link
Author

add by elasticsearch log out:

es-cluster-es01-1 | {"@timestamp":"2022-03-09T05:40:10.120Z", "log.level": "WARN", "message":"received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.21.0.3:9200, remoteAddress=/172.21.0.1:64874}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es01][transport_worker][T#2]","log.logger":"org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransport","elasticsearch.cluster.uuid":"RYv_WVG8RNeOQL05TSPOqg","elasticsearch.node.id":"Pu9F4WPLT86_hGgcQRpDbg","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"docker-cluster"}
es-cluster-es01-1 | {"@timestamp":"2022-03-09T05:40:10.120Z", "log.level": "WARN", "message":"received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.21.0.3:9200, remoteAddress=/172.21.0.1:64876}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es01][transport_worker][T#3]","log.logger":"org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransport","elasticsearch.cluster.uuid":"RYv_WVG8RNeOQL05TSPOqg","elasticsearch.node.id":"Pu9F4WPLT86_hGgcQRpDbg","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"docker-cluster"}
es-cluster-es01-1 | {"@timestamp":"2022-03-09T05:40:10.120Z", "log.level": "WARN", "message":"received plaintext http traffic on an https channel, closing connection Netty4HttpChannel{localAddress=/172.21.0.3:9200, remoteAddress=/172.21.0.1:64862}", "ecs.version": "1.2.0","service.name":"ES_ECS","event.dataset":"elasticsearch.server","process.thread.name":"elasticsearch[es01][transport_worker][T#4]","log.logger":"org.elasticsearch.xpack.security.transport.netty4.SecurityNetty4HttpServerTransport","elasticsearch.cluster.uuid":"RYv_WVG8RNeOQL05TSPOqg","elasticsearch.node.id":"Pu9F4WPLT86_hGgcQRpDbg","elasticsearch.node.name":"es01","elasticsearch.cluster.name":"docker-cluster"}
es
............

@ph ph added the bug Something isn't working label Mar 9, 2022
@ph
Copy link
Contributor

ph commented Mar 9, 2022

Running Agent on M1 is not yet supported, we are working on it. (see our current matrix)

@qiansheng2
Copy link
Author

thanks for your comment.

@ph
Copy link
Contributor

ph commented Mar 10, 2022

I should add we are actively working on it, see elastic/beats#29585

@ph ph added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Mar 10, 2022
@ph
Copy link
Contributor

ph commented Mar 10, 2022

fyi @AndersonQ related to your M1 work

@AndersonQ AndersonQ self-assigned this Mar 14, 2022
@AndersonQ
Copy link
Member

Thanks, I'm gonna ensure we cover this when testing the M1 agent

@jlind23
Copy link
Contributor

jlind23 commented Mar 21, 2022

@AndersonQ shouldn't we close this one and keep only the M1 build?

@AndersonQ
Copy link
Member

I'd say so.

@jlind23 jlind23 closed this as completed Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

4 participants