Drupal 10, the latest version of the open-source digital experience platform with even more features, is here.When installing aegir2-hostmaster for Ubuntu 14.04 and apache 2.4 the postinst fails.
The error message in console is:
Task verify was added to the queue. Next queue run is 11:02:34+0200, [status]
server time is 11:01:46+0200.
ln: failed to create symbolic link ‘/etc/apache2/conf.d/aegir.conf’: No such file or directory
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
Enabling module rewrite.
To activate the new configuration, you need to run:
service apache2 restart
apache2: Syntax error on line 216 of /etc/apache2/apache2.conf: Could not open configuration file /etc/apache2/conf-enabled/aegir.conf: No such file or d ectory
Action 'graceful' failed.
The Apache error log may have more information.
dpkg: error processing package aegir2-hostmaster (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of aegir2:
aegir2 depends on aegir2-hostmaster (>= 2.1); however:
Package aegir2-hostmaster is not configured yet.
dpkg: error processing package aegir2 (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for libc-bin (2.19-0ubuntu6 ...
Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4) ...
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
aegir2-hostmaster
aegir2
E: Sub-process /usr/bin/dpkg returned an error code (1)The problem is that the aegir.conf file for apache is not created correctly for Apache2.4, because of an variable not set in the script.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | provision-apache24-2275467-1.patch | 1.28 KB | kristofferwiklund |











Comments
Comment #1
kristofferwiklund CreditAttribution: kristofferwiklund commentedHere is a patch for fixing it.
Comment #2
BWPanda CreditAttribution: BWPanda commentedI had the same problem. Fixed it by manually applying the changes from the above patch to /var/lib/dpkg/info/aegir2-hostmaster.postinst
Thanks Kris!
Comment #3
marji CreditAttribution: marji commentedI can confirm this truble on a fresh ubuntu 14.04, when installing via:
$ sudo apt-get install aegir2After the install fails, update /var/lib/dpkg/info/aegir2-hostmaster.postinst
and change the variable VARLIB to AEGIRHOME on line 139 (that's what the patch above does):
|| ln -sf $AEGIRHOME/config/$WEBSERVER.conf /etc/apache2/conf-enabled/aegir.confThen, run again:
$ sudo apt-get install aegir2and it will complete sucessfully.
Comment #4
ShaneOnABike CreditAttribution: ShaneOnABike commentedI can also confirm that repairing this line made the install run smoothly.. thanks for the patch and hopefully we can see this deployed!
Comment #6
helmo CreditAttribution: helmo commentedThanks
Comment #8
ryanbarkley CreditAttribution: ryanbarkley commentedI noticed that the changes above have been committed, but I just had the same issue on a fresh install. The above fix worked for me, so maybe it hasn't made it into a release yet?
Comment #9
kristofferwiklund CreditAttribution: kristofferwiklund commentedHave you run the dev-version of Provision? Because the code is committed to the dev branch but no new release has been built.
Comment #10
ryanbarkley CreditAttribution: ryanbarkley commentedNo I was pulling from the main branch. That must be what it was. Thanks.
Comment #11
mjh2901 CreditAttribution: mjh2901 commentedI just followed Marji's instructions and the installed finished perfectly. Hopefully the patch will be applied to the main branch soon.