sunjam is troubleshooting a recurring Net::OpenTimeout: execution expired error affecting image uploads on a Discourse forum running version 2.9.0.beta4. The error appears in multiple contexts, including avatar proxying and file downloads, with over 270,000 reported instances as noted in post 3. The stack trace points to Ruby’s net/http library timing out during connection attempts, possibly due to DNS resolution issues. sunjam references a Stack Overflow solution suggesting that adding require 'resolv-replace' at the start of the code may resolve the issue, citing a known problem with certain libc versions and DNS handling in Ruby. The forum has several active plugins, including discourse-checklist, discourse-solved, and docker_manager, though the styleguide plugin is disabled. The issue appears to impact multiple users, with similar reports noted on Meta Discourse linked in post 1.
Found this on stackoverflow for resolving the issue in Ruby:
It seems to be a problem with certain versions of libc which resolve DNS routes. After spending couple hours to search solution you just need to add require 'resolv-replace' at the beginning of your code.