Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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()
Comment | File | Size | Author |
---|---|---|---|
#12 | test_results_d7_boa.jpg | 254.45 KB | omega8cc |
Comments
Comment #1
realityloopComment #2
Steven Jones CreditAttribution: Steven Jones commentedWhat is the command you're running is each case to run the test suite?
Comment #3
realitylooptriggering tests using the testing module in Drupal core
Comment #4
alberto56 CreditAttribution: alberto56 commentedHi,
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.
Comment #5
Steven Jones CreditAttribution: Steven Jones commentedI 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?
Comment #6
Deciphered CreditAttribution: Deciphered commentedI'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.
Comment #7
Steven Jones CreditAttribution: Steven Jones commentedIs this using nginx?
Comment #8
Deciphered CreditAttribution: Deciphered commentedIndeed 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.
Comment #9
Deciphered CreditAttribution: Deciphered commentedSo 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.
Comment #10
Deciphered CreditAttribution: Deciphered commentedMore 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.
Comment #11
Deciphered CreditAttribution: Deciphered commentedSettings 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?
Comment #12
omega8cc CreditAttribution: omega8cc commented@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:
So I have disabled
open_basedir
in/opt/local/etc/php53.ini
and reloaded the server withservice 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:
Comment #13
Deciphered CreditAttribution: Deciphered commentedHi 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.
Comment #14
ergonlogicClosing for lack of activity