Normal view

Certain Drupal batch functions not working with Cloudflare - returning 502 Bad Gateway

I noticed that the XML Sitemap generation stopped working a couple of weeks ago. When I go to rebuild the sitemap manually, we immediately get a 502 Bad Gateway error.

After much unsuccessful troubleshooting, we tried the Simple XML Sitemap module and surprisingly got the same error.

Disabling Cloudflare fixes the issue but since we need Cloudflare to be active, we need to find out the cause.

  • Using Cloudflare Free Tier
  • Some /batch functions cause a 502 error
  • Pausing Cloudflare fixes the issue
  • We tried creating a rule to bypass caching for the /batch path (no change in the error)
  • The issue occurs with XML Sitemap, and Simple XML Sitemap. However, other batch operations, like rebuilding the permissions work as expected
  • Sitemap generation worked correctly for years, until a couple of weeks ago

I'm hoping for any insight as to what may be causing the failure.

submitted by /u/quantumized
[link] [comments]
❌