Minor problems with Aegir install

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

Hi all,

I'm running into a couple problems with my Aegir install.

My (CentOS 5.4) installation seems to have gone as planned:

Do you want to proceed with the install? [Y/n] y
==> Creating basic directory structure
==> Drush found in /var/aegir/drush/drush.php, good
==> Drush seems to be functionning properly
==> Drush make already seems to be installed
==> Provision already seems to be installed
==> Install process complete: follow the wizard
Now point your browser to http://aegir.bitworkz.com/install.php and proceed
with the remainder of the installation using the Hostmaster Install profile.
Some of the instructions given, you will already have completed, but carefully
read each step in turn to ensure you don't miss anything.

1) but after running install.sh.txt and restarting Apache, I'm getting this error:

[aegir@aegir ~]$ sudo su -
Password: 
[root@aegir ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: Warning: DocumentRoot [/var/aegir/drupal-6.x] does not exist
                                                           [  OK  ]
[root@aegir ~]# 

2) I'm looking at the Checkpoint! section of install.txt and notice that:
a) there is no /var/aegir/drupal.... on the checklist (should a copy of Drupal been placed in my Aegir directory?)
b) the checklist says there should be files in the /hostmaster-0.x/profiles/ folder (I'm just seeing a default folder).

I did use instructions from the CentOS_hints file where appropriate.

Thanks,
Kevin

Comments

Make sure you're using the latest version

aaronbauman's picture

You must have an older version of INSTALL.txt
Check out this version from CVS that clearly lists the steps to install drupal, hostmaster and related profiles, and includes the following at the checkpoint:

 /var/aegir/drupal-6.x
 /var/aegir/drupal-6.x/profiles/hostmaster
 /var/aegir/drupal-6.x/profiles/hostmaster/modules/hosting
 /var/aegir/drupal-6.x/profiles/hostmaster/modules/install_profile_api
 /var/aegir/drupal-6.x/profiles/hostmaster/themes/eldir
 /var/aegir/drupal-6.x/sites/aegir.example.com
 /var/aegir/config/vhost.d
 /var/aegir/backups
 /var/aegir/drush/drush.php
 /var/aegir/.drush/provision

Requirements problem

kmillecam's picture

@aaronbauman, thanks for the direction. I removed my previous installation and followed the new installation instructions you provided.

Now when I try to run the hostmaster iinstaller, I'm faced with this error message.

Requirements problem
The following errors must be resolved before you can continue the installation process:

* The jquery_ui module is required but was not found. Please move it into the modules subdirectory.
* The modalframe module is required but was not found. Please move it into the modules subdirectory.

I didn't see anything in the instructions that mention these modules.

Also, I'm not sure which "modules" subdirectory these modules should be placed in. (I've tried /var/aegir/drupal-6.15/profiles/hostmaster/modules) but the error message persists.

Thanks,
Kevin

put them in

aaronbauman's picture

put them in sites/example.com/modules -- replace example.com with the url where you're installing aegir.

ps. make sure you read the

aaronbauman's picture

ps. make sure you read the readme for jquery_ui - you have to download the jquery.ui package separately

never put modules in your sites directory

adrian's picture

when installing hostmaster or aegir.

it has been DESIGNED that the files MUST be in your profiles folder.

you did not run drush make, or there was an error running drush make.

when you run drush.php hostmaster make /var/aegir/hostmaster-0.4-alpha3 , it will download all the components you need.

adrian: using

aaronbauman's picture

