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

No logs when using awslogs log driver #1059

Open
asercs opened this issue Mar 19, 2024 · 0 comments
Open

No logs when using awslogs log driver #1059

asercs opened this issue Mar 19, 2024 · 0 comments
Labels
bug An issue reporting a bug or a PR fixing one.

Comments

@asercs
Copy link

asercs commented Mar 19, 2024

Jenkins and plugins versions report

Environment
Jenkins: 2.440.1
OS: Linux - 6.1.72-96.166.amzn2023.x86_64
Java: 17.0.10 - Amazon.com Inc. (OpenJDK 64-Bit Server VM)
--------
docker-commons:439.va_3cb_0a_6a_fb_29docker-java-api:3.3.4-86.v39b_a_5ede342c
docker-plugin:1.6durable-task:550.v0930093c4b_a_6

What Operating System are you using (both controller, and any agents involved in the problem)?

I use Linux 2023 to host Jenkins, but my jobs are running under Docker Container using the latest ubuntu

Reproduction steps

  1. Edit daemon.json to use awslogs
  2. Run the job

Expected Results

See some job logs in the Amazon CloudWatch

Actual Results

It creates a log stream, but it's empty

Anything else?

I have all the required permissions to the CloudWatch, it creates a log stream but doesn't write anything. When I run the container manually using docker run -it image-name, I see logs in the CloudWatch. I tried the Assign Pseudo TTY option in the settings of the Cloud, but it doesn't change anything. In the job itself, I have Console Output

Are you interested in contributing a fix?

No response

@asercs asercs added the bug An issue reporting a bug or a PR fixing one. label Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue reporting a bug or a PR fixing one.
Projects
None yet
Development

No branches or pull requests

1 participant