Issues updating opigno_lms from 2.16.0 -> 2.29.0 -> 3.x using composer

Created on 23 November 2022, over 1 year ago
Updated 22 February 2023, over 1 year ago

Having an issue with updating an old Opigno server from 2.16 to 3.0 via 2.29. When performing the update, the tool fails with "Your requirements could not be resolved to an installable set of packages.", indicating some sort of package conflict or dependency issue.

I've followed the instructions here:
* https://opigno.atlassian.net/wiki/spaces/OUM20/pages/363134999/Upgrade+w...
* https://opigno.atlassian.net/wiki/spaces/OUM3/pages/2802942424/Upgrade

After downloading the composer file for 2.29 and replacing my composer.json with the one linked in the instructions, I get the following output from composer update:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - drupal/ckeditor_font dev-1.x requires drupal/core ^9.3 || ^10 -> satisfiable by drupal/core[9.3.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.1.x-dev].
    - You can only install one version of a package, so only one of these can be installed: drupal/core[8.0.0-beta6, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.1.x-dev].
    - You can only install one version of a package, so only one of these can be installed: drupal/core[8.7.0-alpha1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.5.x-dev, 10.0.0-alpha1, ..., 10.1.x-dev].
    - You can only install one version of a package, so only one of these can be installed: drupal/core[8.4.0-rc1, ..., 8.9.x-dev, 9.0.0-alpha1, ..., 9.4.3, 10.0.0-alpha1, ..., 10.0.0-alpha6].
    - drupal/ckeditor_font 1.x-dev is an alias of drupal/ckeditor_font dev-1.x and thus requires it to be installed too.
    - opigno/opigno_lms 2.29.0 requires drupal/core 8.9.20 -> satisfiable by drupal/core[8.9.20].
    - opigno/opigno_lms 2.29.0 requires drupal/ckeditor_font 1.x-dev -> satisfiable by drupal/ckeditor_font[1.x-dev (alias of dev-1.x)].
    - Root composer.json requires opigno/opigno_lms 2.29.0 -> satisfiable by opigno/opigno_lms[2.29.0].

I have also attempted to use other flags in the composer command such as "--no-plugins", "--ignore-platform-reqs", "--with-all-dependencies", etc.

I have also attempted to go from 2.16 directly to 3.x, and though the composer update works fairly well I get issues with database migrations after the update is complete.

The server I'm working is a VM with 2C/4G and lots of free disk space. The box is Ubuntu 22.04.5 LTS with PHP 7.4 & Nginx 1.18.0.

My question: is there a simple way to force the update to 2.29 to take place, or a set of manual SQL scripts I can apply to skip the intermediate stage? I have a testing server on hand, so I'm open to any experimental or 'odd' fixes that might be needed.

Note: I'm not a Drupal expert by any means (the site was created by a webdev years ago), but I am a fairly well rounded linux sysadmin.

Thanks, all!

πŸ’¬ Support request
Status

Active

Version

2.29

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada noahbailey

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ͺπŸ‡ΉEthiopia tsega

    This incompatibility is cause by the fact that opigno/opigno_lms has a hard dependency on drupal/core: 8.9.20. See dependencies on Packagist.

    I'm guessing drupal/ckeditor_font dev-1.x has moved its dependency to drupal/core ^9.3 || ^10 because it a dev version and does not guarantee compatibility.

  • πŸ‡ͺπŸ‡ΉEthiopia yonas.legesse

    This gave me a headache as well. After some debugging, I'm trying out the update fro 2.14.0 to 2.29 by overriding the dependency in the composer file. You can find a better reference in this blog. So, i'm doing "drupal/ckeditor_font": "1.3 as 1.x-dev", in the composer.json file. However, the update needs to be thoroughly tested and if it works, then you can go up to 3.x.

  • πŸ‡¨πŸ‡¦Canada noahbailey

    @yonas.legesse -- Brilliant, that fix was able to get my system to 2.29 with minimal struggles. Thank you so much!!
    Now to test 3.x ;)

    Ps. Somebody should let the maintainers know of this issue and the workaround... I'm sure there's more people with this issue than the ~3 of us in this thread!

Production build 0.69.0 2024