You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In trying to work around #24160 we experimented with agent.download.install_path and agent.download.target_directory Specifically, running on Kubernetes, we tried to mount an emptyDir volume to use for both these locations as this would have allowed us to sidestep the noexec property of the main data path.
The problem with that approach seems that Agent uses a temporary directory in $path.home/data/tmp where it stages the programs to run to then move them to their final location (presumable with os.Rename ) which fails because source and target are not on the same filesystem
rename /var/lib/elastic-agent/data/tmp/elastic-agent-install414079180/metricbeat-7.11.1-linux-x86_64 /install/metricbeat-7.11.1-linux-x86_64: invalid cross-device link
I think either this restriction needs to be documented/flagged up when mis-configured by the user or Elastic Agent should take the os.Open(src)/os.Create(tgt)/io.Copy(tgt, src)/os.Remove(src) approach instead of renaming.
The text was updated successfully, but these errors were encountered:
In trying to work around #24160 we experimented with
agent.download.install_path
andagent.download.target_directory
Specifically, running on Kubernetes, we tried to mount anemptyDir
volume to use for both these locations as this would have allowed us to sidestep thenoexec
property of the main data path.The problem with that approach seems that Agent uses a temporary directory in
$path.home/data/tmp
where it stages the programs to run to then move them to their final location (presumable withos.Rename
) which fails because source and target are not on the same filesystemI think either this restriction needs to be documented/flagged up when mis-configured by the user or Elastic Agent should take the
os.Open(src)/os.Create(tgt)/io.Copy(tgt, src)/os.Remove(src)
approach instead of renaming.The text was updated successfully, but these errors were encountered: