shinesolutions / packer-aem

Adobe Experience Manager (AEM) machine images builder using Packer
Apache License 2.0
20 stars 20 forks source link

Awslogs agent stop fails #270

Open mbloch1986 opened 2 years ago

mbloch1986 commented 2 years ago

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 ?

    aws: Notice: /Stage[main]/Main/Exec[Stop Cloudwatchlogs agent]/returns: Job for awslogs.service canceled.
    aws: Error: 'systemctl stop awslogs' returned 1 instead of one of [0]
    aws: Error: /Stage[main]/Main/Exec[Stop Cloudwatchlogs agent]/returns: change from 'notrun' to ['0'] failed: 'systemctl stop awslogs' returned 1 instead of one of [0]

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):

Additional context Add any other context about the problem here.