Upgrade Your Drupal Skills

We trained 1,000+ Drupal Developers over the last decade.

See Advanced Courses NAH, I know Enough

Issues when Upgradeing to Aegir Alpha 14

Parent Feed: 

I just upgraded 2 of my systems to alpha 14 and here are a couple of things I stumbled with:

Rename your vhost.conf files

I copied my old vhost files from ~/config/vhost.d to ~/config/server_master/apache/vhost.d.  I'm not sure if I was suposed to do that or if I was to reverify all the platforms and it would maybe recreate them in the right place... I dont know.  But my way worked.

Since all the new sites come in as mysite.com rather than mysite.com_80 (old way), I wanted to rename everything so it looked the same.  I ran this command

rename "s/_80*//g" *

That removed all the "_80"s off the ends of the files.

Mysql stuff

GRANT ALL ON *.* to 'aegir_root'@$AEGIR_HOST IDENTIFIED BY 'xxxx' WITH GRANT OPTION;

This part confused the crap out of me since I've never really done any multi-server mysql crap.  Basically you need to replace the $AEGIR_HOST with every host and/or ip that you want to have access to mysql.  Note the xxxx is where your password should go that you want people to use to login to aegir_root.

Here is an example,  I have server1 and server2.  Server1 will be my main server and I will add server2's info to aegir on server2.  For server1 to access the mysql stuff on itself I need to add:

GRANT ALL ON *.* to 'aegir_root'@server1.mysite.com IDENTIFIED BY 'mYcrAzypassword' WITH GRANT OPTION;

(could have used the ip of server1 instead of the domain name)

On server2 I need to to the above for itself and for server1 to have access:

Give server2 self access

GRANT ALL ON *.* to 'aegir_root'@server2.mysite.com IDENTIFIED BY 'mYcrAzypassword' WITH GRANT OPTION;

Give server1 access...

I used the ip for this because mysql on server2 was resolving to the linode domain not all the way to my domain... weird but easily fixed just by using the ip.

GRANT ALL ON *.* to 'aegir_root'@64.255.255.1 IDENTIFIED BY 'mYcrAzypassword' WITH GRANT OPTION;

Aegir multiserver SSH stuff

Follow the instructions on "lesson 3" here: http://groups.drupal.org/node/90564

Also you will need to make sure that user "aegir" has a shell.  Normal install of aegir gives you a user with a shell of /bin/false...  we want it to be either /bin/sh or /bin/bash.  Login with root and run:

chsh -s /bin/bash aegir

Reverify stuff before migrating or cloning

Also, I had to re-verify sites before I could migrate or clone it.  Otherwhise I would get an error like:

Author: 
Original Post: 

About Drupal Sun

Drupal Sun is an Evolving Web project. It allows you to:

  • Do full-text search on all the articles in Drupal Planet (thanks to Apache Solr)
  • Facet based on tags, author, or feed
  • Flip through articles quickly (with j/k or arrow keys) to find what you're interested in
  • View the entire article text inline, or in the context of the site where it was created

See the blog post at Evolving Web

Evolving Web