We follow the steps at http://wiki.koumbit.net/FormationHostmaster to install hostmaster and got the following error immediatly at the beginning of the hosting wizard:

user warning: Access denied for user 'hostmaster'@'localhost' to database 'provision_test' query: CREATE DATABASE provision_test in /var/hostmaster/drupal-5.x/includes/database.mysql.inc on line 172.

That's because the "hostmaster" MySQL user is priviledged only for the Drupal frontend (the hostmaster install) and not to create other users and the such.

That happens before the db_server is configured with the proper username and password.

In my opinion, the platform shouldn't be checked on install...

While that might not be supported, it still works apart from this warning, which seems to emanate from the provision_verify hook from the provision.module itself that gets somehow run when the module is configured.

Comments

anarcat’s picture

Version: 5.x-0.1-alpha2 » 5.x-0.1-beta1

This is still happening but is very minor.

nickl’s picture

Project: Provision » Hostmaster (Aegir)
Version: 5.x-0.1-beta1 » 5.x-0.1-rc1

SQL warning occurs in hostmaster.profile when _provision_mysql_can_create_database() is called.

function hostmaster_profile_final() {
..........
  if (_provision_mysql_can_create_database()) {
    $node->db_user = $url['user'];
    $node->db_passwd = $url['pass'];
  }
  else {
    $node->db_user = 'root';
    $node->db_passwd = 'password';    
  }
..........
}

Changed project to hostmaster and upped version number.

anarcat’s picture

Status: Active » Fixed

I think this has been fixed in later versions.

Status: Fixed » Closed (fixed)

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