Agent won't start

I’m trying to add linux hosts, but the grafana-agent package won’t start:

~# systemctl status grafana-agent.service
× grafana-agent.service - Monitoring system and forwarder
Loaded: loaded (/lib/systemd/system/grafana-agent.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2023-03-31 09:16:07 PDT; 5s ago
Docs: Grafana Agent | Grafana Agent documentation
Process: 98194 ExecStart=/usr/bin/grafana-agent --config.file $CONFIG_FILE $CUSTOM_ARGS (code=exited, status=1/FAILURE)
Main PID: 98194 (code=exited, status=1/FAILURE)
CPU: 116ms

Mar 31 09:16:07 carrot systemd[1]: grafana-agent.service: Scheduled restart job, restart counter is at 5.
Mar 31 09:16:07 carrot systemd[1]: Stopped Monitoring system and forwarder.
Mar 31 09:16:07 carrot systemd[1]: grafana-agent.service: Start request repeated too quickly.
Mar 31 09:16:07 carrot systemd[1]: grafana-agent.service: Failed with result ‘exit-code’.
Mar 31 09:16:07 carrot systemd[1]: Failed to start Monitoring system and forwarder.

Mar 31 09:03:27 carrot systemd[1]: Started Monitoring system and forwarder.
Mar 31 09:03:27 carrot dbus-daemon[91823]: [session uid=998 pid=91821] AppArmor D-Bus mediation is enabled
Mar 31 09:03:27 carrot grafana-agent[91807]: ts=2023-03-31T16:03:27.88924118Z caller=main.go:72 level=error msg=“error creating the agent server entrypoint” err="creating HT>
Mar 31 09:03:27 carrot systemd[1]: grafana-agent.service: Main process exited, code=exited, status=1/FAILURE
Mar 31 09:03:27 carrot systemd[1]: grafana-agent.service: Failed with result ‘exit-code’.
Mar 31 09:03:28 carrot systemd[1]: grafana-agent.service: Scheduled restart job, restart counter is at 5.
Mar 31 09:03:28 carrot systemd[1]: Stopped Monitoring system and forwarder.
Mar 31 09:03:28 carrot systemd[1]: grafana-agent.service: Start request repeated too quickly.
Mar 31 09:03:28 carrot systemd[1]: grafana-agent.service: Failed with result ‘exit-code’.
Mar 31 09:03:28 carrot systemd[1]: Failed to start Monitoring system and forwarder.
Mar 31 09:04:37 carrot systemd[1]: Started Monitoring system and forwarder.
Mar 31 09:04:37 carrot dbus-daemon[92374]: [session uid=998 pid=92372] AppArmor D-Bus mediation is enabled
Mar 31 09:04:37 carrot grafana-agent[92352]: ts=2023-03-31T16:04:37.326631131Z caller=main.go:72 level=error msg=“error creating the agent server entrypoint” err="creating H>
Mar 31 09:04:37 carrot systemd[1]: grafana-agent.service: Main process exited, code=exited, status=1/FAILURE

It just does this in a loop forever, and the agent never runs.

Following … I’ve been having the same issue since 3/31.
image

Mar 31 09:03:27 carrot grafana-agent[91807]: ts=2023-03-31T16:03:27.88924118Z caller=main.go:72 level=error msg=“error creating the agent server entrypoint” err="creating HT>

Can you send the whole log line here? It’s getting cut off, which is preventing us from understanding what the problem is.