Pipeline Error: ERROR: Task deploy:vendors failed! (TYPO3)
Asked by Mylene Kreiger:

Hi there,

I am using deployer to deploy my TYPO3 project on the server. Since today I am getting this error: ERROR: Task deploy:vendors failed!

I changed absolutely nothing in my pipeline since the last time.

I get these informations:![Bildschirmfoto 2024-04-30 um 14.50.51.png](https://community.atlassian.com/t5/image/serverpage/image-id/321301i9F2E988230F8EA3F/image-size/large?v=v2&px=999 "Bildschirmfoto 2024-04-30 um 14.50.51.png")I already checked, the php extension gd ist active for my domain: <https://derkreiger.at/20240430_info.php#module_gd>

Can anyone help?

Thanks and all the best,  
Mylene


Answers:
author: Theodora Boudale
body: Hi Mylene,

Some of the things that can cause failures in Pipelines builds include:

* changes in your source code (since the build is running on your source code)
* changes in the Docker image you use as a build container
* changes in your project's dependencies
* changes on your server (since you are deploying to another server)

I would suggest first trying the following:

* rerun the last successful build (that did the last successful deployment to that server) to see if it's still successful or not. If it is still successful, then review code changes between the successful and failed builds
* if that also fails, you can debug the pipelines build locally with Docker:  
  <https://confluence.atlassian.com/bbkb/troubleshoot-failed-bitbucket-pipelines-locally-with-docker-1318882094.html>

Kind regards,  
Theodora

comments: author: Mylene Kreiger
body: Hi Theodora,

I tried to troubleshoot today. Started the local docker debugging and ended up with a different error. To ensure I reran the pipeline and there I am getting the same new error

```
[host25.ssl-net.net] bash: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.38' not found (required by bash)

[host25.ssl-net.net]  error  in info.php on line 6:

[host25.ssl-net.net] exit code -1 (Unknown error)

done deploy:info 80s 432ms

ERROR: Task deploy:info failed!

task deploy:failed

done on host25.ssl-net.net

done deploy:failed 62ms
```

The same error occurs if I try to rerun a commit that already succeeded in the past. Any ideas?

Thanks \& kind regards,  
Mylene


author: Theodora Boudale
body: Hi Mylene,

Based on the error you posted here, it looks like the package GLIBC is missing from the Docker container where the build runs. I suspect that may be caused by either a change in the Docker image you use as a build container or a change in your project's dependencies.

I would suggest following the link to debug locally the ++last successful build++ (in the Dockerfile, provide the exact same image SHA from the last successful pipeline). If that succeeds locally, then the error has to do with a change in the Docker image. You can then pin the image by digest in the bitbucket-pipelines.yml file (you can pin to the digest of the last successful build):

* <https://support.atlassian.com/bitbucket-cloud/docs/use-docker-images-as-build-environments/#Pin-images-by-digest>

Kind regards,  
Theodora


author: Mylene Kreiger
body: Hi Theodora,

the last successfull build doesn't work locally:

```
task deploy:lock

[localhost] run git config --get user.name

[localhost] run whoami

[localhost] root

[host25.ssl-net.net] run [ -f /.share_home/derkreiger_at/amitex/staging/.dep/deploy.lock ] && echo +locked || echo 'root' > /.share_home/derkreiger_at/amitex/staging/.dep/deploy.lock

[host25.ssl-net.net] +locked

[host25.ssl-net.net] run cat /.share_home/derkreiger_at/amitex/staging/.dep/deploy.lock

[host25.ssl-net.net] ci

[host25.ssl-net.net]  Deployer\Exception\GracefulShutdownException  in lock.php on line 14:

[host25.ssl-net.net]

[host25.ssl-net.net]   Deploy locked by ci.

[host25.ssl-net.net]   Execute "deploy:unlock" task to unlock.

[host25.ssl-net.net]

done deploy:lock 313ms

ERROR: Task deploy:lock failed!
```

I tried to rerun the same build in the pipeline and I get the same error. I am very confused... as you can see it is always a different error. How is this possible?

Kind regards,  
Mylene


author: Theodora Boudale
body: Hi Mylene,

Assuming that you pinned locally in the Dockerfile the exact same image SHA from the last successful build, it doesn't look like this is related to the Docker image only. Considering the local failure, the issue is not specific to Pipelines either. I suspect there may have been a change in any of the tools you use during your build which makes the build fail now on that container.

I suggest reaching out to the support team or a forum specific to the tool you are using when you get this error for help with troubleshooting this. You need to have a build that works locally on a Docker container for it to work in Pipelines as well.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud