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

Bitbucket Pipelines Stalling in final Drush maintenance steps (Drupal 9.5, Acquia)

jechambers
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2024

I am not even sure this is a Bitbucket issue, but at this point I am trying to put out feelers wherever I can to get ideas.

So, we run a dev->test->prod upgrade process for our Drupal install on Acquia. The last time we ran this process was 2 months ago, which ran successfully. This time I am trying to (finally) upgrade our install from Drupal 9 to Drupal 10. We are currently running 9.5.11 I believe. Whatever the latest version of 9 is.

This time around, I am running into a problem where once it gets to the finishing drush commands (e.g. turning on maintenance mode, clearing cache, updatedb, clear cache again, turn off MM), it will "complete" a command and then just sit there forever. It won't even echo out the following line in the script. By "complete" I mean it will actually put the site into maintenance mode or actually clear the cache, so the drush command appears to complete successfully. It just never progresses on to the next line in the script.

I've tried running the commands with -vvv (for example, if I just skip the MM command and go straight to the clear cache command, the final line I get is it confirming that caches were successfully cleared) to no avail or information.

I've tried running *the exact same setup* as was successful 2 months ago. That failed in the same way.

I thought perhaps the problem was the docker image I was using, which I hadn't updated in a couple years and was still running Drush 10. So I updated that to the latest version of PHP 8.1 and Drush 11.6. Same thing.

I tried running the problematic script from my local test virtual server, and it ran to completion no problem, which suggests it isn't Acquia nor the script that is the problem.

I have a ticket open with Acquia, but after 48 hours they've yet to actually respond to it yet, but if they say anything of any value, I can add it here.

Also if any other information would be useful in trying to troubleshoot this, I can provide it.

As a reference, the code block that is giving me fits is the following:

#echo "===== Turning on Maintenance Mode ====="
./vendor/bin/drush @$ALIAS state:set system.maintenance_mode 1 --input-format=integer
echo "===== Cache Rebuild ====="
./vendor/bin/drush @$ALIAS cache:rebuild -vvv
echo "===== Updating Database ====="
./vendor/bin/drush @$ALIAS updatedb --yes
#echo "===== Turning off Maintenance Mode ====="
#./vendor/bin/drush @$ALIAS state:set system.maintenance_mode 0 --input-format=integer
echo "===== Cache Rebuild ====="
./vendor/bin/drush @$ALIAS cache:rebuild

0 answers

Suggest an answer

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

Atlassian Community Events