CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Aegir CiviCRM Provisioning
Pages: 1 [2] 3

Author Topic: Aegir CiviCRM Provisioning  (Read 12540 times)

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Aegir CiviCRM Provisioning
January 05, 2011, 04:39:51 am
Great to hear that people are also thinking along these lines.  I will try and muster the troops (and please someone else muster them if i don't :) )
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

jtbayly

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
Re: Aegir CiviCRM Provisioning
January 08, 2011, 11:31:26 am
I'm just wondering what the status is here. In particular, since the "preferred" method of installing CiviCRM is to use a separate database, I was wondering if that is supported yet?

I look forward to using this in the near future.

Thanks,
-Joseph

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
January 09, 2011, 04:14:26 pm
I have made a short screencast to show how Aegir + provision_civicrm works:
http://www.bidon.ca/random/2010-12-30-creating-civicrm-websites-using-aegir-provision

@Joseph : re:status, I use it for a few production sites, but I consider it beta, we haven't done many migrations yet. Right now the priority is on setting up the site key and crons automatically, fix a few issues in how site parameters (URLs/directories) are handled. It would be great if more people were testing it and providing feedback.
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

jtbayly

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
Re: Aegir CiviCRM Provisioning
January 11, 2011, 10:26:04 am
Thanks for the video. I watched it and it was helpful.

I installed and tested the basics. My experience can all be summed up in this bug report:
https://redmine.koumbit.net/issues/2104

I requested an account there to see if I could comment further on that, but haven't been approved. Maybe it's for internal use only.

Anyway, the real show-stopper for me is that last line:
"this provision submodule breaks all other platforms, so it is not possible to install drupal7 (or any other) site on the same Aegir server."

Yikes! Sure enough, I couldn't install another site after my test CiviCRM site. I had to uninstall it since I was doing this test on a production server (shame on me, I know). I'd be happy to continue testing and providing feedback, but I'm not going to be much help on the coding-side.

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
January 11, 2011, 11:17:25 am
@ jtbayly: Thanks for the feedback! Regarding the issue posted by omega8cc, I had difficulty reproducing the errors, so I made a low priority. Did you have an error message when trying to create a new site on another platform?

I approved your account for the Redmine bugtracker. It is a public tracker, only that accounts are moderated, in order to avoid spam. But I guess I should move it to Drupal.org asap.

matt
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

jtbayly

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
Re: Aegir CiviCRM Provisioning
January 11, 2011, 11:23:40 am
Thanks. I'll try to get more details soon and post them in Redmine.

iainH

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
  • CiviCRM version: 3.3
  • CMS version: Drupal
  • MySQL version: 5 (Ver 14.14 Distrib 5.1.41)
  • PHP version: 5.2 (5.2.10-2ubuntu6 with Suhosin-Patch 0.9.7)
Re: Aegir CiviCRM Provisioning
January 29, 2011, 09:41:08 am
I raised a CiviCRM issue before I'd seen this thread ...

Following the instructions on the CiviCRM Wiki:
  • Copy in /var/aegir/.drush/provision_civicrm
  • Create /var/aegir/makefiles/civicrm-6.20-3.3.1-1.0.make
Aegir will create a Platform OK and sync all the files to the (remote) server, but is unable to create a new Site as drush provision-install is unable to find sites:all:modules:civicrm:templates:CRM:common:civicrm.settings.php.tpl ... which is there ... and can't create a settings.php file for the new site. Presumably some path variables not quite right?

The files have been sync'd to the remote server OK so the template is both local to hostmaster and remote on deployment server.

Just fishing to see if anyone's looked at this before I scratch around in the code. Is this related to the reported errors above?

Does the provision_civicrm submodule (still) intervene in all subsequent platform builds as reported elsewhere? i.e. not all Platforms will be CiviCRMs subsequently.
« Last Edit: January 29, 2011, 09:54:20 am by iainH »

jtbayly

  • I post occasionally
  • **
  • Posts: 43
  • Karma: 0
Re: Aegir CiviCRM Provisioning
February 09, 2011, 01:17:00 pm
Hi iainH,

The issue that you mention last (intervening in platform builds) I believe you are talking about this (recently fixed) issue:
https://redmine.koumbit.net/issues/2239

I've also opened an issue for the problem you described above, as I also just ran into it myself. You can find it here:
https://redmine.koumbit.net/issues/2499

-Joseph

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Aegir CiviCRM Provisioning
March 17, 2011, 06:19:26 pm
Hoping someone is still following this...

Just signed up on Koumbit's Redmine site to report issue, but thought I should maybe cross-post here until (if?) I get approved there.

First off, this is wonderful...just what I've been looking for!

I installed the civicrm_provision files to my .drush folder, created a make file per Mathieu's instructions, and verified the platform...great, all went well until I installed a site.

First, there were several deprecated: function ereg() is deprecated in ..... includes\file.inc on line 941, which I fixed according to the posts here: http://drupal.org/node/527548.

Then, when I look at the verify task after fixing that, I got this:

Configuring site for civicrm support
Tarfile unpacked.
Settings file generated: /var/aegir/platforms/prod-drupal-6.20-civi-3.3.5-1.0/sites/demo.civiclix.com/civicrm.settings.php
CiviCRM installed.
Drush command could not be completed.
An error occurred at function : drush_hosting_task
Command dispatch complete

Tried to do the provision from the command line, but didn't see any errors other than something related to civicron user (will re-run and paste error if necessary...).

During the install, I do get the email login link from Aegir, but - of course - can'l login because the verify failed; HOWEVER, I noticed that the 'enable' link was available in Aegir, so I tried it and - lo and behold - it enables fine and I can log in.

Now here's the real problem...CiviCRM looks to be installed, but is not enabled...when I enable it, I get the WSoD...nothing. I can click my browser's back button, disable it, and the site is available again.

Can anyone point me in the right direction??? This is fantastic, and I'm happy to test this out and help troubleshoot in any way I can...

Thanks in advance!

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
March 17, 2011, 08:20:52 pm
Hi,

Thanks for testing and reporting the issue!

I have tested on my local dev server, and realized that I was using Drush 3.3 on that server, which is the default version in Debian Squeeze, whereas my laptop has 4.x (Debian unstable).

If that's also the case for you, it may have had a bug when it tries to create the civicron user. However, it doesn't explain the WSoD afterwards.

Otherwise, here is how to run it manually in order to debug:
* create the new site from the Aegir web front end
* get the node ID of the task, by hovering the "view" link for the install task
* go to a shell, and either su or sudo to the aegir user: "su -s /bin/sh aegir" or "sudo -i -u aegir" (but your aegir user will need a valid shell, such as /bin/sh, and you will need to configure sudo, see an exemple here: https://wiki.koumbit.net/FormationAegir#Installing_Aegir)
* run the command:  "drush @hostmaster hosting-task 123 --debug"  <- where 123 is your node id of the install task

This will provide you with a very detailed log, that you can post to a pastebin.

For the WSoD, you will have to configure PHP so that it displays errors. Have you successfully installed CiviCRM manually? It may simply be running out of memory. If I recall correctly, the default Debian configuration limits the maximum memory. Here is how to increase it: http://community.aegirproject.org/node/393

Finally, a quick note on reporting issues:

A project space is now available on drupal.org: http://drupal.org/project/provision_civicrm 
It is the best place to report issues, and I will start making stable releases (although I have to admit the code is still missing some elements so that it is usable for the general public, but I will open issues for what's missing).

matt / bgm
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Aegir CiviCRM Provisioning
March 18, 2011, 06:22:38 am
Thanks, Matt...

Trying to clean up my Aegir system to re-run everything and troubleshoot as you instructed, but running into another interesting problem...

In trying to disable/delete old testing sites, the cron task never seems to complete...the disable tasks are in the queue, but never get processed. Crontab seems to be configured properly, and I've never had a problem before, although I did read a post somewhere about errors with civicrm_provision preventing the install of other new sites. Haven't experienced that (that's why I installed the site I'm now trying to delete - to make sure I could still provision other sites...), but it's strange that the disable tasks never seem to run.

Will try to work through this issue, but thought I should give you some background on my environment:

OS: Ubuntu 10.04
Drush Version 4.1 (installed server-wide per this post: http://openspring.net/tip/how-to-install-drush-serverwide-in-less-than-one-minute).
Aegir Version 0.4-beta2
Latest version of Civicrm_Provision
PHP.ini Memory Limits set to 192MB in /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini

Unfortunately, my Aegir system is pretty messy...I've been doing lots of testing, and adding/deleting sites for weeks; Aegir isn't that great about cleanup, I've noticed :-( , so I'm trying to manually get it back to a semi-pristine state before working through this new issue.

Thanks for your help...will post issue where you suggested, once I can get to the point where I can reliably run the task manually.

« Last Edit: March 18, 2011, 07:37:17 am by hp3kman »

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aegir CiviCRM Provisioning
March 18, 2011, 07:47:09 am
If you have any issues with the Aegir cron, you can run tasks manually using:

drush @hostmaster hosting-task 123 --debug

(where 123 is the node ID associated to the task, and you must run it under the aegir user)

About cleaning up, it's true that when the installation has failed, it oftens leaves a site in a weird state, hard to delete. For hints on how to delete the site, there is a section "manually deleting sites" in this page: http://community.aegirproject.org/node/26

matt
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Aegir CiviCRM Provisioning
March 18, 2011, 08:19:50 am
Thanks again, Matt...

Funny...can manually disable no problem, no errors; just hangs up in Aegir frontend. Where should I post that issue...?

Yes, I've had to delete sites manually before...will clean everything up before we get back to my initial issue.

I did notice that I had memory errors in my php logs...need I up the limit past 192??? That seems pretty high, but I know in previous manual installs of CiviCRM, it's a common problem.


hp3kman

  • I post occasionally
  • **
  • Posts: 74
  • Karma: 4
Re: Aegir CiviCRM Provisioning
March 18, 2011, 09:01:22 am
Provisioned new site, install failed. As I indicated before, even though it fails, if I enable it, I can get into the site, but CiviCRM is not enabled, so I assume that's where it's bombing out.

Ran install task manually using command: drush @hostmaster hosting-task 1215 --debug

Error at http://pastebin.com/7TJ2arFt

Thanks for your help!

JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Aegir CiviCRM Provisioning
April 04, 2011, 06:12:40 pm
I'm interested in this Aegir/Drush/CiviCRM provisioning as well and may have some time to devote it in coming months.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

Pages: 1 [2] 3
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Aegir CiviCRM Provisioning

This forum was archived on 2017-11-26.