-
Notifications
You must be signed in to change notification settings - Fork 15
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
Logs not uploaded #55
Comments
I getting logging messages in the build pod that the logs should be persisted. But not getting any logs saved. |
After I upgraded I am getting log messages uploaded, but they are old messages. {"level":"info","msg":"wrote file jenkins-x/logs/REDACTED/jx3-go-poc-take-2/PR-1/2.log to bucket s3://logs-REDACTED-jx3-dev-eks-20220420182851392800000001","time":"2022-04-28T13:54:38Z"}
{"level":"info","msg":"wrote file jenkins-x/logs/REDACTED/jx3-go-poc-take-2/PR-1/2.yaml to bucket s3://logs-REDACTED-jx3-dev-eks-20220420182851392800000001","time":"2022-04-28T13:54:38Z"}
{"level":"info","msg":"wrote file jenkins-x/pipelineruns/jx/REDACTED-jx3-go-poc-take-2-pr-1-pr-8lwgp.yaml to bucket s3://logs-REDACTED-jx3-dev-eks-20220420182851392800000001","time":"2022-04-28T13:54:39Z"}
{"level":"info","msg":"updated PipelineActivity REDACTED-rnd-jx3-go-poc-take-2-pr-1-2 with new build logs URL s3://logs-REDACTED-jx3-dev-eks-20220420182851392800000001/jenkins-x/logs/REDACTED/jx3-go-poc-take-2/PR-1/2.log","time":"2022-04-28T13:54:39Z"} |
So here is an interesting update: I restarted the build-controller just to bounce the system and all of the older logs where sent to s3. But the latest PR that was built, logs where not stored. If I went to https://dashboard-jx.REDACTED.com/ns-jx/REDACTED/jx3-go-poc-take-2/PR-3/3 I have logs after restarting the build controller. But if I got to: https://dashboard-jx.REDACTED.com/ns-jx/REDACTED/jx3-go-poc-take-2/PR-3/4 Which is the current build I do not have logs, and the logs have not been uploaded by the build-controller. So there is a bug where the latest log is not uploaded for some reason. I also checked that the logs do exist for the most current build. $ k logs REDACTED-jx3-go-poc-take-2-pr-3-pr-9wkjb-from-build-pack-v8-xq54p step-debugging-logging
Debugging logging I created a step to just echo something to the logs, to ensure we are getting logs. Does jx have a command line option to tail the logs? |
I can confirm this issue. Using build controller version 0.3.19 The s3 buckets are created, but empty. After killing the build controller, the s3 buckets are populated with the logs. |
jx pipeline logs should do the trick. Are you both using mac locally by any chance? |
No I am on linux. For the admin tools and also running on linux for the k8s cluster. EKS |
Now it hangs regularly for me. The last log message before hanging is always about "created PipelineActivity". I guess the root cause is something else, and that when catching up jx-build-controller can't handle already finished pipelineruns. |
Problem
I have recently installed jx3 in AWS EKS using and existing cluster and the TF provider in your instructions. When a build runs the logs are not accessible or stored in s3. I go into dashboard and attempt to access the raw logs and get this error:
The build is successful but no logs are stored.
Debugging Done
Here are some steps I have used to debug to rule out permission issues.
Versions
jx-reqirements
Questions
TLDR;
The s3 buckets exist, the build runs, no logs are saved, and we cannot see any logs in the dashboard.
The text was updated successfully, but these errors were encountered: