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.

CommentFileSizeAuthor
#8 my rule.txt1.07 KBnarayanis
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

narayanis’s picture

I 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.

omega8cc’s picture

Please 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.

narayanis’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

The 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.

omega8cc’s picture

What is the link to the issue in the Rules queue?

omega8cc’s picture

Also, what is your non-BOA environment? What version of mysql and php?

narayanis’s picture

The 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.

omega8cc’s picture

Hmm.. 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.

narayanis’s picture

FileSize
1.07 KB

I 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

narayanis’s picture

Status: Postponed (maintainer needs more info) » Active

I 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.

narayanis’s picture

Status: Active » Closed (works as designed)

I 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