With php 5.3.15 or php 5.4

need to apply the following patch to your drupal platform:
http://drupal.org/node/1671200#comment-6288204

If I'm using 2.x here is the output from running the syslog test:

17 passes, 0 fails, 1 exception, and 5 debug messages
Hide Syslog functionality
Test syslog settings.
17 passes, 0 fails, 1 exception, and 5 debug messages
Message	Group	Filename	Line	Function	Status
Message	Group	Filename	Line	Function	Status
Enabled modules: syslog	Other	syslog.test	21	SyslogTestCase->setUp()	Pass
Created role of name: g9tYxyH7, id: 4	Role	syslog.test	28	SyslogTestCase->testSettings()	Pass
Created permissions: administer site configuration	Role	syslog.test	28	SyslogTestCase->testSettings()	Pass
User created with name fpSBvYzm and pass mfyNVWrUec	User login	syslog.test	28	SyslogTestCase->testSettings()	Pass
Undefined property: SyslogTestCase::$public_files_directory	Notice	drupal_web_test_case.php	1570	DrupalWebTestCase->curlInitialize()	Exception
GET http://d7dev.ld/?q=user returned 200 (6.98 KB).	Browser	syslog.test	29	SyslogTestCase->testSettings()	Pass
Valid HTML found on "http://d7dev.ld/?q=user"	Browser	syslog.test	29	SyslogTestCase->testSettings()	Pass
Verbose message	Debug	syslog.test	29	SyslogTestCase->testSettings()	Debug
GET http://d7dev.ld/user/2 returned 200 (6.45 KB).	Browser	syslog.test	29	SyslogTestCase->testSettings()	Pass
Valid HTML found on "http://d7dev.ld/user/2"	Browser	syslog.test	29	SyslogTestCase->testSettings()	Pass
Verbose message	Debug	syslog.test	29	SyslogTestCase->testSettings()	Debug
User fpSBvYzm successfully logged in.	User login	syslog.test	29	SyslogTestCase->testSettings()	Pass
GET http://d7dev.ld/?q=admin/config/development/logging returned 200 (10.8 KB).	Browser	syslog.test	34	SyslogTestCase->testSettings()	Pass
Valid HTML found on "http://d7dev.ld/?q=admin/config/development/logging"	Browser	syslog.test	34	SyslogTestCase->testSettings()	Pass
Verbose message	Debug	syslog.test	34	SyslogTestCase->testSettings()	Debug
GET http://d7dev.ld/admin/config/development/logging returned 200 (11.04 KB).	Browser	syslog.test	34	SyslogTestCase->testSettings()	Pass
Valid HTML found on "http://d7dev.ld/admin/config/development/logging"	Browser	syslog.test	34	SyslogTestCase->testSettings()	Pass
Verbose message	Debug	syslog.test	34	SyslogTestCase->testSettings()	Debug
"The configuration options have been saved." found	Other	syslog.test	35	SyslogTestCase->testSettings()	Pass
GET http://d7dev.ld/?q=admin/config/development/logging returned 200 (10.8 KB).	Browser	syslog.test	37	SyslogTestCase->testSettings()	Pass
Valid HTML found on "http://d7dev.ld/?q=admin/config/development/logging"	Browser	syslog.test	37	SyslogTestCase->testSettings()	Pass
Verbose message	Debug	syslog.test	37	SyslogTestCase->testSettings()	Debug
Facility value saved.	Other	syslog.test	40	SyslogTestCase->testSettings()	Pass

With 1.x running the same test:

