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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Failed Gateway In Bitbucket Infrastructure?

I have a build that works locally that is failing in Bitbucket Pipelines due to a reported "Bad Gateway" I have tested manually retrieving the .deb from multiple VMs and my local device and it is working. This seems to be isolated to Bitbucket at the moment how do I proceed with fixing this so I can get my deployments back on track.

Here is the offending portion of the log file. All goes well until it tries to fetch the gcsfuse repo that works just fine everywhere else.

 

Get:1 http://deb.debian.org/debian bookworm/main amd64 libfuse2 amd64 2.9.9-6+b1 [119 kB]
4009
Get:2 http://deb.debian.org/debian bookworm/main amd64 fuse amd64 2.9.9-6+b1 [61.3 kB]
4010
Ign:3 http://packages.cloud.google.com/apt gcsfuse-bookworm/main amd64 gcsfuse amd64 1.2.0
4011
Ign:3 http://packages.cloud.google.com/apt gcsfuse-bookworm/main amd64 gcsfuse amd64 1.2.0
4012
Ign:3 http://packages.cloud.google.com/apt gcsfuse-bookworm/main amd64 gcsfuse amd64 1.2.0
4013
Err:3 http://packages.cloud.google.com/apt gcsfuse-bookworm/main amd64 gcsfuse amd64 1.2.0
4014
502 Bad Gateway [IP: 142.251.16.101 80]
4015
Fetched 180 kB in 7s (24.1 kB/s)
4017
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
4018
The command '/bin/sh -c chmod 755 /entrypoint.sh; set -eux; apt-get update; apt-get install -y --no-install-recommends libzip4 imagemagick ghostscript ffmpeg; rm -rf /var/lib/apt/lists/* ; rm -Rf /var/www/html; set -ex; savedAptMark="$(apt-mark showmanual)"; apt-get update; apt-get install -y --no-install-recommends libfreetype6-dev libicu-dev libjpeg-dev libmagickwand-dev libpng-dev libwebp-dev lsb-release gnupg2 libzip-dev; pecl install redis; docker-php-ext-enable redis; docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; docker-php-ext-install -j "$(nproc)" bcmath exif gd intl mysqli zip; pecl install imagick-3.6.0; docker-php-ext-enable imagick; rm -r /tmp/pear; out="$(php -r 'exit(0);')"; [ -z "$out" ]; err="$(php -r 'exit(0);' 3>&1 1>&2 2>&3)"; [ -z "$err" ]; extDir="$(php -r 'echo ini_get("extension_dir");')"; [ -d "$extDir" ]; apt-mark auto '.*' > /dev/null; apt-mark manual $savedAptMark; ldd "$extDir"/*.so | awk '/=>/ { print $3 }' | sort -u | xargs -r dpkg-query -S | cut -d: -f1 | sort -u | xargs -rt apt-mark manual; export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`; echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | tee /etc/apt/sources.list.d/gcsfuse.list; curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -; apt update; if [ "dev" != "$ENV" ] ; then apt install -y --no-install-recommends gcsfuse; fi; apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; rm -rf /var/lib/apt/lists/*; ! { ldd "$extDir"/*.so | grep 'not found'; }; err="$(php --version 3>&1 1>&2 2>&3)"; [ -z "$err" ]' returned a non-zero code: 100
4019
2023-10-09T18:01:42.212261956Z stdout P
4020
4021

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Oct 10, 2023

Hi Christopher,

What command is giving you this error?

Are you using a public Docker image as a build container for this step, and if so, which one?

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events