Search code examples
linuxgitlabgitlab-citracegitlab-ci-runner

GitLab CI/CD: This job does not have a trace. & No job log


I am new to GitLab CI/CD's and I wonder what my pipeline is doing. The syntax is correct but the job keeps failing, but I don't know why and would like to check the trace. When viewing the job trace it says 'This job does not have a trace'. The same is happening if I view the job logs. There is just the text 'no job log'.

Every single job I ran has no trace, so I suspect it is a configuration issue in our self-hosted gitlab-runner. I found posts with the same issue but without any solution. I tried to run the gitlab-runner debug mode but its output is of no use.

I am using a shell executor and installed docker on the gitlab-runner.

Edit: I coincidently got a job log once, but rerunning the job gives me the same "no job log" / "This job has no trace".


Solution

  • The issue was that the Gitlab Runner (11.0.2) was incompatible with the GitLab (14.0.6). This happened because we did migrate GitLab to version 14.0.6 but without updating the runner. We solved it by uninstalling the GitLab runner and installing the correct GitLab runner version. I suspect we got no job logs because the GitLab runner couldn't create logs with the GitLab versions being incompatible.