adrian:
using hostmaster-0.4-alpha3 from CVS I experienced the exact same behavior and solved it using the steps I suggested above (I may have put them in sites/all -- don't remember at this point).

There is no mention of running drush make in the install file file, which I followed to a tee. My install is working fine now, but... halp?

the issue is during upgrades

adrian's picture

anything in sites/$sitename will migrate along with the site when it is being upgraded.

so if you have the old version of hostmaster's dependencies in there it will move along to the new release and override the newer code. causing an unholy catastrophe.

sites/all is only barely better, but it also means that any site you provision on the platform can go enable the hostmaster modules and break their sites horribly (because hosting is not designed to be used outside of hostmaster).

adrian: This is good to

aaronbauman's picture

adrian:
This is good to know.
I'm still feeling my way around this complex and powerful system, mostly by trial and error.
Thanks for your help and your work on this framework.
This is exciting stuff!

Another attempt

kmillecam's picture

Okay, I've started over again.

I was confused by the different installation instructions (links to two versions are posted in previous comments).

So, I deleted all of the directories in my /var/aegir directory except for drush/ (which I know was installed and is working properly).

[root@aegir aegir]# ls
drush  install.sh.txt

Then I followed the instructions in the CVS version of INSTALL.txt (http://drupalcode.org/viewvc/drupal/contributions/profiles/hostmaster/IN...)

I wanted to make sure I used the install.sh.txt script that was written for this version of Aegir so I followed the link in the above INSTALL.txt to grab the appropriate version of install.sh.txt (http://drupalcode.org/viewvc/drupal/contributions/profiles/hostmaster/in...)

I changed the AEGIR_DOMAIN and WEB_GROUP (for CentOS) variables in install.sh.txt:

AEGIR_DOMAIN=aegir.bitworkz.com 
AEGIR_VERSION=6.x-0.4-alpha3
AEGIR_HOME=$HOME
WEB_GROUP=apache
DRUSH="$AEGIR_HOME/drush/drush.php"
DRUSH_VERSION=All-Versions-2.1

Then, I logged in as root and followed the instructions to run install.sh.txt but, as you can see, I still ran into errors.

[root@aegir aegir]# su -s /bin/sh aegir -c "sh install.sh.txt"
==> Aegir automated install script
==> This script makes the following assumptions: 
 * you have read INSTALL.txt and prepared the platform accordingly
 * you are running as your "aegir" user
 * the following settings are correct:
AEGIR_DOMAIN=aegir.bitworkz.com
AEGIR_VERSION=6.x-0.4-alpha3
AEGIR_HOME=/var/aegir
WEB_GROUP=apache
HOSTMASTER_DIR=/var/aegir/hostmaster-6.x-0.4-alpha3
DRUSH=/var/aegir/drush/drush.php
DRUSH_VERSION=All-Versions-2.1
Do you want to proceed with the install? [Y/n] y
==> Creating basic directory structure
==> Drush found in /var/aegir/drush/drush.php, good
==> Drush seems to be functionning properly
==> Drush make already seems to be installed
==> Provision already seems to be installed
==> Deploying hostmaster application
Project information for drupal retrieved.                            [ok]
drupal downloaded from                                               [ok]
http://ftp.drupal.org/files/projects/drupal-6.15.tar.gz.
Unable to export hostmaster from                                     [error]
pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib
contributions/profiles/hostmaster.
An error occurred at function : drush_drush_make_make                [error]
An error occurred at function : drush_provision_hostmaster_make      [error]

Can anyone see what I'm doing wrong?

Thanks again,
Kevin

Partial Build

kmillecam's picture

Examining my directory structure, install.sh.txt did create the necessary directories and downloaded the hostmaster files.

<

pre>
[root@aegir aegir]# ls -l
total 24
drwx------ 2 aegir apache 4096 Jan 22 07:51 backups
drwx--x--x 3 aegir apache 4096 Jan 22 07:51 config
drwxr-xr-x 4 aegir apache 4096 Jan 21 11:17 drush
drwxr-xr-x 9 aegir apache 4096 Dec 16 13:55 hostmaster-6.x-0.4-alpha3
-rw-r--r-- 1 aegir apache 5567 Jan 22 07:49 install.sh.txt
[root@aegir aegir]# cd hostmaster-6.x-0.4-alpha3/
[root@aegir hostmaster-6.x-0.4-alpha3]# ls -l
total 224
-rw-r--r-- 1 aegir apache 43360 Dec 16 13:47 CHANGELOG.txt
-rw-r--r-- 1 aegir apache 988 Sep 14 06:50 COPYRIGHT.txt
-rw-r--r-- 1 aegir apache 262 Aug 9 2006 cron.php
drwxr-xr-x 2 aegir apache 4096 Dec 16 13:55 includes
-rw-r--r-- 1 aegir apache 980 Dec 26 2007 index.php
-rw-r--r-- 1 aegir apache 1308 Nov 19 2007 INSTALL.mysql.txt
-rw-r--r-- 1 aegir apache 1075 Nov 26 2007 INSTALL.pgsql.txt
-rw-r--r-- 1 aegir apache 46926 Apr 27 2009 install.php
-rw-r--r-- 1 aegir apache 15646 Jul 9 2008 INSTALL.txt
-rw-r--r-- 1 aegir apache 18048 Jan 6 2009 LICENSE.txt
-rw-r--r-- 1 aegir apache 1924 Apr 29 2009 MAINTAINERS.txt
drwxr-xr-x 3 aegir apache 4096 Dec 16 13:55 misc
drwxr-xr-x 35 aegir apache 4096 Dec 16 13:55 modules
drwxr-xr-x 3 aegir apache 4096 Dec 16 13:55 profiles
-rw-r--r-- 1 aegir apache 1590 Dec 10 2008 robots.txt
drwxr-xr-x 2 aegir apache 4096 Dec 16 13:55 scripts
drwxr-xr-x 4 aegir apache 4096 Dec 16 13:55 sites
drwxr-xr-x 7 aegir apache 4096 Dec 16 13:55 themes
-rw-r--r-- 1 aegir apache 25457 Mar 30 2009 update.php
-rw-r--r-- 1 aegir apache 5002 Jan 4 2008 UPGRADE.txt
-rw-r--r-- 1 aegir apache 352 Dec 10 2005 xmlrpc.php
[root@aegir hostmaster-6.x-0.4-alpha3]#

CentOS HINTS

kmillecam's picture

The CentOS HINTS sheet uses a slightly different syntax for running install.sh.txt so I tried that but ended up with the same result:

[root@aegir aegir]# su aegir -c "sh install.sh.txt -w apache"
==> Aegir automated install script
==> This script makes the following assumptions: 
 * you have read INSTALL.txt and prepared the platform accordingly
 * you are running as your "aegir" user
 * the following settings are correct:
AEGIR_DOMAIN=aegir.bitworkz.com
AEGIR_VERSION=6.x-0.4-alpha3
AEGIR_HOME=/var/aegir
WEB_GROUP=apache
HOSTMASTER_DIR=/var/aegir/hostmaster-6.x-0.4-alpha3
DRUSH=/var/aegir/drush/drush.php
DRUSH_VERSION=All-Versions-2.1
Do you want to proceed with the install? [Y/n] y
==> Creating basic directory structure
==> Drush found in /var/aegir/drush/drush.php, good
==> Drush seems to be functionning properly
==> Drush make already seems to be installed
==> Provision already seems to be installed
==> Deploying hostmaster application
Project information for drupal retrieved.                            [ok]
drupal downloaded from                                               [ok]
http://ftp.drupal.org/files/projects/drupal-6.15.tar.gz.
Unable to export hostmaster from                                     [error]
pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib
contributions/profiles/hostmaster.
An error occurred at function : drush_drush_make_make                [error]
An error occurred at function : drush_provision_hostmaster_make      [error]
[root@aegir aegir]# 

Troubleshooting

kmillecam's picture

I traced install.sh.txt to a point that it seemed to be failing and tried the drush make command from the command line:

[aegir@aegir ~]$ export DRUSH=/var/aegir/drush/drush.php
[aegir@aegir ~]$ $DRUSH hostmaster make /var/aegir/hostmaster-6.x-0.4-alpha3
/var/aegir/drush/drush.php: line 1: ?php: No such file or directory
/var/aegir/drush/drush.php: line 2: //: is a directory
/var/aegir/drush/drush.php: line 4: /bin: is a directory
/var/aegir/drush/drush.php: line 5: backups: command not found
/var/aegir/drush/drush.php: line 6: backups: command not found
/var/aegir/drush/drush.php: line 7: backups: command not found
/var/aegir/drush/drush.php: line 8: backups: command not found
/var/aegir/drush/drush.php: line 9: backups/: is a directory
/var/aegir/drush/drush.php: line 11: //: is a directory
/var/aegir/drush/drush.php: line 12: syntax error near unexpected token `)'
/var/aegir/drush/drush.php: line 12: `if (!drush_verify_cli()) {'
[aegir@aegir ~]$

Not sure this helps diagnose the problem but I thought I would post it just in case it does.

Hi, You are basically coming

mig5's picture

Hi,

You are basically coming across every 'dependency hell' issue that I wrote about in the FAQ.

Please use the instructions there and see if they help you. some of these issues are due to not Aegir, but other tools like Drush and Drush Make which are changing all the time.

Making Progress

kmillecam's picture

Looks like I'm missing php5-cli: http://drupal.org/node/395878

Thanks mig5

kmillecam's picture

Am reading the faq now.

This section "Problem: Drush Make and 'unable to export hostmaster" will probably work wonders for me.

Resolved

kmillecam's picture

Thanks mig5,

Your FAQ saved the day.
I'm up and running now!

WooHoo!

Aegir hosting system

Group organizers

Group categories

Group notifications

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