need help to install Mercury 1.2

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
feelexit's picture

I have a fresh installed Ubuntu server 10.04. I followed the instruction on this page (https://github.com/pantheon-systems/mercury) to install Mercury. I am not sure which version it is. I am assuming its the latest one (1.2) . here's the instruction

apt-get install git-core
git clone git://github.com/pantheon-systems/mercury.git -b master /opt/pantheon
cd /opt/pantheon
python setup.py
apt-get update
bcfg2 -vqed

I got stuck on this step "python setup.py", here's hte error message I got, searched on google, couldn't find anything, please help me out. (see the error message below)

[localhost] run: apt-get install -y gamin python-gamin python-genshi bcfg2

Fatal error: local() encountered an error (return code 100) while executing 'apt-get install -y gamin python-gamin python-genshi bcfg2'

Aborting

Comments

I think I found the problem

revjtanton's picture

I'm just getting going with this myself but I encountered the same error. What I did was go back and check /etc/apt/apt.conf
It looks like at some point in this script APT::Cache-Limit "20000000"; is set. Now this comes back with errors at 20000000 on a plain-jane Lucid AMI (ami-55dc0b3c) so I set it to 40000000 and then 60000000. If you get this error check your /etc/apt/apt.conf to see what its set at and try setting it higher. The script will add new lines replacing the 20000000 at some point, but you'll seemingly progress more and more each time.

I'm still learning as I go so I hope I'm not sending you in the wrong direction here, this is just what I've found that seems to work for me. Hopefully Pantheon will be ready for public consumption soon...or I get my invite ;) It'd be much more awesome to give Pantheon money rather than struggle with this.

UPDATE
Just changing it once won't help you. the fab/initialization.py is whats changing it back. Change the line 58 to a larger limit.

Did you ever get this to

cvining's picture

Did you ever get this to work? I've tried a couple times, without joy. Even with your edit above I'm getting tons of 'package not installed' errors, and finally setup.py aborts with:

Fatal error: local() encountered an error (return code 127) while executing 'drush dl -y --default-major=6 drush_make'

Aborting.

I'd love to give Mercury a spin tho.

-- Cronin

I got there as well

revjtanton's picture

I got there as well so I went back to the page here and started again http://groups.drupal.org/node/70268
I started with that plain Ubuntu AMI I put in the other post. I knew there wasn't a web server on that instance by default, but considering the number of packages this script takes control of I assumed it installed apache2 and the php modules, but I don't think it does. When you just take the AMI as is and then go step-by-step it fails at the drush section as well, and it says that PHP isn't installed which is why it fails.
I'm still working through this myself. I was hoping that .py script would work out, but it hasn't. It looks like its trying to force D6 also. For what I'm doing I'm trying to optimize this for D7 and use PHP 5.3 instead of 5.2 for certain D7 modules that require PHP 5.3. If I get this working 100% I'll make a public AMI and share it with you if you're using Amazon.

Got a little further

wodenx's picture

On a clean Rackspace lucid install got setup.py to complete without errors using the follwing edits.

diff --git a/fab/initialization.py b/fab/initialization.py
index e5b57bc..427b2c3 100644
--- a/fab/initialization.py
+++ b/fab/initialization.py
@@ -55,7 +55,7 @@ def _initialize_package_manager(server):
             local('cp apt.openssh.pin /etc/apt/preferences.d/openssh')
             local('apt-key add apt.ppakeys.txt')
             local('echo \'APT::Install-Recommends "0";\' >>  /etc/apt/apt.conf')
-            local('echo \'APT::Cache-Limit "20000000";\' >>  /etc/apt/apt.conf')
+            local('echo \'APT::Cache-Limit "40000000";\' >>  /etc/apt/apt.conf')

     elif server.distro == 'centos':
         local('rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/Redhat/' + \
@@ -148,7 +148,7 @@ def _initialize_acl(server):
     """Allow the use of ACLs and ensure they remain after reboot.

     """
-    local('sudo tune2fs -o acl /dev/sda1')
+    local('sudo tune2fs -o acl /dev/xvda1')
     local('sudo mount -o remount,acl /')
     # For after restarts
     local('sudo sed -i "s/noatime /noatime,acl /g" /etc/fstab')
@@ -176,6 +176,6 @@ def _initialize_apache(server):

     """
     if server.distro == 'ubuntu':
-        local('a2dissite default')
+        #local('a2dissite default')
         local('rm -f /etc/apache2/sites-available/default*')
         local('rm -f /var/www/*')

bcfg2 -vqed

With the following error:
Failed to download probes from bcfg2: [Errno 1] _ssl.c:480: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICA
TE:certificate verify failed

Anyone else get past this?

Mercury

Group organizers

Group categories

Post Type

Group notifications

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

Hot content this week