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) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • drush causing error - anyone else having this?
Pages: [1]

Author Topic: drush causing error - anyone else having this?  (Read 1281 times)

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
drush causing error - anyone else having this?
March 08, 2010, 05:33:02 pm
A bit hard to tell what is going on so here is the command line and output. Couple of quick notes. It is a multisite install. I have the current civicrm installed as well.

Code: [Select]
drush --uri=http://example.com cache-clear
results in...

Code: [Select]
Fatal error: Allowed memory size of 100663296 bytes exhausted (tried to allocate 64 bytes) in /home/mydir/public_html/livesites/sites/all/modules/civicrm/packages/PEAR.php on line 872
Drush command could not be completed.   

So with an allowed memory size error my first thought would be to just complain to my host. However, the odd reference to PEAR.php under the modules/civicrm threw me off. Any thoughts on why drush would be trying to run code from PEAR.php here?

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Re: drush causing error - anyone else having this?
March 08, 2010, 05:34:56 pm
By the way, I originally posted it in the drush issue queue, but it was closed there since the error reference is to something in civi...

http://drupal.org/node/736682

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: drush causing error - anyone else having this?
March 09, 2010, 02:11:42 am
Can you show what your script does for cache-clear.

Also you might want to increase PHP memory limit and check.
This might be of help to you - http://agaric.com/note/upping-memory-command-line-php-memory-limits-so-you-can-use-drush.
« Last Edit: March 09, 2010, 10:47:56 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Re: drush causing error - anyone else having this?
March 09, 2010, 06:35:23 pm
Hi, so 96mb isn't enough for a lowly drupal cache clear!  Ouch.  Don't think my host will up it for command line php.

Oh, note that drush cache-clear is the updated syntax with the latest drush beta version.  They've changed the name of some of the built in drush commands.  This is just a simple cache clear operation.

I'm checking on a couple of things that may be host specific on this.  I also stumbled across this thread which may be related...

http://forum.civicrm.org/index.php/topic,10404.0.html

pdowling

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 4
Re: drush causing error - anyone else having this?
March 09, 2010, 06:43:22 pm
Whee, figured it out - and fortunately it is a host specific quirk!

So if anyone stumbles on this thread the problem is specific to hotdrupal hosted sites.  instead of using "localhost" in your CIVICRM_UF_DSN you need to put 127.0.0.1

Cheers.

- Peter

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • drush causing error - anyone else having this?

This forum was archived on 2017-11-26.