You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
My pipeline has randomly started failing. The first step reads:
name: Build simulation
- rsync -av --progress . dist --exclude dist
It's failing with the log:
+ rsync -av --progress . dist --exclude dist
bash: rsync: command not found
bash: lesspipe: command not found
bash: dircolors: command not found
First I thought it was an issue with rsync, but actually, whatever I have tried fails similarly, eg:
bash: ssh: command not found
bash: apt-get: command not found
Just to emphasis, it was initially working fine, and now it seems like the container doesn't have anything installed in it. Does anyone know what is going on here? Cheers.
Without being able to see your pipelines configuration, there is a possibility that you are using a variable named "PATH" somewhere in your workspace which is conflicting with the default "PATH" variable which is prepended/required for every command in pipelines and will cause this error for every command when a conflict is present.
We also have a public ticket highlighting the same - if this variable exists as a custom variable (either in deployment, repository or workspace variables), please remove or rename it and try to run the build again:
If this is not the case, please let me know and we can open a ticket on your behalf.
- Ben (Bitbucket Cloud Support)