-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to upgrade existing isle-dc site to Drupal 10 / Drush 12 / PHP 8.x (meta-issue) #356
Comments
Adding some reference material. |
Is anyone working on this? |
@highermath my understanding is that @joecorall has provided two key PRs (see above) that need testing and merging to push this upgrade forward. I think there might be one or more additional tasks needed for this issue to be closed, but merging those two PRs are key. |
Solr Search API requires updating the Solr config when you update the module to 4.3.0, which should be the same process as when we upgrade Solr from 7 to 8. I am hoping to try updating Isle to 2.0.2 soon, but in the meantime, here are the instructions that worked for me to update the Solr config when I upgrade the Search API module. Download config.zip from Drupal UI at /admin/config/search/search-api/server/default_solr_server |
What happens if you run |
@joshdentremont this works with @noahwsmith can we get a bumped tag? |
yep! here you go https://github.com/Islandora-Devops/isle-buildkit/releases/tag/2.0.3 |
@noahwsmith good catch. I just updated the solr search API to 4.3.0 and ran |
I was able to update my site to Buildkit 2.0.3 and Drupal 10 and everything seems to be working except Matomo, which seems to be on version 3.13.5 and not be compatible with PHP 8. I did this update on my local dev site. I have a staging and production site as well so I will comment again once I get it working on the staging site. Below are two sets of steps. One that I think will work, and that we should test and possibly add to the documentation, and the exact steps I took that did work, but could be simplified. One thing to note: this required removing all my data from Solr and recreating the core, then reindexing everything. It seemed like my existing core had been corrupted after the update to 8.x. There may be a way to avoid this, but I think you probably want to reindex anyway, because we are generating a new Solr config for 8.x. Steps for documentation:
These are the exact steps I took that worked for me:
|
On Staging/Production:
On both my dev site and staging site, Solr was acting up after the upgrade. On staging I had to remove the ISLANDORA directory, then restart Solr for it to clear out. Without doing that I was not able to run This also assumes you are using the Makefile to build, push, and pull your custom Drupal image. If you are not doing it that way, step 4 might be a little different, but the rest should be the same. |
Regarding Matomo, for the isle-buildkit TAG v1 to v2 upgrade, here's what locally, we found as the problem in the past. isle-buildkit uses isle-dc creates a volume at mounted at volumes:
- matomo-config-data:/var/www/matomo What is stored in the local storage volume overrides the Matomo files embedded in the isle-buildkit image TAG v2. Thus, if you start with TAG v1 and update to v2 isle-buildkit, you will get Matomo from your local volume (e.g., Matomo v3). However, if starting with a clean (i.e., empty volumes) then one would get the version of Matomo embedded in the isle-buildkit image. The documentation behind the behaviour. Locally, we've moved away from Matomo before digging into a solution so I don't have solution. One thought, untested, update Matomo via the Matomo web interface which will update the contents of the storage volume as a first step (assumes there is a version of Matomo that works with both PHP 7 and 8). This might be off-base so use with caution. |
We have found changing the volume bind mount for matomo to volumes:
- matomo-config-data:/var/www/matomo/config:rw Works well. One just needs to copy the
|
@aOelschlager and I found another issue where Cantaloupe was not working with Isle and buildkit 2.0.0 I just put in a PR for this #360 The instructions are the same once this PR goes through. The first 2 steps of pulling isle-dc and running |
Hypercube running on Update: Islandora-Devops/isle-buildkit#292 resolves the hypercube:2.x issue. |
Now that there is a fix for advanced search compatibility (Islandora/advanced_search#41) I think everything is ready to go, except Matomo. I have created an issue for Matomo, at #361 I also have a documentation PR being tested to give instructions on how to do the upgrade: Islandora/documentation#2264 I am running Drupal 10 in staging now and planning to update production next week and everything seems to be working well. I think we can probably close this once the documentation PR is merged, and the Matomo issue is dealt with. My only concern is that it seems most of us are not using Matomo, so I'm not sure how to address that issue. I think someone who has an existing site, that uses matomo, might need to do some testing of the options g7morris and jeffreya suggested above. |
Another issue that will affect anyone upgrading from 1.x to 2.x is mariadb errors in the logs. This doesn't seem to cause any major issues, but it does really clutter up the logs. I have a PR to fix this in Buildkit and have updated the instructions in the documentation PR above for how to deal with this. See the discussion in slack: https://islandora.slack.com/archives/CM6F4C4VA/p1696525259478829 |
The Mariadb issue is now fixed with buildkit 2.0.5. Upgrade instructions have been updated to include how to fix the database errors in the logs: https://islandora.github.io/documentation/installation/docker-maintain-isle/#version-1x-to-2x |
fcrepo imports are failing for me after switching to 2.x. See Islandora-Devops/isle-buildkit#304 for more details. This is easily fixed by editing the Makefile. I have included an issue in isle-dc so we can discuss this at the next tech call. (#368) |
In case it helps, I wanted to create this meta-issue to keep track of open issues and PRs that will help us run an existing ISLE-DC site with Drupal 10 / Drush 12 / PHP 8.x (meta-issue).
Apologies in advance if you do not find this meta-issue helpful, and I welcome your feedback.
Available isle-buildkit releases:
https://github.com/Islandora-Devops/isle-buildkit/releases
https://github.com/Islandora-Devops/isle-buildkit/releases/tag/2.0.7
Related PRs:
Documentation PRs:
Related issues:
Related PRs for upgrade to PHP 8.2:
Related issues for upgrade to PHP 8.2:
utf8_encode()
has been deprecated. Islandora/islandora#988@joshdentremont
@aOelschlager
@joecorall
@nigelgbanks
The text was updated successfully, but these errors were encountered: