Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
I'm cross-posting from my issue on Rules, because I'm not sure if it's an issue with that module or an issue with BOA. I am using the latest Stable release. Here is the scenario:
I can create new rules, and add events and actions. However, I receive a 502 whenever trying to add a specific condition. My condition is 'Content is of type'. As soon as I save the condition the error occurs, and I can no longer access any part of the rule.
Comment | File | Size | Author |
---|---|---|---|
#8 | my rule.txt | 1.07 KB | narayanis |
Comments
Comment #1
narayanis CreditAttribution: narayanis commentedI have tested this same rule on a non BOA environment and do not get any errors, so it does not appear to be module-related.
Comment #2
omega8cc CreditAttribution: omega8cc commentedPlease follow bug submission guidelines.
We need some details, not only related to your setup, but also to your site config/distro, any errors from system logs etc. Otherwise it is support request and not bug report, as we have no idea what can be wrong there, maybe you need to tune default mysql settings used by Barracuda etc.
Comment #3
narayanis CreditAttribution: narayanis commentedThe box is a Linode running Ubuntu 10.04 LTS with 768MB of memory. It was installed clean per the instructions and other D6 and D7 sites have run successfully for several months and continue to work fine.
The platform/distro is Drupal 7.7. I am running the site in dev mode, by having the word "dev" in the subdomain.
Logs from /data/disk/USER/log/octopus_log.txt and /var/aegir/config/includes/barracuda_log.txt show no entries since 7/31/11, when the last update was performed to move from 1.0-boa-T-8.8 to 1.0-boa-T-8.9.
The 502 occurs instantly upon submitting the rule condition (although the data saves), or attempting to edit the rule afterward. The rule continues to fire as expected, it just can't be accessed via the UI once a condition is added. This makes me think that memory or db are not issues.
As a workaround I have been changing and exporting the rule from a non-BOA environment and then importing it onto this machine.
Comment #4
omega8cc CreditAttribution: omega8cc commentedWhat is the link to the issue in the Rules queue?
Comment #5
omega8cc CreditAttribution: omega8cc commentedAlso, what is your non-BOA environment? What version of mysql and php?
Comment #6
narayanis CreditAttribution: narayanis commentedThe Rules queue issue is #1257080: Error 502: Bad Gateway when using the node data selector to add a condition to a rule . The non-BOA environment is a Quickstart 1.0 virtual machine; it runs PHP 5.3.5 and MySQL 5.1.54.
Comment #7
omega8cc CreditAttribution: omega8cc commentedHmm.. not sure where to start debugging it, but I will try to reproduce it.
Also, you should post what you have in the install logs, not just say there is nothing changed etc. You are making it harder to help you when you don't follow bug submission guidelines. Of course feel free to anonymize hostname etc.
Comment #8
narayanis CreditAttribution: narayanis commentedI apologize. I didn't see anything relevant in those files, but here is the information. I have also attached an export of my rule.
octopus_log.txt:
Wed Jun 1 10:48:14 EDT 2011 / Ubuntu.lucid i686 / Aegir 1.0-boa-T-8.7 / Octopus 1.0-boa-T-8.7
Sun Jun 26 16:20:33 EDT 2011 / Ubuntu.lucid i686 / Aegir 1.0-boa-T-8.7 / Octopus 1.0-boa-T-8.7
Sat Jul 16 12:37:56 EDT 2011 / Ubuntu.lucid i686 / Aegir 1.0-boa-T-8.8 / Octopus 1.0-boa-T-8.8
Sun Jul 31 13:55:15 EDT 2011 / Ubuntu.lucid i686 / Aegir 1.0-boa-T-8.9 / Octopus 1.0-boa-T-8.9
barracuda_log.txt
Wed Jun 1 01:05:41 EDT 2011 / Ubuntu.lucid i686 / Aegir 1.0-boa-T-8.7 / Barracuda 1.0-boa-T-8.7 / Nginx 1.0.2 / PHP 5.2.17
Sun Jun 26 16:09:49 EDT 2011 / Ubuntu.lucid i686 / Aegir 1.0-boa-T-8.7 / Barracuda 1.0-boa-T-8.7 / Nginx 1.0.2 / PHP 5.2.17
Sat Jul 16 12:26:19 EDT 2011 / Ubuntu.lucid i686 XEN / Aegir 1.0-boa-T-8.8 / Barracuda 1.0-boa-T-8.8 / Nginx 1.0.4 / PHP 5.2.17 / MariaDB **hostname_removed** / SpeedWild YES-NO
Sun Jul 31 13:43:35 EDT 2011 / Ubuntu.lucid i686 XEN / Aegir 1.0-boa-T-8.9 / Barracuda 1.0-boa-T-8.9 / Nginx 1.0.5 / PHP 5.2.17 / MariaDB **hostname_removed** / SpeedWild YES-NO
Comment #9
narayanis CreditAttribution: narayanis commentedI have done more extensive testing. If the first condition in my Rule is "Content type equals xxx" I get the 502 error. If I add some other condition first, and then add this condition, there is no error. If I then reorder the conditions and make this the first one, the error occurs.
Edit: This is odd. Minutes after I found consistent steps to duplicate, the error went away. Rules does do some caching, which may have had an effect. To test this, I then ran drush cc all, and the error returned.
Comment #10
narayanis CreditAttribution: narayanis commentedI am closing this, as users of both Barracuda and other setups are having the same problem in #1258284: Can't edit rules due to internal server error since 7.x-2.0-rc1