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

cloudwatch agent fails because laravel_logs.json file is not found #77

Closed
Frtrillo opened this issue Sep 26, 2022 · 0 comments
Closed

Comments

@Frtrillo
Copy link

Frtrillo commented Sep 26, 2022

Hello, as referenced in issue issue#74 , I found its because the ebextension 02_logs_cloudwatch_imds2.config creating the file:
/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json get deleted after deploy I believe @rennokki

If I create the file laravel_logs.json manually AND execute the /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl -a fetch-config -m ec2 -s -c file:/opt/aws/amazon-cloudwatch-agent/etc/amazon-cloudwatch-agent.d/laravel_logs.json manually it works, but not on automatic deploy because the file gets deleted because its on stage only and doesn't get moved, maybe if we move it on a hook, but have to try

@Frtrillo Frtrillo changed the title 02_logs_cloudwatch_imds2.config: laravel_logs.json file is getting deleted after deploy making it fail executing cloudwatch agent cloudwatch agent fails because laravel_logs.json file is not found Sep 26, 2022
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