Support Questions

Find answers, ask questions, and share your expertise

Grafana Failed to start on HDP2.4.2

Explorer

File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call raise Fail(err_msg) resource_management.core.exceptions.Fail: Execution of '/usr/sbin/ambari-metrics-grafana start' returned 1. Starting Ambari Metrics Grafana: .... FAILED

1 ACCEPTED SOLUTION

Explorer

On troubleshooting found the solution:

We were installing Ambari Metrics as customised user and the permission on /var/lib/ambari-metrics-grafana directory was owned by root.

we changed the ownership of directory to customised grafana user/group and after that grafana service was started.

It can be checked on server as netstat -nlp | grep 3000

View solution in original post

5 REPLIES 5

Expert Contributor

Hi Jigar,

Can you check if a Grafana instance is already running on that host, and Ambari is not picking it up?

ps aux | grep grafana

If it is running, please check if cat /var/run/ambari-metrics-grafana/grafana-server.pid matches the process id.

If it is not running, please share the Grafana logs (/var/log/ambari-metrics-grafana/*)

@Aravindan Vijayan

I'm experiencing the same problem with jigar. I checked it using your stated command and here's the result.

13905-grafana-process.png

It seems that it doesn't match the pid.

Explorer

On troubleshooting found the solution:

We were installing Ambari Metrics as customised user and the permission on /var/lib/ambari-metrics-grafana directory was owned by root.

we changed the ownership of directory to customised grafana user/group and after that grafana service was started.

It can be checked on server as netstat -nlp | grep 3000

Expert Contributor

@Bruce Perez This intermittent issue is fixed in Ambari 2.5.0 - https://issues.apache.org/jira/browse/AMBARI-19054.

Please change the pid file to match the actual PID.

echo 31695 > /var/run/ambari-metrics-grafana/grafana-server.pid

@Aravindan Vijayan

: Thanks! it fixes my issue.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.