Start the grafana service with other user and report an error

There was an error when I installed and configured Grafana with tar package and started it. However, I switched to another directory to start, but this problem did not appear. Why is this? How to solve it
What was expected to happen?

  • What Grafana version and what operating system are you using?
    grafana 8.0.3
  • What are you trying to achieve?
    start with other user in root dir success
  • How are you trying to achieve it?
    su operator /bin/bash -c ‘nohup /iotp/env/grafana/installed/bin/grafana-server --pidfile=/iotp/env/grafana/installed/run/ --config=/iotp/env/grafana/installed/conf/grafana.ini --homepath /iotp/env/grafana/installed cfg:default.paths.provisioning=/iotp/env/grafana/installed/conf/provisioning cfg:default.paths.logs=/iotp/env/grafana/installed/log cfg:default.paths.plugins=/iotp/env/grafana/installed/plugins cfg:default.server.http_port=21300 &’
  • What happened?
    start grafana failed
  • What did you expect to happen?
    start grafana success
  • Can you copy/paste the configuration(s) that you are having problems with?
    the error log
    panic: error getting work directory: stat .: permission denied

goroutine 1 [running]:
/root/go/pkg/mod/ +0x110

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?

This topic was automatically closed after 365 days. New replies are no longer allowed.