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

Awslogs agent stop fails #270

Open
mbloch1986 opened this issue Sep 14, 2022 · 0 comments
Open

Awslogs agent stop fails #270

mbloch1986 opened this issue Sep 14, 2022 · 0 comments

Comments

@mbloch1986
Copy link
Contributor

Describe the bug
The AMI baking fails sometimes because it can not stop the Awslogs agent at the end of the AMI baking.

At the end of the AMI baking we are starting the awslogs agent and stopping it instantly. We should analyse if the start of the awslogs agent is needed if not why starting it in the first place ?

�[0;32m    aws: �[mNotice: /Stage[main]/Main/Exec[Stop Cloudwatchlogs agent]/returns: Job for awslogs.service canceled.�[0m�[0m
�[0;32m    aws: �[1;31mError: 'systemctl stop awslogs' returned 1 instead of one of [0]�[0m�[0m
�[0;32m    aws: �[1;31mError: /Stage[main]/Main/Exec[Stop Cloudwatchlogs agent]/returns: change from 'notrun' to ['0'] failed: 'systemctl stop awslogs' returned 1 instead of one of [0]�[0m�[0m

To Reproduce
Steps to reproduce the behavior:
Start an AMI baking

Expected behavior
AMI baking should not fail because it couldn't stop the awslogsd service

Screenshots

Environment (please complete the following information if relevant):

  • OS RHEL7, amz2
  • Packer-AEM : any versoin

Additional context
Add any other context about the problem here.

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

1 participant