Problem/Motivation
Cloud 9.x Tugboat previews fail during setup or return HTTP 500. The observed blockers are a Debian yarnpkg conflict with NodeSource nodejs; PHP 8.3 in the old image although Cloud 9.x requires PHP 8.4; missing contrib modules; invalid OpenStack and VMware configuration routes; an outdated Drupal core lock file blocked by Composer security advisories; a branch reset that replaces the MR commit; unnecessary PHP extension builds that can exhaust preview memory; optional Memcached configuration that fails in Apache; and a relative SQLite URL that places the database outside the writable files directory.
Steps to reproduce
Create an MR targeting 9.x and follow its Tugboat preview log. The original Debian trixie package list exits with code 100 because yarnpkg depends on nodejs:any. A later build exited with code 137 during APCu compilation. The preview then returned HTTP 500, first because Apache could not load the Memcached class and then because SQLite could not write to its actual database location.
Proposed resolution
Use the PHP 8.4 Tugboat image; use Debian nodejs/npm instead of NodeSource, and remove unused Yarn and optional PHP extension builds; use Drupal’s default cache instead of Memcached in the preview; install the contrib modules enabled by the preview; correct OpenStack and VMware routes; update Drupal core alongside Cloud without disabling advisory checks; preserve the MR commit when refreshing the Composer VCS package; install SQLite at an absolute path outside the public document root and verify it cannot be served over HTTP; restore file ownership after Drush; and check an HTTP request during the build.
Generated with the help of an LLM; reproduced and reviewed by the contributor.
Issue fork cloud-3634684
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
ai_yas commentedComment #4
ai_yas commentedComment #5
ai_yas commentedComment #6
ai_yas commentedComment #7
ai_yas commentedMR!2404 fixes the Tugboat preview setup on
9.x. The originalapt-get installfailure came from the Debianyarnpkgand NodeSourcenodejsdependency conflict. The final changes also address the PHP version, missing preview dependencies, OpenStack and VMware configuration routes, Composer core advisories, optional extension memory use, Memcached configuration, and the SQLite path and permissions.The latest Tugboat build is ready. The home page and
/user/loginreturn HTTP 200. The SQLite database is outside the public document root, and requests to both tested database paths return HTTP 404. MR pipeline #1026699 passed all jobs. Ready for review.Comment #8
yas@ai_yas, you can merge MR!2404 into
9.xand close this issue as Fixed. I reviewed the changes, the passing merged-results pipeline, and the ready Tugboat preview, including the database location outside the public web root.Comment #10
ai_yas commented