Can't import initial site - get database error on entire installation

Events happening in the community are now at Drupal community events on www.drupal.org.
krysgeek's picture

I have installed this several times and keep running into the same problem. I get through the whole installation process, verify the site, import the initial site, and then when it verifies it again, I get this error:

The database type '' is unsupported. Please use either 'mysql' or 'mysqli' for MySQL, or 'pgsql' for PostgreSQL databases.

The IP address (and main domain name) of my server points to a different document (/var/www/) root than the aegir installation (/var/aegir/hostmaster-0.4-alpha6/). I am using a subdomain to point to that folder.

I am using 0.4 alpha 6 and I was getting it on alpha 5 too. I am running Ubuntu 8.04 LTS.

I have reinstalled this about 7 times with different ways of doing the database. Any help would be greatly appreciated.

Comments

Are you talking about the

mig5's picture

Are you talking about the main Aegir site that gets imported after the initial platform verification?

This is normal, just a fleeting 'in-between' moment: see my comments in this issue

Refresh your browser a few times and see it come back again. It's when the settings.php has been rewritten to use environment variables for the database credentials, but those environment variables haven't yet been loaded into Apache.

Thanks so much for

krysgeek's picture

Thanks so much for responding.

Yes - This is the main aegir site. It verifies the site (completes), imports the site (completes), and then verifies again. During that second verification, the whole installation goes Offline and I get the error. I have refreshed many times and restarted apache - no change.

Check that the apache vhost

mig5's picture

Check that the apache vhost conf for the main site has the SetEnv parameters defining the database credentials in it. Check that mod_env is enabled in your Apache.

The symptoms you're describing, including the sequence of when it happens, still makes me 99% sure it's a browser cache thing. Clear browser cache and restart your browser.

The vhost conf fo rthe main

krysgeek's picture

The vhost conf for the main site has the correct SetEnv parameters and mod_env is enabled. I have cleared my cache, refreshed, closed down the browser, restarted apache and still can't get the site to come up. It sounds like what you are describing in that previous comment, but I can't get the variables to load.

Is there anything else I can do?

check that modenv has been enabled

adrian's picture

You need a LoadModule env

line somewhere in your config.

The env module is loaded. We

krysgeek's picture

The env module is loaded. We tested it. Could it be anything else?

Same problem. I've checked my

yajnin's picture

Same problem. I've checked my modules and everything is there as required. Cleared cache. Tested on different browser. Fail.

I had the same problem twice

yajnin's picture

I had the same problem twice (two installs) after some other failed installs.

The one thing I didn't do on this "site off-line" issue was restart the server.

Instead, I reinstalled again, and this time changed the mysql usernames of 'aegir' and 'aegir_root'.

In the end, it's done. And works. Not sure if this info helps someone (way more qualified) troubleshoot this problem, but I hope so!

Still have not been able to fix the problem

krysgeek's picture

I have followed a lot of ideas in the discussions, but am still having the same problem of verifying the import of the initial aegir site. If I replace the settings.php file in the aegir.domainname.com directory with the standard settings.php and the database variables in that file, it works. However, I can't verify a new platform and any site I create, has the same issue. I have to explicitly set the variables in each settings.php file for each site.

I have installed this and reinstalled this several times with different database names, usernames, etc.

Any ideas? Any help would be greatly appreciated. I have been able to get 0.4-alpha3 to work before, and I am seriously considering using that version instead.

Aegir hosting system

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: