Continual problems installing and updating with Gitlab

Created on 17 November 2024, 3 months ago

Problem/Motivation

There are continual problems for over 5 months updating and now also installing drutopia because of gitlab problems - Is this always going to be the case? I have more than once signed up for gitlab - done the token thing and it's getting to be too much of a hassle.
Do I need a paid account at gitlab now to use drutopia? That's what it seems like and I won't do it!

Steps to reproduce

This is how I create a drutopia 2 platform with composer:

fast2.ftp:[static]$ composer create-project drutopia/drutopia_template:2.x-dev --no-interaction drutopia21

adn this is the return:

Creating a "drutopia/drutopia_template:2.x-dev" project at "./drutopia21"
Installing drutopia/drutopia_template (2.x-dev db739401fcacb874c6bb08f938982d963cd63f9f)
- Downloading drutopia/drutopia_template (2.x-dev db73940)
Failed to download drutopia/drutopia_template from dist: Invalid credentials for 'https://gitlab.com/api/v4/projects/drutopia%2Fdrutopia_template/reposito...', aborting.
Now trying to download from source
- Syncing drutopia/drutopia_template (2.x-dev db73940) into cache
- Installing drutopia/drutopia_template (2.x-dev db73940): Cloning db739401fc from cache
Install of drutopia/drutopia_template failed

In Git.php line 520:

Failed to execute git clone --no-checkout '/home/fast2.ftp/.cache/composer/vcs/git-gitlab.com-d
rutopia-drutopia-template.git/' '/data/disk/fast2/static/drutopia21' --dissociate --reference '
/home/fast2.ftp/.cache/composer/vcs/git-gitlab.com-drutopia-drutopia-template.git/' && cd '/dat
a/disk/fast2/static/drutopia21' && git remote set-url origin -- 'https://gitlab.com/drutopia/dr
utopia_template.git' && git remote add composer -- 'https://gitlab.com/drutopia/drutopia_templa
te.git'

Command "git" is not defined.

I can't update an existing platform either - same type of error

Proposed resolution

I don't know - you tell me please.

Remaining tasks

User interface changes

API changes

Data model changes

Thank you.

Ed

πŸ’¬ Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

πŸ‡¬πŸ‡§United Kingdom em-fast1

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

Comments & Activities

  • Issue created by @em-fast1
  • πŸ‡¬πŸ‡§United Kingdom em-fast1

    I have a free account at gitlab "EdNett" - is there a way to add this username and a password to the drutopia archive? I do use different VPS's for different drutopia sites.

    Trying to update only drutopia gives this:

    fast2.ftp:[drutopia2]$ composer update /drutopia/* (same error with update drutopia/drutopia )
    Gathering patches for root package.
    Removing package drupal/core so that it can be re-installed and re-patched.
    - Removing drupal/core (10.3.8)
    Removing package drupal/media_library_media_modify so that it can be re-installed and re-patched.
    - Removing drupal/media_library_media_modify (1.0.0)
    Deleting /data/disk/fast2/static/drutopia2/web/modules/contrib/media_library_media_modify - deleted
    Deleting /data/disk/fast2/static/drutopia2/web/core - deleted
    Loading composer repositories with package information
    Pattern "/drutopia/*" listed for update does not match any locked packages.
    Updating dependencies
    Nothing to modify in lock file
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 19 installs, 0 updates, 0 removals
    - Syncing drupal/autosave_form (dev-1.x 00dbe01) into cache
    - Syncing drupal/media_contextual_crop (dev-1.2.x 3193fb9) into cache
    - Syncing drupal/skins (dev-1.x 6a54b4f) into cache
    - Syncing drupal/drutopia_user (dev-2.0.x bba7bc4) into cache
    - Syncing drupal/drutopia_core (dev-2.0.x e0f8dea) into cache
    - Syncing drupal/drutopia_seo (dev-2.0.x b7d2545) into cache
    - Syncing drupal/drutopia_page (dev-2.0.x ac4fece) into cache
    - Syncing drupal/drutopia_storyline (dev-2.0.x fb32c3b) into cache
    - Syncing drupal/drutopia_social (dev-2.0.x b0af0f7) into cache
    - Syncing drupal/drutopia_site (dev-2.0.x fcd4dc0) into cache
    - Syncing drupal/drutopia_resource (dev-2.0.x 123b61f) into cache
    - Syncing drupal/drutopia_people (dev-2.0.x 60aa239) into cache
    - Syncing drupal/drutopia_landing_page (dev-2.0.x fa3e587) into cache
    - Syncing drupal/drutopia_group (dev-2.0.x 13c6e8b) into cache
    - Syncing drupal/drutopia_event (dev-2.0.x 049ebe8) into cache
    - Syncing drupal/bulma_components (dev-1.0.x bee8420) into cache
    - Downloading drutopia/drutopia (2.0.x-dev 04f95b3)
    0/1 [>---------------------------] 0% Failed to download drutopia/drutopia from dist: Invalid credentials for 'https://gitlab.com/api/v4/projects/drutopia%2Fdrutopia/repository/archiv...', aborting.
    Now trying to download from source
    - Syncing drutopia/drutopia (2.0.x-dev 04f95b3) into cache
    Gathering patches for root package.
    No patches supplied.
    Gathering patches for dependencies. This might take a minute.
    - Installing drupal/core (10.3.8): Extracting archive
    - Installing drupal/autosave_form (dev-1.x 00dbe01): Cloning 00dbe013e8 from cache
    Install of drupal/autosave_form failed
    - Installing drupal/media_library_media_modify (1.0.0): Extracting archive
    - Installing drupal/media_contextual_crop (dev-1.2.x 3193fb9): Cloning 3193fb963b from cache
    Install of drupal/media_contextual_crop failed
    - Installing drupal/skins (dev-1.x 6a54b4f): Cloning 6a54b4f407 from cache
    Install of drupal/skins failed
    - Installing drupal/drutopia_user (dev-2.0.x bba7bc4): Cloning bba7bc4fbb from cache
    Install of drupal/drutopia_user failed
    - Installing drupal/drutopia_core (dev-2.0.x e0f8dea): Cloning e0f8dea849 from cache
    Install of drupal/drutopia_core failed
    - Installing drupal/drutopia_seo (dev-2.0.x b7d2545): Cloning b7d254541b from cache
    Install of drupal/drutopia_seo failed
    - Installing drupal/drutopia_page (dev-2.0.x ac4fece): Cloning ac4fece729 from cache
    Install of drupal/drutopia_page failed
    - Installing drupal/drutopia_storyline (dev-2.0.x fb32c3b): Cloning fb32c3b3f2 from cache
    Install of drupal/drutopia_storyline failed
    - Installing drupal/drutopia_social (dev-2.0.x b0af0f7): Cloning b0af0f7828 from cache
    Install of drupal/drutopia_social failed
    - Installing drupal/drutopia_site (dev-2.0.x fcd4dc0): Cloning fcd4dc0899 from cache
    Install of drupal/drutopia_site failed
    - Installing drupal/drutopia_resource (dev-2.0.x 123b61f): Cloning 123b61f62d from cache
    Install of drupal/drutopia_resource failed
    - Installing drupal/drutopia_people (dev-2.0.x 60aa239): Cloning 60aa239bf3 from cache
    Install of drupal/drutopia_people failed
    - Installing drupal/drutopia_landing_page (dev-2.0.x fa3e587): Cloning fa3e587414 from cache
    Install of drupal/drutopia_landing_page failed
    - Installing drupal/drutopia_group (dev-2.0.x 13c6e8b): Cloning 13c6e8b04b from cache
    Install of drupal/drutopia_group failed
    - Installing drupal/drutopia_event (dev-2.0.x 049ebe8): Cloning 049ebe8b42 from cache
    Install of drupal/drutopia_event failed
    - Installing drupal/bulma_components (dev-1.0.x bee8420): Cloning bee8420ca8 from cache
    Install of drupal/bulma_components failed
    - Installing drutopia/drutopia (2.0.x-dev 04f95b3): Cloning 04f95b36c8 from cache
    Install of drutopia/drutopia failed
    2/2 [============================] 100%
    In Git.php line 520:

    Failed to execute git clone --no-checkout '/home/fast2.ftp/.cache/composer/vcs/https---git.drupalcode.org-project-autos
    ave-form.git/' '/data/disk/fast2/static/drutopia2/web/modules/contrib/autosave_form' --dissociate --reference '/home/fa
    st2.ftp/.cache/composer/vcs/https---git.drupalcode.org-project-autosave-form.git/' && cd '/data/disk/fast2/static/druto
    pia2/web/modules/contrib/autosave_form' && git remote set-url origin -- 'https://git.drupalcode.org/project/autosave_fo
    rm.git' && git remote add composer -- 'https://git.drupalcode.org/project/autosave_form.git'

    Command "git" is not defined.

  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    The error message at the end actually looks like it is:

    A) referring to Drupal.org's git repositories

    and

    B) saying the command git is not defined.

    Both those problems should be fixable if we switch to https for all dependencies, which is not a hassle to do and develop at the same time thanks to now knowing about https://www.jvt.me/posts/2019/03/20/git-rewrite-url-https-ssh/

  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    Actually i think we've done all that and you are going to need to install git.

    Alternatively / for debugging, how do these DDEV instructions work for you after installing DDEV?

    ddev config --docroot=web --project-type=drupal10 --webserver-type=apache-fpm --database=mariadb:10.8 --php-version=8.2 --create-docroot
    ddev auth ssh
    ddev composer create drutopia/drutopia_template:2.x-dev --no-interaction
  • πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

    And here is the old GitLab issue for whatever it's worth.

    https://gitlab.com/gitlab-org/gitlab-foss/-/issues/32300

    Does not appear resolved.

    Maybe we can just move this last piece of Drutopia off of GitLab and onto Codeberg and not have these problems?

Production build 0.71.5 2024