Thanks four your reply. The missing repositories were the issue. I managed to update 3 v4.4(9|10) instances.
Here’s my update process:
composer config repositories.0 git https://github.com/mautic/FOSOAuthServerBundle.git
composer config repositories.1 git https://github.com/mautic/SpBundle.git
composer config repositories.2 git https://github.com/mautic/SymfonyBridgeBundle.git
composer remove mautic/plugin-citrix mautic/theme-nature mautic/theme-mauve mautic/theme-coffee
composer require --no-update "mautic/core-lib":"^5.0"
composer require --no-update "mautic/grapes-js-builder-bundle":"^5.0" "mautic/plugin-clearbit":"^5.0" "mautic/plugin-cloudstorage":"^5.0" "mautic/plugin-crm":"^5.0" "mautic/plugin-emailmarketing":"^5.0" "mautic/plugin-focus":"^5.0" "mautic/plugin-fullcontact":"^5.0" "mautic/plugin-gmail":"^5.0" "mautic/plugin-tagmanager":"^5.0" "mautic/plugin-outlook":"^5.0" "mautic/plugin-social":"^5.0" "mautic/plugin-tagmanager":"^5.0" "mautic/plugin-zapier":"^5.0"
composer require --no-update "mautic/theme-aurora":"^5.0" "mautic/theme-blank":"^5.0" "mautic/theme-brienz":"^5.0" "mautic/theme-cards":"^5.0" "mautic/theme-confirmme":"^5.0" "mautic/theme-fresh-center":"^5.0" "mautic/theme-fresh-fixed":"^5.0" "mautic/theme-fresh-left":"^5.0" "mautic/theme-fresh-wide":"^5.0" "mautic/theme-goldstar":"^5.0" "mautic/theme-neopolitan":"^5.0" "mautic/theme-oxygen":"^5.0" "mautic/theme-paprika":"^5.0" "mautic/theme-skyline":"^5.0" "mautic/theme-sparse":"^5.0" "mautic/theme-sunday":"^5.0" "mautic/theme-vibrant":"^5.0" "mautic/theme-trulypersonal":"^5.0"
composer update --with-all-dependencies
php bin/console cache:clear
php bin/console mautic:update:apply --finish
php bin/console doctrine:migration:migrate --no-interaction
php bin/console cache:clear
Gotchas / Issues
- Mautic deleted
MTCDIR/docroot/app/config/local.php
- I guess some script is supposed to move it from
MTCDIR/docroot/app/config/local.php
toMTCDIR/config/local.php
, but this doesn’t happen. - Solution: back it up and add it before running
mautic:update:apply --finish
- I guess some script is supposed to move it from
- The composer post-update scripts don’t get added.
- Solution: Add this to your
composer.json
- Solution: Add this to your
"scripts": {
"post-install-cmd": [
"@npm-ci",
"@npx-patch-package",
"@generate-assets"
],
"post-update-cmd": [
"@npm-ci",
"@npx-patch-package",
"@generate-assets"
],
"npm-ci": "npm ci --prefer-offline --no-audit",
"npx-patch-package": "npx patch-package",
"generate-assets": "php bin/console mautic:assets:generate"
},
- Run
npm install
afterwards
I expect, there could be/are still things missing—I just didn’t run into them, yet.
Thanks for your help!