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

Command icon 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

ai_yas created an issue. See original summary.

ai_yas’s picture

Title: Fix Tugboat preview package installation on 9.x » Fix Tugboat preview setup on 9.x
Issue summary: View changes
ai_yas’s picture

Issue summary: View changes
ai_yas’s picture

Issue summary: View changes
ai_yas’s picture

Issue summary: View changes
ai_yas’s picture

Status: Needs work » Needs review

MR!2404 fixes the Tugboat preview setup on 9.x. The original apt-get install failure came from the Debian yarnpkg and NodeSource nodejs dependency 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/login return 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.

yas’s picture

Status: Needs review » Reviewed & tested by the community

@ai_yas, you can merge MR!2404 into 9.x and 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.

  • ai_yas committed 5b916c88 on 9.x
    fix: #3634684 Fix Tugboat preview setup on 9.x
    
    Co-authored-by: Yas Naoi...
ai_yas’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.