Skip to content

Unable to uninstall Agent installed in emulation #6082

@intxgo

Description

@intxgo

Steps to reproduce:

  • Install x86_64 Agent on Linux aarch64

  • apply policy with Elastic Defend

  • observe status UNHEALTHY, Elastic Defend integration error
    Image

  • Agent uninstall fails

sudo /opt/Elastic/Agent/elastic-agent uninstall
Elastic Agent will be uninstalled from your system at /opt/Elastic/Agent. Do you want to continue? [Y/n]:y
[  ==] Failed to uninstall service  [2s] failed to uninstall component "endpoint-default": error uninstalling service: exit status 135
[ ===] Failed to uninstall agent  [2s] Error uninstalling. Printing logs
2024-11-19T16:21:32.869Z	DEBUG	[uninstall.state_migration]	not attempting to migrate from action store: state store already exists
2024-11-19T16:21:33.118Z	DEBUG	[uninstall.composable]	Starting controller for composable inputs
2024-11-19T16:21:33.119Z	DEBUG	[uninstall.composable]	Started controller for composable inputs
2024-11-19T16:21:33.147Z	DEBUG	[uninstall.composable]	Variable state changed for composable inputs; debounce started
2024-11-19T16:21:33.154Z	DEBUG	[uninstall.composable]	kubernetes_secrets provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-11-19T16:21:33.154Z	DEBUG	[uninstall.composable.providers.kubernetes]	Kubernetes provider for resource pod skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-11-19T16:21:33.154Z	DEBUG	[uninstall.composable]	Kubernetes leaderelection provider skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-11-19T16:21:33.154Z	DEBUG	[uninstall.composable.providers.kubernetes]	Kubernetes provider for resource node skipped, unable to connect: unable to build kube config due to error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
2024-11-19T16:21:33.183Z	DEBUG	[uninstall.composable.providers.docker]	Start docker containers scanner
2024-11-19T16:21:33.183Z	DEBUG	[uninstall.composable.providers.docker]	List containers
2024-11-19T16:21:33.185Z	DEBUG	[uninstall.composable.providers.docker]	Fetching events since 2024-11-19 17:21:33.18558343 +0100 CET m=+4.555884201
2024-11-19T16:21:33.241Z	DEBUG	[uninstall.composable]	Computing new variable state for composable inputs
2024-11-19T16:21:33.242Z	DEBUG	[uninstall.composable]	Stopping controller for composable inputs
2024-11-19T16:21:33.243Z	DEBUG	[uninstall.composable.providers.docker]	Watcher stopped
2024-11-19T16:21:33.337Z	DEBUG	[uninstall.composable]	Stopped controller for composable inputs
2024-11-19T16:21:33.406Z	INFO	[uninstall]	Capabilities file not found in /opt/Elastic/Agent/capabilities.yml
2024-11-19T16:21:33.427Z	DEBUG	[uninstall]	uninstall endpoint-security service
Error: error uninstalling agent: error uninstalling components: error uninstalling component: error uninstalling service: exit status 135
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.15/fleet-troubleshooting.html
  • Version:
sudo /opt/Elastic/Agent/elastic-agent version
Binary: 8.15.4 (build: 0ab98c58e4e518a22e47047e4fb2c96322b3f107 at 2024-11-07 09:37:51 +0000 UTC)
Daemon: 8.15.4 (build: 0ab98c58e4e518a22e47047e4fb2c96322b3f107 at 2024-11-07 09:37:51 +0000 UTC)
  • Operating System:
uname -a
Linux debian-arm 6.1.0-27-arm64 #1 SMP Debian 6.1.115-1 (2024-11-01) aarch64 GNU/Linux

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions