Ubuntu Server 11.10 LTS:
Using apt package manager, a number of upgrades were available. On completion of the upgrade, all sites were pointed to default Apache /var/www/index.html. Using webmin, all virtual hosts had been removed and replaced with default setting.

/var/aegir/hostmaster-1.09 exists
/var/aegir/hostmaster-1.10 exists

Master hostmaster site is located in /var/aegir/hostmaster-1.10/sites

apt-get install aegir returns

The following packages have unmet dependencies:
 aegir : Depends: aegir-provision (>= 1.10) but it is not going to be installed
         Depends: aegir-hostmaster (>= 1.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

apt-get install aegir-provision returns

The following packages have unmet dependencies:
 aegir-provision : Depends: drush (< 5.0) but 5.9-1 is to be installed
E: Unable to correct problems, you have held broken packages.

Let me know if you need further information.

Comments

skov’s picture

More information:
/etc/apache2/sites-available/ is empty except "default" and "default-ssl" files.

Manual installation of drush 4.6, provision 1.10 was successful. (bypass APT package manager)

Attempt to get main hostmaster site to create virtual host (no success):

$ sudo -u aegir drush --debug --alias-path="/var/aegir/.drush" @hostmaster provision-verify
Bootstrap to phase 0. [0.03 sec, 2.86 MB]                            [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drush() [0.03 sec, 3.08 MB] [bootstrap]
Load alias @hostmaster [0.03 sec, 3.09 MB]                                                                      [notice]
Loading drushrc "/var/aegir/hostmaster-6.x-1.10/sites/server.example.com/drushrc.php" into "site" scope. [0.04[bootstrap]
sec, 3.1 MB]
Bootstrap to phase 0. [0.12 sec, 10.17 MB]                                                                   [bootstrap]
Found command: provision-verify (commandfile=provision) [0.12 sec, 10.17 MB]                                 [bootstrap]
Initializing drush commandfile: provision [0.12 sec, 10.18 MB]                                               [bootstrap]
Load alias @server_localhost [0.12 sec, 10.2 MB]                                                                [notice]
Load alias @server_master [0.12 sec, 10.21 MB]                                                                  [notice]
Loading mysql driver for the db service [0.13 sec, 10.24 MB]                                                    [notice]
Loading apache_ssl driver for the http service [0.13 sec, 10.25 MB]                                             [notice]
Loading mysql driver for the db service [0.13 sec, 10.32 MB]                                                    [notice]
Load alias @platform_hostmaster6x110 [0.13 sec, 10.33 MB]                                                       [notice]
Including /usr/share/drush/commands/provision/dns/verify.provision.inc [0.14 sec, 10.34 MB]                  [bootstrap]
Including /usr/share/drush/commands/provision/platform/backupmigrate/verify.provision.inc [0.14 sec, 10.35   [bootstrap]
MB]
Including /usr/share/drush/commands/provision/platform/verify.provision.inc [0.14 sec, 10.35 MB]             [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_root() [0.14 sec, 10.42 MB]                                  [bootstrap]
Loading drushrc "/var/aegir/hostmaster-6.x-1.10/drushrc.php" into "drupal" scope. [0.14 sec, 10.42 MB]       [bootstrap]
Initialized Drupal 6.28 root directory at /var/aegir/hostmaster-6.x-1.10 [0.16 sec, 11.69 MB]                   [notice]
Drush bootstrap phase : _drush_bootstrap_drupal_site() [0.17 sec, 11.7 MB]                                   [bootstrap]
Initialized Drupal site server.example.com at sites/server.example.com [0.17 sec, 11.7 MB]                        [notice]
Loading drushrc "/var/aegir/hostmaster-6.x-1.10/sites/server.example.com/drushrc.php" into "site" scope. [0.17[bootstrap]
sec, 11.7 MB]
Template loaded: /usr/share/drush/commands/provision/platform/provision_drupal_settings.tpl.php [0.18 sec,      [notice]
11.71 MB]
Changed permissions of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/settings.php to 640 [0.18 sec,   [message]
11.72 MB]
Generated config Drupal settings.php file [0.19 sec, 11.72 MB]                                                 [message]
Changed permissions of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/settings.php to 440 [0.19 sec,   [message]
11.73 MB]
Change group ownership of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/settings.php to www-data      [message]
[0.19 sec, 11.73 MB]
Drush bootstrap phase : _drush_bootstrap_drupal_configuration() [0.19 sec, 11.71 MB]                         [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_database() [0.21 sec, 12.09 MB]                              [bootstrap]
Successfully connected to the Drupal database. [0.21 sec, 12.09 MB]                                          [bootstrap]
Drush bootstrap phase : _drush_bootstrap_drupal_full() [0.22 sec, 12.47 MB]                                  [bootstrap]
Found install profile <em>default</em> [0.32 sec, 22.65 MB]                                                     [notice]
Found install profile <em>hostmaster</em> [0.32 sec, 22.74 MB]                                                  [notice]
Found 61 modules [0.34 sec, 23.12 MB]                                                                           [notice]
Found 7 themes [0.34 sec, 23.18 MB]                                                                             [notice]
Changed permissions of sites/server.example.com to 755 [0.35 sec, 22.75 MB]                        [message]
Changed permissions of sites/server.example.com/themes to 2775 [0.35 sec, 22.75 MB]                [message]
Changed permissions of sites/server.example.com/modules to 2775 [0.35 sec, 22.75 MB]               [message]
Changed permissions of sites/server.example.com/libraries to 2775 [0.35 sec, 22.75 MB]             [message]
Changed permissions of sites/server.example.com/files to 2770 [0.35 sec, 22.75 MB]                 [message]
Changed permissions of sites/server.example.com/files/tmp to 2770 [0.35 sec, 22.76 MB]             [message]
Changed permissions of sites/server.example.com/files/images to 2770 [0.35 sec, 22.76 MB]          [message]
Changed permissions of sites/server.example.com/files/pictures to 2770 [0.35 sec, 22.76 MB]        [message]
Changed permissions of sites/server.example.com/files/css to 2770 [0.35 sec, 22.76 MB]             [message]
Changed permissions of sites/server.example.com/files/js to 2770 [0.35 sec, 22.76 MB]              [message]
Changed permissions of sites/server.example.com/files/ctools to 2770 [0.35 sec, 22.76 MB]          [message]
Changed permissions of sites/server.example.com/files/imagecache to 2770 [0.35 sec, 22.77 MB]      [message]
Changed permissions of sites/server.example.com/files/locations to 2770 [0.35 sec, 22.77 MB]       [message]
Changed permissions of sites/server.example.com/private to 2770 [0.35 sec, 22.77 MB]               [message]
Changed permissions of sites/server.example.com/private/files to 2770 [0.35 sec, 22.77 MB]         [message]
Changed permissions of sites/server.example.com/private/temp to 2770 [0.35 sec, 22.77 MB]          [message]
Changed group ownership of sites/server.example.com/files to www-data [0.35 sec, 22.77 MB]         [message]
Changed group ownership of sites/server.example.com/files/tmp to www-data [0.35 sec, 22.78 MB]     [message]
Changed group ownership of sites/server.example.com/files/images to www-data [0.35 sec, 22.78 MB]  [message]
Changed group ownership of sites/server.example.com/files/pictures to www-data [0.35 sec, 22.78    [message]
MB]
Changed group ownership of sites/server.example.com/files/css to www-data [0.35 sec, 22.78 MB]     [message]
Changed group ownership of sites/server.example.com/files/js to www-data [0.36 sec, 22.78 MB]      [message]
Changed group ownership of sites/server.example.com/files/ctools to www-data [0.36 sec, 22.78 MB]  [message]
Changed group ownership of sites/server.example.com/files/imagecache to www-data [0.36 sec, 22.79  [message]
MB]
Changed group ownership of sites/server.example.com/files/locations to www-data [0.36 sec, 22.79   [message]
MB]
Changed group ownership of sites/server.example.com/private to www-data [0.36 sec, 22.79 MB]       [message]
Changed group ownership of sites/server.example.com/private/files to www-data [0.36 sec, 22.79     [message]
MB]
Changed group ownership of sites/server.example.com/private/temp to www-data [0.36 sec, 22.79 MB]  [message]
Template loaded: /usr/share/drush/commands/provision/platform/provision_drupal_settings.tpl.php [0.36 sec,      [notice]
22.79 MB]
Changed permissions of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/settings.php to 640 [0.36 sec,   [message]
22.8 MB]
Generated config Drupal settings.php file [0.36 sec, 22.8 MB]                                                  [message]
Changed permissions of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/settings.php to 440 [0.36 sec,   [message]
22.8 MB]
Change group ownership of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/settings.php to www-data      [message]
[0.36 sec, 22.81 MB]
Template loaded: /usr/share/drush/commands/provision/http/apache_ssl/vhost_ssl.tpl.php [0.36 sec, 22.82 MB]     [notice]
Generated config encrypted virtual host configuration [0.37 sec, 22.83 MB]                                     [message]
Executing: sudo /usr/sbin/apache2ctl graceful
  apache2: Could not reliably determine the server's fully qualified domain name, using server.example.com for ServerName
<em>apache</em> on <em>server.example.com</em> has been restarted [0.47 sec, 22.83 MB]                           [notice]
Cleared all caches [0.48 sec, 22.87 MB]                                                                         [notice]
Rebuilt node type cache [0.48 sec, 22.9 MB]                                                                     [notice]
Rebuilt module cache [0.58 sec, 22.9 MB]                                                                        [notice]
Rebuilt theme cache [0.6 sec, 22.96 MB]                                                                         [notice]
Rebuilt menu cache [1.04 sec, 24.86 MB]                                                                         [notice]
Client home directory for admin path /var/aegir/clients/admin exists. [1.04 sec, 24.84 MB]                     [message]
Client home directory for admin ownership of /var/aegir/clients/admin has been changed to aegir. [1.04 sec,    [message]
24.85 MB]
Client home directory for admin permissions of /var/aegir/clients/admin have been changed to 750. [1.04 sec,   [message]
24.85 MB]
Client home directory for admin path /var/aegir/clients/admin is writable. [1.04 sec, 24.85 MB]                [message]
Created symlink /var/aegir/clients/admin/server.example.com to                                                  [message]
/var/aegir/hostmaster-6.x-1.10/sites/server.example.com [1.08 sec, 24.85 MB]
Template loaded: /usr/share/drush/commands/provision/provision_drushrc_site.tpl.php [1.34 sec, 24.97 MB]        [notice]
Changed permissions of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/drushrc.php to 640 [1.34 sec,    [message]
24.98 MB]
Generated config Site Drush configuration file [1.35 sec, 24.98 MB]                                            [message]
Changed permissions of /var/aegir/hostmaster-6.x-1.10/sites/server.example.com/drushrc.php to 440 [1.35 sec,    [message]
24.98 MB]
Command dispatch complete [1.35 sec, 24.97 MB]                                                                  [notice]
 Timer  Cum (sec)  Count  Avg (msec) 
 page   1.156      1      1155.6     

Peak memory usage was 26.02 MB [1.35 sec, 24.97 MB]                                                             [memory]
skov’s picture

Category: support » bug
Status: Closed (works as designed) » Active

PEBCAC: Problem exists between chair and computer.

http://community.aegirproject.org/1.10#Known_issues

Drush was updated with apt-get to version 5.9, and required 4.6.

wget http://backports.debian.org/debian-backports/pool/main/d/drush/drush_4.5...
dpkg -i drush_4.5-2~bpo60+1_all.deb

And re-run apt-get install aegir corrected the problem.

skov’s picture

Issue summary: View changes

Corrected Ubuntu version

ergonlogic’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

And re-run apt-get install aegir corrected the problem.

So is this still an issue? If not, please close this issue.

If so, note that Aegir doesn't write vhosts in /etc/apache2/sites-available, but rather usually in something like /var/aegir/config/server_master/apache/vhost.d/. Could you check there for vhosts? There should also be a config file at /etc/apache2/conf.d/aegir.conf that will point towards /var/aegir/config/aegir.conf (iirc), which then includes all the vhosts, etc. Could you check for those files too?

skov’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

The issue arose from having installed Drush 5.9 prior to Aegir 1.10. On installing Aegir 1.10, there was a dependency issue (Drush < 5.0 required) that did not allow the upgrade from 1.9 to 1.10.

By downgrading Drush to 4.6, the Aegir 1.10 update succeeded.

Yes, /var/aegir/config/server_master/apache/vhost.d now contains all the vhosts. Also, the link from /etc/apache2/conf.d/aegir.conf to /var/aegir/config/aegir.conf also exists. However, I cannot verify if this was the case when the problem first occurred. At the time, there was only the default apache vhost listed.

Status: Active » Closed (works as designed)