Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://debian.aegirproject.org unstable InRelease: The following signatures were invalid: EXPKEYSIG 5ADF93A03376CCF9 Aegir Debian archive autosigning
W: Failed to fetch https://debian.aegirproject.org/dists/unstable/InRelease The following signatures were invalid: EXPKEYSIG 5ADF93A03376CCF9 Aegir Debian archive autosigning
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#21 | 3317637-21.patch | 1.29 KB | fenstrat |
Comments
Comment #2
g33kg1rl CreditAttribution: g33kg1rl commentedI am unable to upgrade Aegir because of the key not being updated. Please update or renew the key so Debian users can upgrade to the latest version of Aegir.
Comment #3
bgm CreditAttribution: bgm at Coop SymbioTIC commentedHi, the Debian packages are not maintained anymore. There is ongoing discussion between Aegir maintainers on what are the next steps to recommend, but so far, most active maintainers have either moved to a Git-based installation or BOA (omega8).
In short, to convert a Debian-based install to a git-based or manual install, you need to:
We are working on publishing better documentation to help people with upgrading.
Comment #4
fenstrat@bgm thanks for that, nice to know there is a plan to help on the migration to another workflow.
Comment #5
SocialNicheGuru CreditAttribution: SocialNicheGuru commented@pgm has the overall setup changed as provision used to be part of ubuntu under /usr/share/drush.
Will that no longer be needed either
Comment #6
bgm CreditAttribution: bgm at Coop SymbioTIC commentedHere is how I migrate my servers from the Debian package to a git-based installation. Feedback welcome!
Some assumptions/requirements:
These instructions are based on the Ansible roles by Concensus Entreprises: https://gitlab.com/consensus.enterprises/ansible-roles/ansible-role-aegir/
0) Remove Debian packages
Purging would delete the "aegir" user and one other configuration (the apache/nginx conf symlink), which is not dramatic in itself (they can be re-created). Out of lazyness, I usually edit/remove the files "/var/lib/dpkg/info/aegir3-provision.postrm" and "/var/lib/dpkg/info/aegir3-hostmaster.postrm" and then purge the packages.
1) Install composer, which will be used for installing Drupal
2) Install Drush with git and composer
3) Install provision from git
4) Build the hostmaster platform
5) Setup the fix-ownership/permissions scripts. Optional, since removing the Debian packages does not delete this, I think?
6) No need to run 'drush hostmaster-install', but if this were a new install, it would be done here (and requires lots of arguments)
7) Migrate hostmaster to the new platform
(I'm not sure why 'working-copy' is used here)
8) Verify that the migration worked, it should display /var/aegir/hostmaster
8) Hosting-queued (optional)
Comment #7
bgm CreditAttribution: bgm at Coop SymbioTIC commentedComment #8
SocialNicheGuru CreditAttribution: SocialNicheGuru commenteddoes this work with nginx servers too or just apache2?
Comment #9
bgm CreditAttribution: bgm at Coop SymbioTIC commentedIt should work for both. I only tested nginx.
Comment #10
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedWow! That works like a charm.
Thank you.
Comment #11
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedIs there an updated provision module?
I cannot create a Drupal 9 platform. I get the following:
In /var/aegir/.drush/provision/platform/drupal, there is no provision9.inc file
Comment #12
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedAhhh, It worked when I changed the directory for provision which includes the needed files
git clone https://git.drupalcode.org/project/provision.git
Comment #13
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedNot sure what the next step is for this?
Should it be a help page on Drupal.org and/or on aegir project website?
Comment #14
bgm CreditAttribution: bgm at Coop SymbioTIC commentedThanks for testing! I updated the instructions to use the correct provision git repo, and also fixed the "git clone" for drush itself, so that it only checks out the specific branch (makes no difference functionally, but it takes 33 MB disk space instead of 200 MB).
Next step would be to document in the Aegir docs here: https://docs.aegirproject.org/install/upgrade/
For me there are still a few unknowns on future maintenance. For manual (or git-based) installs, the docs are not very detailed.
I guess drush/provision are simple because they are git repos, but the hostmaster platform is a bit more of a pain to manage because it's built with "drush make"? People would have to "drush make" a new platform, and then run hostmaster-migrate, or maybe do a yolo upgrade of the platform itself (I usually test upgrades elsewhere, commit the platform to a mono git repo, then just "git pull" everywhere).
Comment #15
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedI am using Mariadb and it fails with unknown variable set-gtid-purged=OFF, which is not available above Mariadb 5.5.
Could not write database backup file mysqldump (command: mysqldump [error]
--defaults-file=/dev/fd/3 --set-gtid-purged=OFF --single-transaction --quick --no-autocommit
dbase) (error: mysqldump: unknown variable
'set-gtid-purged=OFF'
)
Could not generate database backup from mysqldump. (error: mysqldump: [error]
unknown variable 'set-gtid-purged=OFF'
)
Comment #16
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedIs there a packages10inc file that would allow us to install Drupal 10 sites?
Comment #17
bgm CreditAttribution: bgm at Coop SymbioTIC commented@SocialNicheGuru: I think those last two comments/issues are not directly linked to the issue here (git install/upgrade), but issues with provision. For what it's worth, I'm on MariaDB 10.5 and did not notice any issues. I haven't used D10 yet.
Comment #18
SocialNicheGuru CreditAttribution: SocialNicheGuru commented@bgm. I think you might be correct.
It was just during a migration.
One went without an issue.
The other had those two come up.
I am just noting them and will move to other issues.
Comment #19
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedHow do I do hostmater install
At Step 6. I did
drush hostmaster-install
which seemed to work.But it did not use the copy of hostmaster from step 4.
Instead it created it's own hostmaster-7.x-3.x directory.
Comment #20
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedInstalling from git repository is the recommended way moving forward.
Comment #21
fenstrat@bgm thanks very much for the details in #6. Using that I've successfully migrated from /var/aegir/hostmaster-7.x-3.192 to /var/aegir/hostmaster
Attached is the patch I used for hostmaster that bumps the contrib modules up to their latest stable versions. Note that building hostmaster with drush make already bumps core to the latest stable (7.98).
To apply the patch, before running drush make edit /var/aegir/.drush/provision/aegir.make to get it to apply the patch:
Running
drush make /var/aegir/.drush/provision/aegir.make /var/aegir/hostmaster
will then use the latest contrib modules.Next step for me is to bump from PHP 7.4 to PHP 8.2. I'll report back if there's any issues.
Comment #22
FrancewhoaComment #23
Steven Jones CreditAttribution: Steven Jones at ComputerMinds commented@fenstrat did you make it to PHP 8.2?
Comment #24
fenstrat@Steven Jones yes I did, everything mostly worked from memory. Needed a couple additional patches, some of which you've committed, thanks!
More to the point though Aegir 3 seems pretty much at a dead end, as you well know. Especially when I was looking at this ~ 6 months ago. As we needed Drupal 10 support we've had to migrate off Aegir. Thankfully replacing its platform migration (the essential bit of Aegir for us) with custom code that did what we needed was relatively straight forward.
Comment #25
bgm CreditAttribution: bgm commentedI kind of have D10 and PHP 8.2 working on Aegir, if anyone's interested. I'm not sure if it will be useful to many people though. I basically started from the omega8 provision fork, but then removed a lot of things I didn't use and were causing issues, and replaced drush PHP calls by shell calls (which is what I do for WordPress support, and what I think provision4 did). That way multiple drush versions can co-exist on the system. It breaks a lot of Aegir things though. Install and backup works, limited testing for clone/migrate, and I still have an annoying issue with 'verify' wiping out some settings. I hope to fix the verify bug and post a blog post in 2-3 weeks.