Skip to content

Commit

Permalink
roachprod: fix grafana-start permission issue
Browse files Browse the repository at this point in the history
Recent regression from #84670. Was seeing the following:

    chmod: cannot access '/etc/grafana/provisioning/dashboards/cockroach.yaml': No such file or directory
    chmod: cannot access '/etc/grafana/provisioning/datasources/prometheus.yaml': No such file or directory

Release note: None
  • Loading branch information
irfansharif committed Jul 22, 2022
1 parent d7cf6d2 commit 967fb1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/roachprod/prometheus/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,7 @@ sudo apt-get update -qqy && sudo apt-get install -qqy grafana-enterprise && sudo
if err := c.RepeatRun(ctx, l,
os.Stdout,
os.Stderr, cfg.PrometheusNode, "permissions",
`sudo chmod 777 /etc/grafana/provisioning/dashboards/cockroach.yaml /etc/grafana/provisioning/datasources/prometheus.yaml
/etc/grafana/provisioning/datasources /etc/grafana/provisioning/dashboards /var/lib/grafana/dashboards`,
`sudo chmod 777 /etc/grafana/provisioning/datasources /etc/grafana/provisioning/dashboards /var/lib/grafana/dashboards`,
); err != nil {
return nil, err
}
Expand Down

0 comments on commit 967fb1e

Please sign in to comment.