Grafana-agent failed to start - Fedora 39

  • What Grafana version and what operating system are you using?
    Grafana-agent-0.37.3-1

  • What are you trying to achieve?
    Running the Grafana agent as a service.

  • How are you trying to achieve it?
    Running the installation script generated as part of the Grafana cloud agent tutorial

  • What happened?
    After installing the grafana agent, the service failed to start with the following error

Nov 23 14:01:10 fedora-8gb-ash-1 grafana-agent[1692]: ts=2023-11-23T14:01:10.597513115Z caller=main.go:71 level=info boringcryptoenabled=false
Nov 23 14:01:10 fedora-8gb-ash-1 grafana-agent[1692]: ts=2023-11-23T14:01:10.597759527Z caller=main.go:74 level=error msg="error creating the agent server entrypoint" err="creating gRPC listener: listen tcp 127.0.0.1:9091: bind: address already in use"
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Main process exited, code=exited, status=1/FAILURE
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Failed with result 'exit-code'.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Scheduled restart job, restart counter is at 5.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Start request repeated too quickly.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Failed with result 'exit-code'.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: Failed to start grafana-agent.service - Monitoring system and forwarder.
  • What did you expect to happen?

The Grafana agent to start without throwing an error

  • Can you copy/paste the configuration(s) that you are having problems with?

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

Nov 23 14:01:10 fedora-8gb-ash-1 grafana-agent[1692]: ts=2023-11-23T14:01:10.597513115Z caller=main.go:71 level=info boringcryptoenabled=false
Nov 23 14:01:10 fedora-8gb-ash-1 grafana-agent[1692]: ts=2023-11-23T14:01:10.597759527Z caller=main.go:74 level=error msg="error creating the agent server entrypoint" err="creating gRPC listener: listen tcp 127.0.0.1:9091: bind: address already in use"
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Main process exited, code=exited, status=1/FAILURE
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Failed with result 'exit-code'.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Scheduled restart job, restart counter is at 5.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Start request repeated too quickly.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: grafana-agent.service: Failed with result 'exit-code'.
Nov 23 14:01:10 fedora-8gb-ash-1 systemd[1]: Failed to start grafana-agent.service - Monitoring system and forwarder.
  • Did you follow any online instructions? If so, what is the URL?

Only instructions followed were the Grafana Agent installation guide on my grafana cloud instance

Hi @retrockit,

Welcome to the :grafana: community support forums !!

We are excited that you joined our OSS community. Please read about some of the FAQs in the community :slight_smile:

I have moved this post to the correct category so that it get more visibility.