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

[BUG] 使用systemctl 启动agent时发现错误 sh: 1: /usr/bin/rm: not found #7919

Open
asdfsx opened this issue Aug 22, 2024 · 2 comments
Assignees

Comments

@asdfsx
Copy link
Contributor

asdfsx commented Aug 22, 2024

使用systemctl 启动agent时发现错误

Aug 22 11:13:44 ubuntu deepflow-agent[4023]: sh: 1: /usr/bin/rm: not found
Aug 22 11:13:44 ubuntu deepflow-agent[4023]: sh: 1: /usr/bin/rm: not found

我觉得应该是和以下代码有关系。在ubuntu服务器上rm命令的位置是/bin/rm 而不是/usr/bin/rm

exec_command("/usr/bin/rm -rf /tmp/perf-*.log", "", NULL, 0);

@asdfsx asdfsx changed the title 使用systemctl 启动agent时发现错误 sh: 1: /usr/bin/rm: not found [BUG] 使用systemctl 启动agent时发现错误 sh: 1: /usr/bin/rm: not found Aug 22, 2024
@1473371932
Copy link
Contributor

你好,目前你是以进程形式部署 deepflow-agent 在主机上么,使用的什么版本呀,可以通过deepflow-agent -v看一下具体的 commit 版本。以及现在使用的什么系统呀,可通过hostnamectl看一下

@1473371932 1473371932 self-assigned this Aug 26, 2024
@asdfsx
Copy link
Contributor Author

asdfsx commented Aug 27, 2024

之前的测试环境已经回收了,所以详细信息我也拿不到了。
应该是在ubuntu20上裸机部署的。agent版本应该是6.6.1。
我想应该可以通过软连接来解决这个问题。
另外我在ubuntu22.04 上看rm 命令已经是在/usr/bin目录下了,应该不会有这个问题了
但是在其他的linux发行版上不知道会不会还有类似的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants