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

配置文件报错,但是指令检查状态正常 #1090

Open
showsmall opened this issue Nov 13, 2024 · 2 comments
Open

配置文件报错,但是指令检查状态正常 #1090

showsmall opened this issue Nov 13, 2024 · 2 comments

Comments

@showsmall
Copy link

showsmall commented Nov 13, 2024

Relevant config.toml

配置文件异常启动后,./categraf --status 指令检查状态是running,其实没有启动成功
版本:[v0.3.82]

Logs from categraf

Nov 13 18:23:50 VM-6-3-centos systemd: Started Opensource telemetry collector.
Nov 13 18:23:50 VM-6-3-centos categraf: 2024/11/13 18:23:50 F! failed to init config: failed to load configs of dir: /Data/Categraf/categraf-v0.3.82-linux-amd64/conf err:toml: line 505 (last key "logs.items.path"): expected value but found '/' instead
Nov 13 18:23:50 VM-6-3-centos systemd: categraf.service: main process exited, code=exited, status=1/FAILURE
Nov 13 18:23:50 VM-6-3-centos systemd: Unit categraf.service entered failed state.
Nov 13 18:23:50 VM-6-3-centos systemd: categraf.service failed.
Nov 13 18:24:01 VM-6-3-centos systemd: Started Session 275794 of user root.
^C
[root@VM-6-3-centos categraf-v0.3.82-linux-amd64]# 
[root@VM-6-3-centos categraf-v0.3.82-linux-amd64]# 
[root@VM-6-3-centos categraf-v0.3.82-linux-amd64]# ./categraf --status
2024/11/13 18:24:57 I! show categraf service status: running
[root@VM-6-3-centos categraf-v0.3.82-linux-amd64]# ps -ef |grep linux
root     16996 31725  0 18:25 pts/0    00:00:00 grep --color=auto linux
root     29554     1  0 Jul11 tty1     00:00:00 /sbin/agetty --noclear tty1 linux
[root@VM-6-3-centos categraf-v0.3.82-linux-amd64]# ps -ef |grep categraf
root     17054 31725  0 18:25 pts/0    00:00:00 grep --color=auto categraf
[root@VM-6-3-centos categraf-v0.3.82-linux-amd64]# ./categraf --status
2024/11/13 18:25:42 I! show categraf service status: running
[root@VM-6-3-centos categraf-v0.3.82-linux-amd64]#

System info

v0.3.82

Docker

No response

Steps to reproduce

配置文件异常启动后,./categraf --status 指令检查状态是running,其实没有启动成功

Expected behavior

配置文件异常启动后,./categraf --status 指令检查状态是running,其实没有启动成功

Actual behavior

配置文件异常启动后,./categraf --status 指令检查状态是running,其实没有启动成功

Additional info

No response

@kongfei605
Copy link
Collaborator

failed to init config: failed to load configs of dir: /Data/Categraf/categraf-v0.3.82-linux-amd64/conf err:toml: line 505 (last key "logs.items.path"): expected value but found '/' instead

@kongfei605
Copy link
Collaborator

categraf --status 跟执行systemctl status categraf是一样的效果。 这种情况systemctl 会不停拉起categraf,你用systemctl status 也是一样的效果。

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