Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Pipelines. No logs to display

spi4ka July 28, 2021

Hello. Pipelines stopped displaying logs. Some days ago it worked well, bitbucket-pipelines.yml has not been changed. But it cannot display any logs because of unknown reason

I saw this question but there was no answer (https://community.atlassian.com/t5/Bitbucket-questions/Pipeline-fails-withou-log/qaq-p/681256)

What could be a reason and how can I fix it?

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 9, 2021

Hi @spi4ka

Thank you for reaching out to the community.

I believe there are few reasons why Pipelines is not showing logs:

  • It could be about the base Docker image where it is not running as a root user (You can test this by running whoami command)
  • If you're using services, it could be an issue with where a service is failing to load on Pipelines (You can check this on the tab next to the Build tab of your Pipelines build)
  • Would you be able to confirm if you're using Pipelines runners?

Let me know how it goes.

Regards,
Mark C

Nam Nguyen January 24, 2022

@Mark C

Hi Mark C, I have similar error with Runner on Linux System.

It doesn't show log on bitbucket pipeline interface, only this thing

Screenshot from 2022-01-24 22-22-48.png

I check on docker machine, it's still have logs, and i can view it by `docker logs -f  <id-confirm>`

Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 30, 2022

Hi @Nam Nguyen

We may need to further check your runners environment about this one.

You can raise a support ticket with us on this link and we'll investigate it further.

Regards,
Mark C

Florian Probst February 18, 2022

In my case the problem was that we moved the /var/lib/docker directory to another path on the server. So we had to modify the runner commands:

```
docker container run -it -v /tmp:/tmp \
-v /var/run/docker.sock:/var/run/docker.sock \
-v {PATH_TO_DOCKERDIR}/containers:/var/lib/docker/containers:ro \ <---- Mind this line! From this path the bitbucket pipelines runner will get his logs!
-e ACCOUNT_UUID={YOUR_ACCID} \
-e RUNNER_UUID={THE_RUNNERID} \
-e RUNTIME_PREREQUISITES_ENABLED=true \
-e OAUTH_CLIENT_ID={YOUR_OAUTH_CLIENT_ID} \
-e OAUTH_CLIENT_SECRET={YOUR_OAUTH_CLIENT_SECRET} \
-e WORKING_DIRECTORY=/tmp \
--name runner-{THE_RUNNERID} \
docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1
```

 

May you see something like that in your runner logs:
```

[2022-02-18 15:29:00,982] Container log not found: /var/lib/docker/containers/b8631c9781386004701e9358b5c4fe8ebfbfd5061a894d83f022503d35c51ea7/b8631c9781386004701e9358b5c4fe8ebfbfd5061a894d83f022503d35c51ea7-json.log
[2022-02-18 15:29:00,983] Waiting on container to exit.
[2022-02-18 15:29:01,027] Container log not found: /var/lib/docker/containers/9615a69e7f0cf4c11ff2e1627250bfacdea4b061d1a5b1189d3a3bd8fa19f672/9615a69e7f0cf4c11ff2e1627250bfacdea4b061d1a5b1189d3a3bd8fa19f672-json.log
[2022-02-18 15:29:01,029] Waiting on container to exit.

```

 

Let me know if this was helpful.

 

BR,

Florian

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events