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

Issues with post install command #514

Open
Zdroikd opened this issue Nov 19, 2024 · 3 comments
Open

Issues with post install command #514

Zdroikd opened this issue Nov 19, 2024 · 3 comments

Comments

@Zdroikd
Copy link

Zdroikd commented Nov 19, 2024

So i can get all the way to through the install and i check that all the right services are running and working. then when i run the last post_install_local command it throws this error:
Image
Am i missing something?

then even if i try to check the verify post install commands nothing is there.

@cbaxley
Copy link
Collaborator

cbaxley commented Nov 19, 2024

You could try running the post_install again. Often we need to wait between the first and second installers.

@aarz-snl
Copy link
Collaborator

aarz-snl commented Nov 26, 2024

This will happen if the API isn't up and running yet for kibana / fleet

My recommendation during install is to wait 10 or so minutes for everything to be up before running post install.

We are looking at ways to streamline this.

Other debugging steps:

You can try

ansible-playbook -vvvv post_install_local.yml

To get max verbosity of log output from ansible.

Also, in the post install yaml you could update the - name: Create Endpoint Policy job to say:

- name: Create Endpoint Policy
  uri:
    url: "{{ local_kbn_url }}/api/fleet/agent_policies?sys_monitoring=true"
    method: POST
    user: "{{ elastic_username }}"
    password: "{{ elastic_password }}"
    force_basic_auth: yes
    validate_certs: no
    headers: "{{ headers }}"
    body_format: json
    body:
      name: "Endpoint Policy"
      description: ""
      namespace: "default"
      monitoring_enabled: ["logs", "metrics"]
      inactivity_timeout: 1209600
    timeout: 600
  register: endpoint_policy_result

This should get rid of the no debug output...

@aarz-snl
Copy link
Collaborator

aarz-snl commented Dec 9, 2024

We have identified an issue where sometimes kibana will reboot during install. If this happens when you're running post install itll break.

We are working on a fix -- but until then what youd want to do is install the first install package and wait about 10 minutes to ensure everything has been up and stable. THEN run post install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 Product Backlog
Development

No branches or pull requests

3 participants