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