當通過init.d腳本啓動並且沒有進程時,嘗試啓動uchiwa失敗,沒有錯誤。無法啓動uchiwa(sensu儀表板)
在/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:
[email protected]:~$ 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
[email protected]:/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
我已重新安裝該軟件包,但它仍然看起來損壞。
對我來說,它看起來像與uchiwa的權限問題,而不是與sensu。 – Kobbe