Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Grafana Failed to start on HDP2.4.2

Solved Go to solution
Highlighted

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

Accepted Solutions
Highlighted

Re: Grafana Failed to start on HDP2.4.2

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
Highlighted

Re: Grafana Failed to start on HDP2.4.2

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/*)

Highlighted

Re: Grafana Failed to start on HDP2.4.2

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

Highlighted

Re: Grafana Failed to start on HDP2.4.2

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

Highlighted

Re: Grafana Failed to start on HDP2.4.2

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

Highlighted

Re: Grafana Failed to start on HDP2.4.2

@Aravindan Vijayan

: Thanks! it fixes my issue.

Don't have an account?
Coming from Hortonworks? Activate your account here