[DDEV] Fresh install of Varbase distribution fails with unmet dependencies

Created on 20 August 2024, 4 months ago
Updated 20 September 2024, 3 months ago

Problem/Motivation

When installing Varbase distribution on a clean install, the web UI stops, indicating a issue with the install of modules - indicating an unmet dependency with Varbase Landing Page Layout Builder module (vlplb).

When issuing a drush command to enable the vlplb module, I get the same error. Similarly when trying to enable varbase_demo module (vlplb is a dependency).

[Drupal\Core\Config\UnmetDependenciesException]
  Configuration objects provided by <em class="placeholder">vlplb</em> have unmet dependencies: <em class="placeholder">field.field.node.landing_page_lb.layout_builder__layout (field.storage.node.layout_buil
  der__layout)</em>

Steps to reproduce

Follow instructions to create a project on a DDEV environment

  • composer create-project vardot/varbase-project:~10 varbase --no-dev --no-interaction
  • ddev launch to launch a browser and start site install
  • Enter site configuration and Install

Install fails.

Clean DDEV environment to start all over again.

  • Recreate project with composer
  • Install site with Drush

    drush site-install varbase --yes --account-name="webmaster" --account-pass="${password}" --account-mail="webmaster@mysite.com" --db-url="mysql://${mysql_root}:${mysql_pass}@${mysql_host}/${mysql_base}" --locale="en" varbase_multilingual_configuration.enable_multilingual=false varbase_extra_components.varbase_demo=true varbase_extra_components.editoria11y=true varbase_extra_components.vmi=true varbase_extra_components.varbase_heroslider=true varbase_extra_components.varbase_carousels=true varbase_extra_components.varbase_search=true varbase_extra_components.varbase_blog=true varbase_extra_components.varbase_auth=true varbase_extra_components.varbase_ai=true varbase_extra_components.varbase_api=true varbase_extra_components.varbase_editor=true install_configure_form.enable_update_status_emails=NULL -vvv

Same issue.

Rebuild composer by

 rm -rf composer.lock bin/ vendor/ docroot/modules/contrib/ docroot/themes/contrib/ docroot/profiles/varbase/ docroot/libraries/
composer install -vvv
cd docroot/
drush cr

Same issue.

  • Recreate project with composer
  • composer update -W

Same issue.

Proposed resolution

I checked if the field mentioned as a unmet dependency was defined under the vlplb and it does seem to be.

Remaining tasks

  • βœ… File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • βž– Automated unit/functional testing coverage
  • βž– Developer Documentation support on feature change/addition
  • βž– User Guide Documentation support on feature change/addition
  • βž– UX/UI designer responsibilities
  • βž– Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • βœ… No Update
  • βž– Optional Update
  • βž– Forced Update
  • βž– Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
πŸ› Bug report
Status

Needs review

Version

10.0

Component

Code

Created by

