Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Problem in Amazon OpsWorks with Ubuntu 16.04 #457

Open
jsyrjala opened this issue Jul 1, 2016 · 1 comment
Open

Problem in Amazon OpsWorks with Ubuntu 16.04 #457

jsyrjala opened this issue Jul 1, 2016 · 1 comment

Comments

@jsyrjala
Copy link

jsyrjala commented Jul 1, 2016

When I try to install apache2 after installing logstash in Amazon OpsWorks with Ubuntu 16.04 the apache installation fails with following error.

There is no problem when I use Amazon OpsWorks with Ubuntu 14.04. So is there something fishy in startup script for logstash_agent?

monit seems to be basic functionality in OpsWorks version of Ubuntu 16.04.

insserv: warning: script 'logstash_agent' missing LSB tags and overrides
insserv: There is a loop between service monit and logstash_agent if stopped
insserv:  loop involving service logstash_agent at depth 2
insserv:  loop involving service monit at depth 1
insserv: Stopping logstash_agent depends on monit 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
dpkg: error processing package apache2 (--configure):
 subprocess installed post-installation script returned error exit status 1
@jsyrjala
Copy link
Author

jsyrjala commented Jul 21, 2016

I believe the problem is that starting from Ubuntu 16.04 systemd is used and chef-logstash creates upstart scripts.

    when 'ubuntu'
      if platform_major_version >= 6.10
        'upstart'
      else
        'sysvinit'
      end

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant