通过 init.d 脚本启动且无进程时,尝试启动 uchiwa 失败且没有错误。
/var/log/uchiwa.log 中没有输出
输出在/var/log/uchiwa.err
:
/opt/uchiwa/bin/uchiwa: 1: /opt/uchiwa/bin/uchiwa: cannot create ^A: Permission denied
/opt/uchiwa/bin/uchiwa: 1: /opt/uchiwa/bin/uchiwa: ^?ELF^B^A^A^B: not found
/opt/uchiwa/bin/uchiwa: 2: /opt/uchiwa/bin/uchiwa: Syntax error: "(" unexpected
I also ensured permissions in the /etc/sensu directory was correct with:
vagrant@vagrant-ubuntu-trusty-32:~$ ls -la /etc/sensu/
total 44
drwxr-xr-x 8 sensu sensu 4096 Mar 17 10:15 .
drwxr-xr-x 99 root root 4096 Mar 27 00:55 ..
drwxr-xr-x 2 sensu sensu 4096 Mar 17 09:53 conf.d
-rw-r--r-- 1 sensu sensu 218 Mar 11 05:08 config.json
-rw-r--r-- 1 sensu sensu 683 Mar 2 02:29 config.json.example
drwxr-xr-x 2 sensu sensu 4096 Mar 17 10:13 dashboard.d
drwxr-xr-x 2 sensu sensu 4096 Mar 2 02:29 extensions
drwxr-xr-x 2 sensu sensu 4096 Mar 2 02:29 handlers
drwxr-xr-x 2 sensu sensu 4096 Mar 2 02:29 mutators
drwxr-xr-x 2 sensu sensu 4096 Mar 2 02:29 plugins
-rw-r--r-- 1 sensu sensu 201 Mar 17 10:15 uchiwa.json
vagrant@vagrant-ubuntu-trusty-32:/opt/uchiwa$ ls -la
total 16
drwxr-xr-x 4 root root 4096 Mar 17 10:13 .
drwxr-xr-x 4 root root 4096 Mar 17 10:13 ..
drwxr-xr-x 2 root root 4096 Mar 17 10:13 bin
drwxr-xr-x 3 root root 4096 Mar 17 10:13 src
知道为什么这可能不起作用吗?谢谢。
更新 1:
确实存在权限问题,我通过提供现在已解决的正确权限解决了该问题:
/opt/uchiwa/bin/uchiwa: 1: /opt/uchiwa/bin/uchiwa: cannot create ^A: Permission denied
但是,以下错误仍然存在:
/opt/uchiwa/bin/uchiwa: 1: /opt/uchiwa/bin/uchiwa: ^?ELF^B^A^A^B: not found
/opt/uchiwa/bin/uchiwa: 2: /opt/uchiwa/bin/uchiwa: Syntax error: "(" unexpected
我已经重新安装了软件包,但它看起来仍然损坏。