πŸ‡±πŸ‡ΊLuxembourg paddy_deburca

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @paddy_deburca
  • Status changed to Closed: outdated 4 months ago
  • πŸ‡±πŸ‡ΊLuxembourg paddy_deburca

    Following the release of Varbase 10.0.1 - a fresh install completed correctly resulting with a fully function website.

    As this issue is no longer appearing in the released version of Varbase, I proposing marking it as closed (outdated).

  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
  • Status changed to Active 4 months ago
  • @paddy_deburca Hello, I tried with 10.0.1 version with fresh install issue still continue, varbase_landing module needs workflows and varbase_page modules to be enabled I'll create patch for it.

  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    Thanks, Paddy, for reopening the issue.
    Nice tip, TarΔ±k, testing that.

    I confirm the issue when using DDEV
    Maybe other problems with DDEV as more changes in the latest version

    What do we need to change in our .ddev's configs?

    Supporting:

    Planning to add Docksal too

  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    I guess it is something on the order of importing configurations using Drupal Recipes.
    Maybe a software is missing in our DDEV config ( .ddev )

    I run the following command in a .circleci VM

    ../bin/drush site-install varbase --yes --account-name="webmaster" --account-pass="dD.123123ddd" --account-mail="webmaster@vardot.com" --db-url="mysql://root:rootpw@127.0.0.1/test_varbase" --locale="en" varbase_multilingual_configuration.enable_multilingual=true varbase_extra_components.varbase_demo=true varbase_extra_components.editoria11y=true varbase_extra_components.vmi=true varbase_extra_components.varbase_heroslider=true varbase_extra_components.varbase_carousels=true varbase_extra_components.varbase_search=true varbase_extra_components.varbase_blog=true varbase_extra_components.varbase_auth=true varbase_extra_components.varbase_ai=true varbase_extra_components.varbase_api=true install_configure_form.enable_update_status_emails=NULL -vvv
    

    with the following packages.

    sudo apt -yqq install apache2 php8.3 libapache2-mod-php8.3 php8.3-mbstring php8.3-mysql php8.3-xml php8.3-cgi php8.3-cli php8.3-common php8.3-curl php8.3-gd php8.3-imap php8.3-intl php8.3-pspell php8.3-sqlite3 php8.3-tidy php8.3-opcache php8.3-yaml php8.3-bz2 php8.3-readline php8.3-xmlrpc php8.3-enchant php8.3-xsl php8.3-zip php8.3-bcmath php-pear
    

    varbase/.circleci/config.yml

  • Assigned to Rajab Natshah
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    I had a round of troubleshooting with ddev logs --follow and ddev xdebug on

    πŸ“Œ Fix Varbase Editor Default Recipe to Import/Update Configs and Follow Schema with Configuration Inspector Fixed

    Found issues with Composer builds, PHP 8.3 in Docker images, Lando, and DDEV, ...

    Composer 2.7.9 - released 2024-09-04
    https://getcomposer.org/changelog/2.7.9

    • Fixed Docker detection breaking on constrained environments (#12095)
    • Fixed upstream issue in bash completion script, it is recommended to update it using the completion command (#12015)

    Please take a moment to check out a fresh build of the :

    • Click the following link: Varbase Project on Gitpod
    • The environment will be set up automatically. Please wait 2-3 minutes for the splash screen to appear.
    • Once the setup is complete, you’ll see an IDE like VS Code or another editor. After a few more seconds, the will be displayed.
  • Status changed to Needs review 4 months ago
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
    βœ… Released varbase_editor-10.0.6 β†’
    • Issue #3472383 β†’ : Fixed Varbase Editor Default Recipe to Import/Update Configs and Follow Schema with Configuration Inspector
  • Issue was unassigned.
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan

    βœ… Released vardot/varbase-project 10.0.1.1 ( Project template )
    https://packagist.org/packages/vardot/varbase-project#10.0.1.1
    https://github.com/Vardot/varbase-project/releases/tag/10.0.1.1

    What's Changed

    • Updated the composer.lock file after Drupal 10.3.3 was released #252
    • Added support for Gitpod #248
    • Added support for .vscode and xdebug #251
    • Bumped webpack from 5.93.0 to 5.94.0 by in #246

    Also Updated the composer.lock file after Drupal 10.3.3 was released #47 for Vardot/platformsh-varbase project template

  • πŸ‡ΊπŸ‡¦Ukraine bondd

    So pity. Distribution targeted on slimplifying instalation and configuration of Drupal, cant be used because after the end of installation process (currently reccomended release) we get "internal server error 500" and in webserwer log "[error] 16003#0: *947 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception Drupal\Component\Plugin\Exception\PluginNotFoundException: "Unable to determine class for field type 'metatag' found in the 'field.field.node.landing_page_lb.field_meta_tags' configuration" at /home/box/www/docroot/core/lib/Drupal/Core/Field/FieldConfigStorageBase.php line 31" while reading response header from upstream"
    Seems all 200+ hours saved on configuring new site need to be spent on debugging of install process.
    Do not take it close to heart, but I do not understand how release that cant even start after clean install appear as recommended. And no fixed version are released after almost a month.

  • πŸ‡±πŸ‡ΊLuxembourg paddy_deburca

    @bondd, The issue you have experienced is different from the one which I experienced - and which has since been resolved.

    I have tried to reproduce this error by creating a new Varbase project and installing and configuring Drupal, without being able to reproduce this error.

    Could you please create a new issue, with as much information as possible, and you are comfortable with, regarding your configuration and the steps you took during install of Varbase? This will help the community better look into and follow the issue to resolution.

  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
  • πŸ‡―πŸ‡΄Jordan Rajab Natshah Jordan
Production build 0.71.5 2024