Kibana version:
Kibana: 7.10.0 BC5 cloud environment
Elasticsearch version:
Elasticsearch: 7.10.0 BC5 cloud environment
Host OS and Browser version:
Linux Debian 9 , All
Original install method (e.g. download page, yum, from source, etc.):
7.10.0 BC5 cloud environment from https://cloud.elastic.co
Description
Agent goes to Offline status on reboot of Linux deb stand-alone agent enroll to Fleet
Preconditions
- 7.10.0 BC5 Kibana cloud environment(with commit 1796b5ec8fa1e60ccea63f2e5c25ccc665b92fdc) should be available.
- Login into the above Kibana environment with 'elastic' superuser.
- 7.10.0 BC5 Linux amd64.deb agent package should be downloaded and installed(on Linux Debian 9) from below location:
https://staging.elastic.co/7.10.0-b55684ff/downloads/beats/elastic-agent/elastic-agent-7.10.0-amd64.deb
Steps to Reproduce
-
Download the "elastic-agent-7.10.0-amd64.deb" package.
-
SSH to the endpoint and place the agent package on /home/zeus location on Debian 9 Linux machine.
-
Hit the command to get the root/admin permission: sudo su root
-
Run the command: sudo dpkg -i elastic-agent-7.10.0-amd64.deb
-
Download elastic-agent.yml from Add agent ->Standalone mode on Agents tab in Kibana and add Kibana login username and password in outputs section of elastic-agent.yml (Modify ES_USERNAME and ES_PASSWORD in the outputs section of elastic-agent.yml to use your Elasticsearch credentials)
elastic-agent_yml.zip
-
Copy elastic-agent.yml file to /home/zeus on Linux Debian 9 machine
-
Then execute: sudo cp /home/zeus/elastic-agent.yml /etc/elastic-agent/elastic-agent.yml
-
Run the following commands to run the standalone agent :-
elastic-agent run
-
Execute the enroll command :-
sudo elastic-agent enroll https://d9dc24b9e27749e8af99cb8d590ca97f.europe-west1.gcp.cloud.es.io:9243 Y1RKaHJIVUJHcXBIMWZsU1dLTEI6cEtfakhXVTJScUctUmJhUENiRFlZQQ==
-
Execute the below command to enable the agent :-
systemctl enable elastic-agent
and observe that error is displayed in putty :-
Failed to reload daemon: The name org.freedesktop.PolicyKit1 was not provided by any .service files
update-rc.d: error: no runlevel symlinks to modify, aborting!
- Execute the below command to start the agent :-
systemctl start elastic-agent
and observe that following error is displayed in putty but agent comes in Online status and activity logs are displayed :-
Failed to start elastic-agent.service: The name org.freedesktop.PolicyKit1 was not provided by any .service files
See system logs and 'systemctl status elastic-agent.service' for details.
- Run the command 'sudo reboot' and observe that agent goes to Offline status.
Test data
N/A
Impacted Test case id
https://elastic.testrail.io/index.php?/cases/view/34373
Actual Result
Agent goes to Offline status on reboot of Linux deb stand-alone agent enroll to Fleet
Expected Result
Agent should remain in Online status on reboot of Linux deb stand-alone agent enroll to Fleet
What's working
- Issue is not occurring on stand-alone agent enroll to Fleet with Linux rpm
What's not working
Screenshot
-
Errors in putty on enabling and starting the agent:

-
Agent in Online status with activity logs on executing agent start command(before reboot):

-
Agent in Offline status after reboot:

-
Linux Debian 9 machine VSphere Template:

Logs
N/A
Kibana version:
Kibana: 7.10.0 BC5 cloud environment
Elasticsearch version:
Elasticsearch: 7.10.0 BC5 cloud environment
Host OS and Browser version:
Linux Debian 9 , All
Original install method (e.g. download page, yum, from source, etc.):
7.10.0 BC5 cloud environment from https://cloud.elastic.co
Description
Agent goes to Offline status on reboot of Linux deb stand-alone agent enroll to Fleet
Preconditions
https://staging.elastic.co/7.10.0-b55684ff/downloads/beats/elastic-agent/elastic-agent-7.10.0-amd64.deb
Steps to Reproduce
Download the "elastic-agent-7.10.0-amd64.deb" package.
SSH to the endpoint and place the agent package on /home/zeus location on Debian 9 Linux machine.
Hit the command to get the root/admin permission: sudo su root
Run the command: sudo dpkg -i elastic-agent-7.10.0-amd64.deb
Download elastic-agent.yml from Add agent ->Standalone mode on Agents tab in Kibana and add Kibana login username and password in outputs section of elastic-agent.yml (Modify ES_USERNAME and ES_PASSWORD in the outputs section of elastic-agent.yml to use your Elasticsearch credentials)
elastic-agent_yml.zip
Copy elastic-agent.yml file to /home/zeus on Linux Debian 9 machine
Then execute: sudo cp /home/zeus/elastic-agent.yml /etc/elastic-agent/elastic-agent.yml
Run the following commands to run the standalone agent :-
elastic-agent run
Execute the enroll command :-
sudo elastic-agent enroll https://d9dc24b9e27749e8af99cb8d590ca97f.europe-west1.gcp.cloud.es.io:9243 Y1RKaHJIVUJHcXBIMWZsU1dLTEI6cEtfakhXVTJScUctUmJhUENiRFlZQQ==
Execute the below command to enable the agent :-
systemctl enable elastic-agent
and observe that error is displayed in putty :-
systemctl start elastic-agent
and observe that following error is displayed in putty but agent comes in Online status and activity logs are displayed :-
Test data
N/A
Impacted Test case id
https://elastic.testrail.io/index.php?/cases/view/34373
Actual Result
Agent goes to Offline status on reboot of Linux deb stand-alone agent enroll to Fleet
Expected Result
Agent should remain in Online status on reboot of Linux deb stand-alone agent enroll to Fleet
What's working
What's not working
Screenshot
Errors in putty on enabling and starting the agent:

Agent in Online status with activity logs on executing agent start command(before reboot):

Agent in Offline status after reboot:

Linux Debian 9 machine VSphere Template:

Logs
N/A