Bug 1916083
| Summary: | grafana-cli crashes when run from root's home directory | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Jan Kurik <jkurik> | ||||
| Component: | grafana | Assignee: | Andreas Gerstmayr <agerstmayr> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Jan Kurik <jkurik> | ||||
| Severity: | high | Docs Contact: | Apurva Bhide <abhide> | ||||
| Priority: | high | ||||||
| Version: | 8.4 | CC: | agerstmayr, jkurik, mgoodwin, nathans, nhosoi | ||||
| Target Milestone: | rc | Keywords: | Bugfix, Triaged | ||||
| Target Release: | 8.4 | Flags: | pm-rhel:
mirror+
|
||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | grafana-7.3.6-2.el8 | Doc Type: | No Doc Update | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2021-05-18 15:51:11 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: grafana security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:1859 |
Created attachment 1747314 [details] grafana-cli crash output Description of problem: When a root user with current working directory not being accessible for grafana user (like /root - the root's home directory) runs grafana-cli, the utility crashes. Version-Release number of selected component (if applicable): * grafana-7.3.6-1.el8 How reproducible: * Always Steps to Reproduce: 1. Install grafana on RHEL-8 # yum install -y grafana 2. As root user switch your current working directory to "/root" # cd ~ 3. Run the grafana-cli utility # grafana-cli plugins ls Actual results: The grafana-cli utility crashes with error output attached to this bug Expected results: No crash, the grafana-cli just works Additional info: As the /usr/sbin/grafana-cli is a shell wrapper to /usr/libexec/grafana/grafana-cli , the simple solution to this bug is to do "cd ~grafana" or "cd ${GRAFANA_HOME}" in /usr/sbin/grafana-cli before "runuser" command is executed.