RESULTS
17 passes, 0 fails, 0 exceptions, and 5 debug messages
HIDESYSLOG FUNCTIONALITY
Test syslog settings.
17 passes, 0 fails, 0 exceptions, and 5 debug messages
MESSAGE	GROUP	FILENAME	LINE	FUNCTION	STATUS
MESSAGE	GROUP	FILENAME	LINE	FUNCTION	STATUS
Enabled modules: syslog	Other	syslog.test	21	SyslogTestCase->setUp()	
Created role of name: tdqkW9vZ, id: 4	Role	syslog.test	28	SyslogTestCase->testSettings()	
Created permissions: administer site configuration	Role	syslog.test	28	SyslogTestCase->testSettings()	
User created with name z9JZxy9P and pass 3N9V58nUmt	User login	syslog.test	28	SyslogTestCase->testSettings()	
GET http://test.ld/user returned 200 (6.96 KB).	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Valid HTML found on "http://test.ld/user"	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	29	SyslogTestCase->testSettings()	
GET http://test.ld/user/2 returned 200 (6.43 KB).	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Valid HTML found on "http://test.ld/user/2"	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	29	SyslogTestCase->testSettings()	
User z9JZxy9P successfully logged in.	User login	syslog.test	29	SyslogTestCase->testSettings()	
GET http://test.ld/admin/config/development/logging returned 200 (10.78 KB).	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Valid HTML found on "http://test.ld/admin/config/development/logging"	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	34	SyslogTestCase->testSettings()	
GET http://test.ld/admin/config/development/logging returned 200 (11.01 KB).	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Valid HTML found on "http://test.ld/admin/config/development/logging"	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	34	SyslogTestCase->testSettings()	
"The configuration options have been saved." found	Other	syslog.test	35	SyslogTestCase->testSettings()	
GET http://test.ld/admin/config/development/logging returned 200 (10.78 KB).	Browser	syslog.test	37	SyslogTestCase->testSettings()	
Valid HTML found on "http://test.ld/admin/config/development/logging"	Browser	syslog.test	37	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	37	SyslogTestCase->testSettings()	
Facility value saved.	Other	syslog.test	40	SyslogTestCase->testSettings()	
Files: 
CommentFileSizeAuthor
#12 test_results_d7_boa.jpg254.45 KBomega8cc

Comments

realityloop’s picture

Title:Tests throw exceptions when hostmaster 6.x-1.x passes» Tests throw exceptions that hostmaster 6.x-1.x passes
Steven Jones’s picture

Status:Active» Postponed (maintainer needs more info)

What is the command you're running is each case to run the test suite?

realityloop’s picture

Status:Postponed (maintainer needs more info)» Active

triggering tests using the testing module in Drupal core

alberto56’s picture

Hi,

Can you please confirm the exact steps to reproducing the bug?

(1) start with a 1.x installation of Aegir
(2) Upgrade aegir (using these instructions?)
(3) install a platform with v. 7.15 of Drupal.
(4) provision a D7 site
(5) enable simpletest on the D7 site just provisioned.
(6) run the test for syslog

Thanks,

Albert.

Steven Jones’s picture

Status:Active» Closed (cannot reproduce)

I can't reproduce these test failures running the latest version of 6.x-2.x of provision.

I'm not sure what would cause these issues, but maybe there was an issue with your setup on the 2.x machine?

Deciphered’s picture

Status:Closed (cannot reproduce)» Postponed (maintainer needs more info)

I'm re-opening this because I also experience this issue, and I'll set it to postponed until I can do some digging and confirm whether or not its a setup or Aegir issue.

Steven Jones’s picture

Is this using nginx?

Deciphered’s picture

Indeed it is, more to the point it's running the the process as described at: http://realityloop.com/blog/2012/07/03/nginx-mariadb-php-aegir-mac-os-x-...

About to start digging to see if I can come up with a rough idea of what the cause is.

Deciphered’s picture

So I've started debugging, with my first course of action being to determine if the Aegir Nginx configuration was blocking anything it should be, but I got the config file stripped back to the bare minimum (not blocking anything, passing all requests through) and I'm still gett issues.

More information on what the issues is itself, the GET requests during SimpleTest are returning 1 byte files, which is clearly not the expected behaviour.

Will keep digging and see if I can narrow down anything else.

Deciphered’s picture

More debugging, I've tracked down the line of code in SimpleTest (modules/simpletest/drupal_web_test_case.php) that's causing the issue, it's related to Curl, more specifically the function curl_exec() is being run and instead of assigning the result to $content it's dumping the result to the client, breaking the simpletest flow.

Line #1762:
$content = curl_exec($this->curlHandle);

It's possible that the issue is related to a version of curl or similar that has been installed, or something to do with curl and nginx, but I'm just guessing. Will keep digging.

Deciphered’s picture

Settings the Curl option 'CURLOPT_RETURNTRANSFER' to 1 resolves the issue, the question is what is causing the need for this in this instance, is it Aegir, nginx or other?

omega8cc’s picture

FileSize
254.45 KB

@Deciphered Do you have Redis cache enabled there maybe? I have tested this on the standard BOA setup (Aegir 6.x-2.x based) and it fails initially with errors like:

The testing framework requires the PHP open_basedir restriction to be disabled. Check your webserver configuration or contact your web host. (Currently using PHP open_basedir restriction Enabled)

So I have disabled open_basedir in /opt/local/etc/php53.ini and reloaded the server with service php53-fpm reload.

Then I could enable Testing, but any attempt to run it failed with errors like:

An AJAX HTTP error occurred. HTTP Result Code: 500 Debugging information follows. Path: /batch?id=4&op=do StatusText: Service unavailable (with message) ResponseText: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'd7co1linodeush_0.simpletest662410field_config' doesn't exist: SELECT fc.* FROM {field_config} fc WHERE (module = :db_condition_placeholder_0) AND (fc.active = :db_condition_placeholder_1) AND (fc.storage_active = :db_condition_placeholder_2) ; Array ( [:db_condition_placeholder_0] => taxonomy [:db_condition_placeholder_1] => 1 [:db_condition_placeholder_2] => 1 ) in field_read_fields() (line 353 of /data/all/002/drupal-7.15.2-dev/modules/field/field.crud.inc).

It was Redis default caching fault. I have disabled Redis with sites/sitename/modules/cache/NO.txt file but it only caused the Testing module option to hide from admin/config/development, so I had to uninstall Testing module (it deleted many leftovers/tables) and then after enabling it again I was able to run any test - no problems - see the screenshot attached.

Note however that I have tested it with BOA head, which includes many changes and improvements and latest version of PHP-FPM 5.3.17 and Nginx 1.3.6, so I'm not sure if this makes any difference or not.

The output to compare with that above:

Status message The test run finished in 9 sec.
ACTIONS
Filter    Return to list
RESULTS
17 passes, 0 fails, 0 exceptions, and 5 debug messages
HIDESYSLOG FUNCTIONALITY
Test syslog settings.
17 passes, 0 fails, 0 exceptions, and 5 debug messages
MESSAGE	GROUP	FILENAME	LINE	FUNCTION	STATUS
MESSAGE	GROUP	FILENAME	LINE	FUNCTION	STATUS
Enabled modules: syslog	Other	syslog.test	21	SyslogTestCase->setUp()	
Created role of name: rRCxrCEW, id: 4	Role	syslog.test	28	SyslogTestCase->testSettings()	
Created permissions: administer site configuration	Role	syslog.test	28	SyslogTestCase->testSettings()	
User created with name hKYVNrUK and pass PH9e3Kyhr2	User login	syslog.test	28	SyslogTestCase->testSettings()	
GET http://d7c.o1.linode.us.host8.biz/user returned 200 (6.68 KB).	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Valid HTML found on "http://d7c.o1.linode.us.host8.biz/user"	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	29	SyslogTestCase->testSettings()	
GET http://d7c.o1.linode.us.host8.biz/user/2 returned 200 (6.15 KB).	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Valid HTML found on "http://d7c.o1.linode.us.host8.biz/user/2"	Browser	syslog.test	29	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	29	SyslogTestCase->testSettings()	
User hKYVNrUK successfully logged in.	User login	syslog.test	29	SyslogTestCase->testSettings()	
GET http://d7c.o1.linode.us.host8.biz/admin/config/development/logging returned 200 (10.66 KB).	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Valid HTML found on "http://d7c.o1.linode.us.host8.biz/admin/config/development/logging"	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	34	SyslogTestCase->testSettings()	
GET http://d7c.o1.linode.us.host8.biz/admin/config/development/logging returned 200 (10.89 KB).	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Valid HTML found on "http://d7c.o1.linode.us.host8.biz/admin/config/development/logging"	Browser	syslog.test	34	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	34	SyslogTestCase->testSettings()	
"The configuration options have been saved." found	Other	syslog.test	35	SyslogTestCase->testSettings()	
GET http://d7c.o1.linode.us.host8.biz/admin/config/development/logging returned 200 (10.66 KB).	Browser	syslog.test	37	SyslogTestCase->testSettings()	
Valid HTML found on "http://d7c.o1.linode.us.host8.biz/admin/config/development/logging"	Browser	syslog.test	37	SyslogTestCase->testSettings()	
Verbose message	Debug	syslog.test	37	SyslogTestCase->testSettings()	
Facility value saved.	Other	syslog.test	40	SyslogTestCase->testSettings()	
Deciphered’s picture

Hi Omega8cc,

I'll have a look through all of this ASAP, however this is with stock Aegir on Mac OSX, not BOA. I suspect that the issue is something to do with PHP configuration or Nginx, but I haven't had much more time to dig into it lately.

ergonlogic’s picture

Status:Postponed (maintainer needs more info)» Closed (cannot reproduce)

Closing for lack of activity