Skip to content

Commit

Permalink
datadog-agent: add missing directory for system probe sockets (#34454)
Browse files Browse the repository at this point in the history
This PR adds the required directory for the system probe agents' IPC
socket files.
In particular:
* system probe (default: /opt/datadog-agent/run/sysprobe.sock)
* security runtime agent (default:
/opt/datadog-agent/run/runtime-security.sock)

The /opt/datadog-agent/run directory was missing leading to the
impossibility to create the IPC socket files for the system probes, for
which the following error log is printed:
```
error while starting api server, exiting: error creating IPC socket:
can't listen unix /opt/datadog-agent/run/sysprobe.sock: bind: no such file or directory.
```

Signed-off-by: Massimiliano Giovagnoli <[email protected]>
  • Loading branch information
maxgio92 authored Nov 18, 2024
1 parent fb1d46e commit 26175d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion datadog-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package:
# This package has two git checkouts. For each new release, the commit SHA for
# DataDog/integrations-core must also be updated.
version: 7.59.0
epoch: 1
epoch: 2
description: "Collect events and metrics from your hosts that send data to Datadog."
copyright:
- license: Apache-2.0
Expand Down Expand Up @@ -229,6 +229,11 @@ pipeline:
cp -r Dockerfiles/agent/init-stage3 ${{targets.contextdir}}/etc/s6/init/init-stage3
cp Dockerfiles/agent/init-stage3-host-pid ${{targets.contextdir}}/etc/s6/init/init-stage3-host-pid
# Needed by the system-probe and runtime security agent sockets.
# The default system-probe socket path is /opt/datadog-agent/run/sysprobe.sock
# The default runtime security agent socket path is /opt/datadog-agent/run/runtime-security.sock
mkdir ${{targets.contextdir}}${{vars.destd}}/run
- uses: strip

subpackages:
Expand Down

0 comments on commit 26175d2

Please sign in to comment.