We had an issue after installing hostmaster using the hostmaster profile. The profile creates an admin account and this seem to conflict with the hosting_wizard_steps() function.

We had to patch the hosting.module and it solved the issue:

Index: hosting.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/hosting/hosting.module,v
retrieving revision 1.20
diff -u -r1.20 hosting.module
--- hosting.module      26 Feb 2008 04:07:12 -0000      1.20
+++ hosting.module      29 Feb 2008 22:30:59 -0000
@@ -380,9 +380,9 @@
 function hosting_wizard_steps() {
   return array(
     '#steps' => array('user_edit', 'provision_configure'),
-    'user_edit' => array("path" => "user/1/edit", 'title' => t("Change your account password."), "form_id" => "user_edit", 
-        'message' => t('An administrator account has been registered for you. 
-          Please change your password to continue with the configuration process.')),
+   // 'user_edit' => array("path" => "", 'title' => t("Change your account password."), "form_id" => "user_edit", 
+   //     'message' => t('An administrator account has been registered for you. 
+   //       Please change your password to continue with the configuration process.')),
     'provision_configure' => array("path" => "admin/settings/provision", 'title' => t("Configure the provisioning framework."), "form_id" => "provision_configure",
       'message' => t('To be able to create sites using Hostmaster, we need some information about your server. Please complete this configuration form.')),
   );
@@ -483,4 +483,4 @@
     $box = db_fetch_object(db_query('SELECT * FROM {boxes} WHERE bid=%d', $delta));
     db_query("INSERT INTO {boxes} (bid, body, info, format) VALUES (%d, '%s', '%s', '%s')", $box->bid, $box->body, $box->info, $box->format);
   }
-}
\ No newline at end of file
+}

Comments

adrian’s picture

In hostmaster.profile, i create a user id 1, and then set the current user to that.

the user is redirected to the page to be able to change their password. I'm not sure why the uid change isn't working. will research and figure it out.

it works locally.
I've deployed it on hm2.bryght.com to determine the error.

anarcat’s picture

More information on the bug:

we get this error:

Access denied
You are not authorized to access this page. 

The environment:

Linux hostmaster.koumbit.net 2.6.18-6-xen-amd64 #1 SMP Sun Feb 10 18:02:52 UTC 2008 x86_64 GNU/Linux

Debian GNU/Linux etch.

ii  php5-mysql                    5.2.0-8+etch10                MySQL module for php5
ii  libapache2-mod-php5           5.2.0-8+etch10                server-side, HTML-embedded scripting language (apache 2 module)
ii  mysql-server-5.0              5.0.32-7etch5                 mysql database server binaries
ii  apache2                       2.2.3-4+etch4                 Next generation, scalable, extendable web server
ii  apache2-mpm-prefork           2.2.3-4+etch4                 Traditional model for Apache HTTPD 2.1
anarcat’s picture

Also note that clean URLs don't seem to be enabled, which might be part of the problem.

Workaround: use http://hostmaster.example.com/?skip_wizard=true to bypass the wizard (thanks adrian!)

anarcat’s picture

Assigned: Unassigned » anarcat
Status: Needs work » Fixed

I committed a fix in commit #105869, there was a problem in the provision module that was keeping the install from going smoothly.

I have also committed a small tune-up to help people debug the install in 105870.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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