Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal errors when I 'install_only' on a base AMI (AWS) followed by a regular Chef run #78

Open
mvh opened this issue Jan 11, 2021 · 1 comment

Comments

@mvh
Copy link

mvh commented Jan 11, 2021

We're installing / running threatstack on 1/2 of our nodes. In order to save time during startup, threatstack-agent is installed with 'install_only' set to 'true' when building the base AMI, and then this value is set to 'false' on half of the booted instances. I'm seeing a fatal error at the end of the Chef run that looks like:

[2021-01-11T10:11:31-08:00]` FATAL: Mixlib::ShellOut::ShellCommandFailed: service[threatstack] (threatstack::agent_setup line 19) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /bin/systemctl --system start threatstack ----
STDOUT:
STDERR: Job for threatstack.service canceled.
---- End output of /bin/systemctl --system start threatstack ----

If I run the /bin/systemctl --system start threatstack manually as root after the Chef run threatstack does start up fine, it also starts on a reboot. Following Chef runs do not start the service running, though. On the initial boot from the AMI before the chef run systemd tries to bring up the threatstack-agent service, but it fails because it's not configured, and the service is shut down.

@amberb617
Copy link

Hi @mvh -- would it be possible to send an email to [email protected] so we can better assist you with this?

Thank you,
Amber

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

No branches or pull requests

2 participants