我已经在 VPS 中安装了 ELK Stack 6.7.1,并在另一个 vps 中安装了代理 filebeat,其中运行着 glassfish 4.1 和 grafana,但运行着 filebeat 来转储 glassfish 日志:
sudo update-rc.d filebeat defaults 95 10
抛出这个错误:
insserv: warning: script 'K01glassfish' missing LSB tags and overrides
insserv: warning: script 'glassfish' missing LSB tags and overrides
insserv: There is a loop at service grafana if started
insserv: There is a loop between service grafana and mountnfs if started
insserv: loop involving service mountnfs at depth 8
insserv: loop involving service networking at depth 7
insserv: loop involving service mountnfs-bootclean at depth 10
insserv: There is a loop between service glassfish and mountall if started
insserv: loop involving service mountall at depth 6
insserv: loop involving service checkroot-bootclean at depth 5
insserv: There is a loop between service glassfish and mountall-bootclean if started
insserv: loop involving service mountall-bootclean at depth 7
insserv: There is a loop between service glassfish and mountall if started
insserv: There is a loop between service grafana and mountdevsubfs if started
insserv: loop involving service mountdevsubfs at depth 2
insserv: loop involving service udev at depth 1
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Max recursions depth 99 reached
insserv: loop involving service mysql at depth 1
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: loop involving service urandom at depth 9
insserv: There is a loop between service grafana and hwclock if started
insserv: loop involving service hwclock at depth 4
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: Starting glassfish depends on grafana-server and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
答案1
前段时间我解决了这个问题。如果服务器上只安装了 grafana,开发团队就会忽略它或认为它已被卸载,此外,我与他们合作的时间并不长。我发现 grafana 服务在启动时配置但被禁用。必须将其删除,这样问题才能消失。