I am noticing very strange with Resque web interface, I am getting a blank page every time when I open the resque/overview
url but when I tried to open the failed jobs (resque/failed
) it is showing perfectly fine.
gem details are below:
I can also see in case of resque/overview
: CSS and JS are not loading but in case of resque/failed
its loading. I am not sure where is the issue because I did not updated resque gem.
@ravindra9278 are you using NewRelic or some other instrumentation that might inject code into the response body?
I noticed the Content-Length
and response body were wrong. NewRelic injects some javascript and that appears to be breaking the response for the Resque::Server
In our Rails application the Resque::Server is mounted like so
constraints resque_constraint do # resque_contraint is a lambda to ensure an admin user, not important here
mount Resque::Server, :at => "/path/to/resque"
end
I have opted to disable the Resque paths from the New Relic instrumentation:
In newrelic.yml
I added:
rules:
ignore_url_regexes: ["^/path/to/resque"]
This has fixed the issue for us. I will open a ticket with NewRelic to see what they think of this.
@ravindra9278 are you using NewRelic or some other instrumentation that might inject code into the response body?
I noticed the
Content-Length
and response body were wrong. NewRelic injects some javascript and that appears to be breaking the response for theResque::Server
In our Rails application the Resque::Server is mounted like so
constraints resque_constraint do # resque_contraint is a lambda to ensure an admin user, not important here mount Resque::Server, :at => "/path/to/resque" end
I have opted to disable the Resque paths from the New Relic instrumentation:
In
newrelic.yml
I added:rules: ignore_url_regexes: ["^/path/to/resque"]
This has fixed the issue for us. I will open a ticket with NewRelic to see what they think of this.
This fixed the issue for me as well. Thanks!
Yes, it's working. Thank you 馃帀馃帀
An update for this issue. I reached out to NewRelic and they will be releasing a fix with the next release of the NewRelic agent.
ignore_url_regexes
didn't work for us, but as we do not use Browser
features workaround for us was to set:
browser_monitoring:
auto_instrument: false
Most helpful comment
This fixed the issue for me as well. Thanks!