Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endless H15 errors on Heroku with default install #446

Open
jeffblake opened this issue Feb 1, 2022 · 2 comments
Open

Endless H15 errors on Heroku with default install #446

jeffblake opened this issue Feb 1, 2022 · 2 comments

Comments

@jeffblake
Copy link

I've used Scout in the past and loved the quick actionable insights to make improvements (n+1's, etc). I installed the heroku addon and deployed, and received thousands of H15 Idle connection errors, caused by actioncable connections. As soon as I uninstalled the gem and redeployed... no more errors.

Heroku considers these errors, so if you have the built-in "response error notification" enabled in Heroku, you will get emails forever about these H15 errors, and you will see in this graph the errors and no more errors with deploy eb7010db when I removed the scout gem.
Screen Shot 2022-01-31 at 9 23 31 PM
.

@dlanderson
Copy link
Contributor

Thanks for the report @jeffblake - I'm surprised that we would interfere with ActionCable connections, since we don't have any instrumentation there. Can you provide some info on which rails version you're running and which Scout version was used? Was there any indication that it was happening on just one endpoint, or multiple? Happy to take a look at your Gemfile.lock if you can send it over to support@scoutapm.com as well as any logs from Heroku that you can send over showing the error and related lines.

@jeffblake
Copy link
Author

Rails 7.0.1
Scout 5.1.1

It's happening on one endpoint, the actioncable mount path, all of the logs look like this:

at=error code=H15 desc="Idle connection" method=GET path="/cable" host=app.*.com request_id=c1977422-d02f-4d5e-8b1c-06f9eecd7b84 fwd="x.x.x.x" dyno=web.1 connect=0ms service=55003ms status=503 bytes= protocol=https

I've tried restarting the dynos multiple times to no avail, the only fix is to remove the Scout gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants