Grafana-oss:9.0.2 failed to start

  • What Grafana version and what operating system are you using?
    using Grafana-oss:9.0.2
    Ubuntu Version="18.04.6 LTS (Bionic Beaver)

  • What are you trying to achieve?
    To run docker container successfully

  • How are you trying to achieve it?
    pulled docker image grafana/grafana-oss:9.0.1 from docker hub to local, updated the docker compose file and run the container

  • What happened?
    Its showing an error as:
    Grafana server is running with elevated privileges. This is not recommended
    logger=settings t=2022-06-30T00:41:23.060835725Z level=info msg=“Starting Grafana” version=9.0.2 commit=0641b5d0cd branch=HEAD compiled=2022-06-28T11:24:40Z
    logger=settings t=2022-06-30T00:41:23.063593898Z level=info msg=“Config loaded from” file=/usr/share/grafana/conf/defaults.ini
    logger=settings t=2022-06-30T00:41:23.063613541Z level=info msg=“Config loaded from” file=/etc/grafana/grafana.ini
    logger=settings t=2022-06-30T00:41:23.063627805Z level=info msg=“Config overridden from command line” arg=“default.paths.data=/var/lib/grafana”
    logger=settings t=2022-06-30T00:41:23.06363651Z level=info msg=“Config overridden from command line” arg=“default.paths.logs=/var/log/grafana”
    logger=settings t=2022-06-30T00:41:23.063644295Z level=info msg=“Config overridden from command line” arg=“default.paths.plugins=/var/lib/grafana/plugins”
    logger=settings t=2022-06-30T00:41:23.063651885Z level=info msg=“Config overridden from command line” arg=“default.paths.provisioning=/etc/grafana/provisioning”
    logger=settings t=2022-06-30T00:41:23.063660507Z level=info msg=“Config overridden from command line” arg=“default.log.mode=console”
    logger=settings t=2022-06-30T00:41:23.063672142Z level=info msg=“Config overridden from Environment variable” var=“GF_PATHS_DATA=/var/lib/grafana”
    logger=settings t=2022-06-30T00:41:23.063696731Z level=info msg=“Config overridden from Environment variable” var=“GF_PATHS_LOGS=/var/log/grafana”
    logger=settings t=2022-06-30T00:41:23.063708829Z level=info msg=“Config overridden from Environment variable” var=“GF_PATHS_PLUGINS=/var/lib/grafana/plugins”
    logger=settings t=2022-06-30T00:41:23.06371857Z level=info msg=“Config overridden from Environment variable” var=“GF_PATHS_PROVISIONING=/etc/grafana/provisioning”
    logger=settings t=2022-06-30T00:41:23.063726019Z level=info msg=“Config overridden from Environment variable” var=“GF_SERVER_ROOT_URL=https://grafana.sdx.com:3000”
    logger=settings t=2022-06-30T00:41:23.063736325Z level=info msg=“Path Home” path=/usr/share/grafana
    logger=settings t=2022-06-30T00:41:23.063744343Z level=info msg=“Path Data” path=/var/lib/grafana
    logger=settings t=2022-06-30T00:41:23.063751519Z level=info msg=“Path Logs” path=/var/log/grafana
    logger=settings t=2022-06-30T00:41:23.06376486Z level=info msg=“Path Plugins” path=/var/lib/grafana/plugins
    logger=settings t=2022-06-30T00:41:23.063773012Z level=info msg=“Path Provisioning” path=/etc/grafana/provisioning
    logger=settings t=2022-06-30T00:41:23.063780738Z level=info msg=“App mode production”
    Failed to start grafana. error: section “tracing.opentelemetry.otlp” does not exist
    section “tracing.opentelemetry.otlp” does not exist
    Grafana server is running with elevated privileges. This is not recommended
    Failed to start grafana. error: section “tracing.opentelemetry.otlp” does not exist
    section “tracing.opentelemetry.otlp” does not exist

  • What did you expect to happen?
    To run the container successfully

  • 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.

No.

  • Did you follow any online instructions? If so, what is the URL?

are you still blocked on this?

Upon updating the existing file /etc/grafana/grafana.ini with the otlp block with reference to the latest grafana.ini file made for grafana version 9.0.2, the issue got resolved

i’m also stuck starting grafana 9.0.2.

what is the “otip” block ??

Eric.

1 Like

For me, adding (the otip block):

[tracing.opentelemetry.otlp]

and

[tracing.opentelemetry]

to the end of /usr/share/grafana/conf/defaults.ini made grafana start again,

you may have to add it to /etc/grafana/grafana.ini instead, depending on where grafana reads its config file from.

@padlefot thanks a ton. It worked. adding the telemetry block will resolve the issue. As an alternate, we can replace the complete defaults.ini content with the GitHub repo and fine-tune the values as per the required environment.

1 Like