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

Enabling service fails with RPM installation on SLES 15 #6704

Open
fdartayre opened this issue Feb 4, 2025 · 3 comments
Open

Enabling service fails with RPM installation on SLES 15 #6704

fdartayre opened this issue Feb 4, 2025 · 3 comments
Labels
bug Something isn't working Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team

Comments

@fdartayre
Copy link
Contributor

  • Version: 8.16.1
  • Operating System:
home:~ # cat /etc/os-release
NAME="SLES"
VERSION="15-SP6"
VERSION ID="15.6"
PRETTY NAME="SUSE Linux Enterprise Server 15 SP6"
ID="sles"
ID LIKE="suse"
ANSI COLOR="0;32"
CPE NAME="ce:/0:suse:sles:15:sp6"
DOCUMENTATION URL="https://documentation.suse.com/"
home:~ # systemctl enable --now elastic-agent.service
Synchronizing state of elastic-agent.service with SysV service script with /usr/lib/systemd/systemd-sysv-install.
Executing: /usr/lib/systemd/systemd-sysv-install enable elastic-agent
ln -sf ../elastic-agent /etc/init.d/rc2.d/S50elastic-agent
ln: failed to create symbolic link '/etc/init.d/rc2.d/S50elastic-agent': No such file or directory
home:~ # systemctl status elastic-agent.service
• elastic-agent.service - Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
     Loaded: loaded (/lib/systemd/system/elastic-agent.service; disabled; preset: disabled)
     Active: active (running) since Wed 2025-01-22 14:19:46 CET; 7min ago
       Docs: https://www.elastic.co/elastic-agent
   Main PID: 17692 (elastic-agent)
      Tasks: 46
        CPU: 3.199s
    CGroup: /system.slice/elastic-agent.service
@fdartayre fdartayre added the bug Something isn't working label Feb 4, 2025
@pierrehilbert
Copy link
Contributor

@amolnater-qasource if I remember correctly, you ran some testing on SLES15, did you face a similar issue?

@pierrehilbert pierrehilbert added the Team:Elastic-Agent-Control-Plane Label for the Agent Control Plane team label Feb 5, 2025
@elasticmachine
Copy link
Contributor

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

@amolnater-qasource
Copy link

Hi @pierrehilbert

We have revalidated this issue on 8.16.1 production kibana cloud environment and had below observations.

  • No issues are observed while installing RPM or tar agent on SLES15.
  • Agents remain Healthy throughout.
  • We do get this error while running enable command: failed to create symbolic link '/etc/init.d/rc2.d/S50elastic-agent': No such file or directory.
  • However, when we actually run the agent enroll command, we observed no errors on SLES15.

Please find below screenshots for the same:

Image

Image

Agents.-.Fleet.-.Elastic.-.Google.Chrome.2025-02-06.14-25-25.mp4

Artifact Link: https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.16.1-x86_64.rpm

Logs:

elastic-agent-diagnostics-2025-02-06T09-04-34Z-00.zip

OS:
Image

For existing issues:

Please let us know if we are missing anything here.
Thanks!

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