ncabatoff / process-exporter

Prometheus exporter that mines /proc to report on selected processes
MIT License
1.72k stars 270 forks source link

Failed to start process_exporter. 无法启动进程服务 #250

Open lc12345670 opened 2 years ago

lc12345670 commented 2 years ago

process-exporter.service - process_exporter Loaded: loaded (/lib/systemd/system/process-exporter.service; disabled; vendor preset: enabled) Active: failed (Result: exit-code) since Wed 2022-11-30 03:21:49 UTC; 8s ago Process: 829484 ExecStart=/usr/local/process-exporter/process-exporter -config.path /usr/local/process-exporter/config.yaml (code=exited, status=203/EXEC) Main PID: 829484 (code=exited, status=203/EXEC)

Nov 30 03:21:49 US02-5037MR-003-01 systemd[1]: process-exporter.service: Scheduled restart job, restart counter is at 5. Nov 30 03:21:49 US02-5037MR-003-01 systemd[1]: Stopped process_exporter. Nov 30 03:21:49 US02-5037MR-003-01 systemd[1]: process-exporter.service: Start request repeated too quickly. Nov 30 03:21:49 US02-5037MR-003-01 systemd[1]: process-exporter.service: Failed with result 'exit-code'. Nov 30 03:21:49 US02-5037MR-003-01 systemd[1]: Failed to start process_exporter.

lyndsey-ferguson commented 7 months ago

Make sure that the file path is correct. I was getting this same error and it was because the file path I had configured in my service was:

/opt/process_exporter/process_exporter -config.path /etc/systemd/process-exporter.system.d/process-exporter.yml

When the correct file path is:

/opt/process_exporter/process-exporter -config.path /etc/systemd/process-exporter.system.d/process-exporter.yml
- /opt/process_exporter/process_exporter -config.path /etc/systemd/process-exporter.system.d/process-exporter.yml
+ /opt/process_exporter/process-exporter -config.path /etc/systemd/process-exporter.system.d/process-exporter.yml