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

[MAC]: Agent remains stuck in updating on installing at Downloads with --base-path flag. #3647

Closed
amolnater-qasource opened this issue Oct 23, 2023 · 9 comments
Labels
bug Something isn't working impact:medium QA:Validated Validated by the QA Team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@amolnater-qasource
Copy link

Kibana Build details:

VERSION: 8.11.0 BC3
BUILD: 67923
COMMIT: 714189fa2b0f0a4d9f3865a8fce08261211570c8

Host OS: MAC

Preconditions:

  1. 8.11.0 BC3 Kibana cloud environment should be available.

Steps to reproduce:

  1. Install and extract the artifact on mac.
  2. Run install command using --basepath:"Users/uname/Downloads".
  3. Observe error message in CLI and observe agent gets stuck on fleet UI.

Note:

  • Agent gets installed successfully on installing at --basepath:"Users/uname".
  • Issue is consistently reproducible multiple times.

Screenshots:
16
image
image

Expected Result:
MAC Agent should get Healthy on installing at Downloads with --base-path flag.

@amolnater-qasource amolnater-qasource added bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team impact:medium labels Oct 23, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

@amolnater-qasource
Copy link
Author

@manishgupta-qasource Please review.

@manishgupta-qasource
Copy link

Secondary review for this ticket is Done

@cmacknz
Copy link
Member

cmacknz commented Oct 26, 2023

Can we have the agent details in Fleet while this is happening, and also get agent diagnostics?

@amolnater-qasource
Copy link
Author

Hi @cmacknz

Thank you for looking into this.
Please find below attached elastic-agent.json for this agent installed on 8.11.0 BC4.

castorclient-qa3m.local-agent-details.zip

Further we are not able to collect logs from UI or by command for this agent.
image

We are sharing the zipped installation directory with you over slack.

Please let us know if anything else is required from our end.
Thanks!!

@cmacknz
Copy link
Member

cmacknz commented Oct 27, 2023

Thanks the status in Fleet shows that the agent has never checked in:

  "id": "b249b91a-b67d-4e57-ab45-25e340cb419a",
  "type": "PERMANENT",
  "active": true,
  "enrolled_at": "2023-10-27T11:30:00Z",
  "policy_id": "a8da53e0-73cb-11ee-86b8-dbe1a2de9449",
  "packages": [],
  "sort": [
    1698406200000
  ],
  "agent": {
    "id": "b249b91a-b67d-4e57-ab45-25e340cb419a",
    "version": "8.11.0"
  },
  "status": "updating",
  "metrics": {}

@cmacknz
Copy link
Member

cmacknz commented Oct 27, 2023

The zip archive I was sent contained no logs which is interesting. That would align with the agent not checking in because it was not able to start.

@cmacknz
Copy link
Member

cmacknz commented Oct 27, 2023

I tried this with sudo ./elastic-agent install --url=https://a2de4fa3826e40cd940a9ecae7247ef2.fleet.us-central1.gcp.foundit.no:443 --enrollment-token=<REDACTED> --base-path ~/Downloads and it worked for me.

Looking closer at the logs I think this might be #3664

@amolnater-qasource
Copy link
Author

Hi Team,

We have revalidated this issue on latest 8.13.0 BC3 kibana cloud environment and found it fixed now.

Observations:

  • Agent gets Healthy on installing at Downloads with --base-path flag.

Screenshots:
image
image

Build details:
VERSION: 8.13.0 BC3
BUILD: 71857
COMMIT: 82f46148c91eec93ac7382147936028db2eb8883
Artifact Link: https://staging.elastic.co/8.13.0-c16d8e3a/downloads/beats/elastic-agent/elastic-agent-8.13.0-darwin-x86_64.tar.gz

Hence, we are closing this issue and marking as QA:Validated.
Thanks!!

@amolnater-qasource amolnater-qasource added the QA:Validated Validated by the QA Team label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working impact:medium QA:Validated Validated by the QA Team Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team
Projects
None yet
Development

No branches or pull requests

4 participants