Open lc12345670 opened 2 years 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
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.