Closed (won't fix)
Project:
Provision
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jul 2011 at 17:16 UTC
Updated:
25 Apr 2015 at 16:28 UTC
Jump to comment: Most recent
First running Aegir 1.2/ hostmaster-6.x-1.2 on Debian GNU/Linux 5.0 2.6.26-2-amd64
$ php -v
PHP 5.2.17-0.dotdeb.0 with Suhosin-Patch 0.9.7 (cli) (built: Jan 7 2011 07:47:48)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
Trying to provision D7 sites results in this:
The command could not be executed successfully (returned: sh: line 1: 26994 Segmentation fault /var/aegir/drush/drush.php --client_email='example@server.com' @new_site.example.com provision-install-backend --backend 2>&1 , code: 139)
[4:40pm]
I seem to be able to get around this with these steps in Drush:
/var/aegir/drush/drush.php @new_site.example.com provison-install
/var/aegir/drush/drush.php @new_site.example.com provison-enable
Then I have to drush sql-cli and Update the email address in the users table manually.
UPDATE users SET mail ='something@somewhere.net' WHERE uid =1;
Then in the Aegir Front End I have to delete the site node at node[nid]/delete, re-verify the platform and queue up a regeneration of the login link for the new site.
I have found one other report of this same problem here: http://drupal.org/node/784860#comment-4784516
Comments
Comment #0.0
ghankstef commentedredacted actual web URIS
Comment #1
cknoebel commentedI think I'm seeing it also on Aegir 1.1 (using Ubuntu 8.04).
I successfully created a D7 platform. I then create a site, which fails. The error message I get is: "The command could not be executed successfully (returned: Segmentation fault , code: 139)." The next line starts off with: "Drush was not able to start (bootstrap) the Drupal database." I try to delete the site using a delete task, which also fails telling me it's "unable to drop the database." All this is done through the Aegir front end.
Looking under the hood a bit, there is a .drush alias, there is a platform/drupal/sites/site_name/settings.php but it's otherwise empty, and the clients/admin alias, vhost files and database aren't there.
This is my first D7 site (using Drupal 7.7). I can create a D6 site just fine.
Comment #2
Anonymous (not verified) commentedThis is 99% of the time because your memory_limit is not set high enough in /etc/php5/cli/php.ini and PHP bails. Drupal 7 (and various distributions like OpenAtrium) are especially prone because they are more memory intensive than Drupal5/6.
Can you confirm what your memory_limit is? I recommend 192M to 256M for best results
Comment #3
ghankstef commentedMemory limit:
$ php -i | grep memory_limit
memory_limit => 512M => 512M
/admin/reports/status
PHP memory limit 512M
Not sure if we are concerned with CLI php or Apache/php but both are at 512M
Comment #4
ghankstef commentedI have also tried increasing PHP memory to 768M and then to 1024 (both CLI and Apache2) and still get the same result/error.
Comment #5
cknoebel commentedI'm still experiencing this issue.
I rebooted the server thinking the server troll prevented my php-cli change from taking. That didn't work. I then increased /etc/php5/cli/php.ini to 256MB and /etc/php5/apache2/php.ini to 192MB. It choked again at the point I mentioned in #1. I then created a completely new site on a new platform (this time using D7.0). Again choked. I increased /etc/php5/apache2/php.ini to 256MB so it matched the php-cli memory limit. Choke. When I look in the task transcript, the highest "peak memory usage" was 17.03 MB.
My D6 platform installs the site without incident.
Comment #6
anarcat commentedCan we get a traceback with --debug?
Comment #7
butler360 commentedSame issue.
How do I do what you are asking?
Comment #8
anarcat commentedYou can copy-paste the log from the "view" button in the task, or run the task with:
where is the node id of the task.
Comment #9
butler360 commentedThank you. I have sent the logs to you in a PM.
Comment #10
cknoebel commentedMy thanks also. I sent my logs to you by PM.
Comment #11
butler360 commentedWere the logs received?
Comment #12
steven jones commentedAnarcat is on Holiday until the start of Oct, so you're unlikely to get a response until then, sorry!
Comment #13
anarcat commentedWhy you guys sent me this in private is beyond me. This is an open source project, you are going to have much better luck in publishing them publicly than relying on my personal expertise, as this long delay has proven. :)
I'll see if I have time to look at this this week.
Comment #14
cknoebel commentedI felt there was client info in the transcript I didn't want to publicize.
Comment #15
anarcat commentedYou seem to be having almost exactly the same problem. The fact that PHP is segfaulting is a really good sign that something is very wrong, even outside of aegir.
I have seen such problems with PHP 5.2.17-0.dotdeb.0 on Debian. Upgrading to PHP 5.3 has fixed the problem for us. What version of PHP are you running?
To confirm it is the same problem, try running the install under "strace", you should see something like this:
... basically, PHP 5.2.17 doesn't like system.mail.inc, in particular that function:
... of which you can try to comment out the three assignations, which got rid of the segfault for us (but broke mail sending, obviously, and may even be a security vulnerability).
So I suspect the problem is outside the scope of Aegir. Try to upgrade PHP.
See also #864940: WSOD - No errors logged..
Comment #16
ghankstef commentedJust wanted to confirm that updating to php 5.3 resolved the issued for us.
Comment #17
cknoebel commentedThanks for looking at this. I was sidetracked for a while on a different issue that has some relevance here for me: I found I can't upgrade php to 5.3 at the moment (currently using 5.2.13-0.dotdeb.0). I forget exactly why now, but it had something to do with depreciated functions in 5.3 that caused some of my D6 modules to throw errors.
I may not be stuck, though. Anarcat's post got me thinking. I created a barebones test site in D6.22 and migrated it to a D7.7 platform. It mostly worked. I got an error on the upgraded site (Undefined index: distribution_name in drupal_install_profile_distribution_name()). These discussions led me to a workaround:
http://drupal.org/node/1170362
http://drupal.org/node/1170360
I can't say it's resolved me, but if it works it works.
Comment #18
nicholas.alipaz commentedThis seems pretty consistent with a number of people receiving the issue. I don't see how this can't be solved in Aegir. PHP 5.2 seems to have the issue, I too encountered it on D7 sites. It should be reproduced on most debian based php 5.2 servers.
Comment #19
nicholas.alipaz commentedHere are the errors I received, even changed cli php.ini and apache php.ini to 512M then restarted apache:
Comment #20
nicholas.alipaz commentedI also tried verifying my platform again and saw this in the log:
don't know if that might be an issue or not.
Comment #21
lsolesen commentedHaving the same problem, but with a newer php version (on Ubuntu server):
Comment #22
mrfelton commentedSame or similar issue for me:
Memory limit is 512M and it never gets anywhere near to using all of that.
Comment #23
steven jones commentedCan people still reproduce this issue?
Comment #24
nicholas.alipaz commentedI was definitely able to on PHP 5.2, I upgraded my server to 5.3 and now everything seems fine.
Comment #24.0
nicholas.alipaz commentedadding php cli version
Comment #25
ergonlogicThe 1.x branch is deprecated. If this remains an issue in 3.x, feel free to re-open.