I had some issues with the upgrade from 3.9 to 3.10 (see https://www.drupal.org/node/2866614 & https://www.drupal.org/node/2616426#comment-12021957).

In the Aegir UI it says there is no hostmaster-7.x-3.10 platform and that my aegir site is running on platform hostmaster-7.x-3.9 but when I look at the core & contrib versions installed on the site, it's clear the site is using the newer codebase. In the shell I can see that both the hostmaster-7.x-3.9 and hostmaster-7.x-3.10 platform folders are there and both have my aegir site in them! In the hostmaster-7.x-3.10 platform, everything in the sites folder has permissions of aegir:www-data instead of aegir:aegir. I tried changing the ownership to aegir:aegir but then my aegir site stopped working altogether and just presents the standard Drupal install screen,

Any help would be appreciated.

Comments

inteja created an issue. See original summary.

inteja’s picture

After a couple of backup/upgrade/restore attempts I'm still getting errors upgrading from 3.9 to 3.10 (using deb packages) and group ownership for hostmaster sites folder is being set to www-data instead of aegir

Invalid argument supplied for foreach() hosting_site.nodeapi.inc:338 [warning]
WD menu: PDOException: SQLSTATE[42S02]: Base table or view not found:[error]
1146 Table 'aegirvirtualre_0.hosting_dns_records' doesn't exist:
SELECT h.domain AS domain, h.dns_zone AS dns_zone
FROM
{hosting_dns_records} h
WHERE  (nid = :db_condition_placeholder_0) AND (vid =
:db_condition_placeholder_1) ; Array
(
    [:db_condition_placeholder_0] => 10
    [:db_condition_placeholder_1] => 10
)
 in hosting_dns_get_dns_records() (line 349 of
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting_dns/hosting_dns.module).

and

exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or[error]
view not found: 1146 Table 'aegirvirtualre_0.hosting_dns_records'
doesn't exist' in
/var/aegir/hostmaster-7.x-3.10/includes/database/database.inc:2227
Stack trace:
#0
/var/aegir/hostmaster-7.x-3.10/includes/database/database.inc(2227):
PDOStatement->execute(Array)
#1
/var/aegir/hostmaster-7.x-3.10/includes/database/database.inc(697):
DatabaseStatementBase->execute(Array, Array)
#2 /var/aegir/hostmaster-7.x-3.10/includes/database/select.inc(1280):
DatabaseConnection->query('SELECT h.domain...', Array, Array)
#3
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting_dns/hosting_dns.module(349):
SelectQuery->execute()
#4
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting_dns/hosting_dns.module(202):
hosting_dns_get_dns_records(Object(stdClass))
#5 [internal function]: hosting_dns_node_load(Array, Array)
#6 /var/aegir/hostmaster-7.x-3.10/includes/entity.inc(368):
call_user_func_array('hosting_dns_nod...', Array)
#7 /var/aegir/hostmaster-7.x-3.10/modules/node/node.module(4176):
DrupalDefaultEntityController->attachLoad(Array, false)
#8 /var/aegir/hostmaster-7.x-3.10/includes/entity.inc(206):
NodeController->attachLoad(Array, false)
#9 /var/aegir/hostmaster-7.x-3.10/includes/common.inc(8012):
DrupalDefaultEntityController->load(Array, Array)
#10 /var/aegir/hostmaster-7.x-3.10/modules/node/node.module(947):
entity_load('node', Array, Array, false)
#11 /var/aegir/hostmaster-7.x-3.10/modules/node/node.module(966):
node_load_multiple(Array, Array, false)
#12
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/hosting.module(1142):
node_load('10')
#13
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/resume.hosting.inc(20):
hosting_context_load('@hostmaster')
#14 [internal function]: drush_hosting_resume()
#15 phar:///usr/local/bin/drush/includes/command.inc(422):
call_user_func_array('drush_hosting_r...', Array)
#16 phar:///usr/local/bin/drush/includes/command.inc(231):
_drush_invoke_hooks(Array, Array)
#17 [internal function]: drush_command()
#18 phar:///usr/local/bin/drush/includes/command.inc(199):
call_user_func_array('drush_command', Array)
#19 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch(Array)
#20 phar:///usr/local/bin/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#21 phar:///usr/local/bin/drush/includes/startup.inc(458):
drush_main()
#22 phar:///usr/local/bin/drush/includes/startup.inc(365):
drush_run_main(false, '/', 'Phar detected. ...')
#23 phar:///usr/local/bin/drush/drush(114): drush_startup(Array)
#24 /usr/local/bin/drush(10): require('phar:///usr/loc...')
#25 {main}
exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or[error]
view not found: 1146 Table 'aegirvirtualre_0.hosting_dns_records'
doesn't exist' in
/var/aegir/hostmaster-7.x-3.10/includes/database/database.inc:2227
Stack trace:
#0
/var/aegir/hostmaster-7.x-3.10/includes/database/database.inc(2227):
PDOStatement->execute(Array)
#1
/var/aegir/hostmaster-7.x-3.10/includes/database/database.inc(697):
DatabaseStatementBase->execute(Array, Array)
#2 /var/aegir/hostmaster-7.x-3.10/includes/database/select.inc(1280):
DatabaseConnection->query('SELECT h.domain...', Array, Array)
#3
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting_dns/hosting_dns.module(349):
SelectQuery->execute()
#4
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting_dns/hosting_dns.module(202):
hosting_dns_get_dns_records(Object(stdClass))
#5 [internal function]: hosting_dns_node_load(Array, Array)
#6 /var/aegir/hostmaster-7.x-3.10/includes/entity.inc(368):
call_user_func_array('hosting_dns_nod...', Array)
#7 /var/aegir/hostmaster-7.x-3.10/modules/node/node.module(4176):
DrupalDefaultEntityController->attachLoad(Array, false)
#8 /var/aegir/hostmaster-7.x-3.10/includes/entity.inc(206):
NodeController->attachLoad(Array, false)
#9 /var/aegir/hostmaster-7.x-3.10/includes/common.inc(8012):
DrupalDefaultEntityController->load(Array, Array)
#10 /var/aegir/hostmaster-7.x-3.10/modules/node/node.module(947):
entity_load('node', Array, Array, false)
#11 /var/aegir/hostmaster-7.x-3.10/modules/node/node.module(966):
node_load_multiple(Array, Array, false)
#12
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/hosting.inc(116):
node_load('10')
#13
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/platform/hosting_platform.module(948):
hosting_get_hostmaster_platform_nid()
#14 [internal function]:
hosting_platform_hosting_task_guarded_nodes()
#15 /var/aegir/hostmaster-7.x-3.10/includes/module.inc(957):
call_user_func_array('hosting_platfor...', Array)
#16
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/task/hosting_task.module(1861):
module_invoke_all('hosting_task_gu...')
#17
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/task/hosting_task.module(1896):
hosting_task_get_guarded_nodes()
#18
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/task/hosting_task.module(549):
hosting_task_dangerous_task_is_allowed('verify', '2')
#19
/var/aegir/hostmaster-7.x-3.10/profiles/hostmaster/modules/aegir/hosting/task.hosting.inc(66):
hosting_add_task('2', 'verify', Array)
#20 [internal function]: drush_hosting_task_validate('server_master',
'verify')
#21 phar:///usr/local/bin/drush/includes/command.inc(422):
call_user_func_array('drush_hosting_t...', Array)
#22 phar:///usr/local/bin/drush/includes/command.inc(231):
_drush_invoke_hooks(Array, Array)
#23 [internal function]: drush_command('server_master', 'verify')
#24 phar:///usr/local/bin/drush/includes/command.inc(199):
call_user_func_array('drush_command', Array)
#25 phar:///usr/local/bin/drush/lib/Drush/Boot/BaseBoot.php(67):
drush_dispatch(Array)
#26 phar:///usr/local/bin/drush/includes/preflight.inc(66):
Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#27 phar:///usr/local/bin/drush/includes/startup.inc(458):
drush_main()
#28 phar:///usr/local/bin/drush/includes/startup.inc(365):
drush_run_main(false, '/', 'Phar detected. ...')
#29 phar:///usr/local/bin/drush/drush(114): drush_startup(Array)
#30 /usr/local/bin/drush(10): require('phar:///usr/loc...')
#31 {main}
dpkg: error processing package aegir3-hostmaster (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of aegir3:
 aegir3 depends on aegir3-hostmaster (>= 3.10); however:
  Package aegir3-hostmaster is not configured yet.

dpkg: error processing package aegir3 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 aegir3-hostmaster
 aegir3
E: Sub-process /usr/bin/dpkg returned an error code (1)
helmo’s picture

Not sure why that is happening, but disabling the hosting_dns module before the upgrade is probably the easiest workaround at this point.

drush @hm pm-disable hosting_dns

You can enable it again after the upgrade is you need.

helmo’s picture

Status: Active » Fixed

I think this was fixed via other channels.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.