grafana-server在CHDIR步骤失败

时间:2018-02-15 11:45:31

标签: ubuntu ubuntu-16.04 influxdb grafana

我在我的grafana计算机上安装了ubuntu 16.04,就像它在official documentation中说的那样;然后我执行了启用:

zeinab@ZiZi:~$ sudo systemctl daemon-reload
zeinab@ZiZi:~$ sudo systemctl stop grafana-server
zeinab@ZiZi:~$ sudo systemctl start grafana-server
zeinab@ZiZi:~$ sudo systemctl enable grafana-server

sudo netstat -plntua | grep 3000没有任何回报。我没有对配置进行任何更改。在/var/log/grafana/grafana.log中没有写任何内容,但在执行上述命令的过程中,我在/var/log/syslog grafana上获得了以下几行:

Feb 15 15:11:38 ZiZi systemd[1]: Stopped Starts and stops a single grafana instance on this system.
Feb 15 15:11:44 ZiZi systemd[1902]: grafana-server.service: Failed at step CHDIR spawning /usr/sbin/grafana-server: No such file or directory
Feb 15 15:11:44 ZiZi systemd[1]: Started Starts and stops a single grafana instance on this system.
Feb 15 15:11:44 ZiZi systemd[1]: grafana-server.service: Main process exited, code=exited, status=200/CHDIR
Feb 15 15:11:44 ZiZi systemd[1]: grafana-server.service: Unit entered failed state.
Feb 15 15:11:44 ZiZi systemd[1]: grafana-server.service: Failed with result 'exit-code'.

原因是什么?我做错什么了吗?它与安装过程有关吗?

编辑1:

以下是sudo systemctl status grafana-server返回的内容:

● grafana-server.service - Starts and stops a single grafana instance on this system
   Loaded: loaded (/usr/lib/systemd/system/grafana-server.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2018-02-15 15:11:44 +0330; 8min ago
     Docs: http://docs.grafana.org
 Main PID: 1902 (code=exited, status=200/CHDIR)

Feb 15 15:11:44 ZiZi systemd[1]: Started Starts and stops a single grafana instance on this system.
Feb 15 15:11:44 ZiZi systemd[1]: grafana-server.service: Main process exited, code=exited, status=200/CHDIR
Feb 15 15:11:44 ZiZi systemd[1]: grafana-server.service: Unit entered failed state.
Feb 15 15:11:44 ZiZi systemd[1]: grafana-server.service: Failed with result 'exit-code'.

0 个答案:

没有答案