You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2021/09/09 09:10:19 UTC

[Bug 65565] New: Tomcat responds with HTTP status code 503 with response body upstream connect error or disconnect/reset before headers. reset reason: remote refused stream reset

https://bz.apache.org/bugzilla/show_bug.cgi?id=65565

            Bug ID: 65565
           Summary: Tomcat responds with HTTP status code 503 with
                    response body upstream connect error or
                    disconnect/reset before headers. reset reason: remote
                    refused stream reset
           Product: Tomcat 9
           Version: 9.0.52
          Hardware: All
                OS: All
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: juhigupta996@gmail.com
  Target Milestone: -----

Hello, I have following configuration setup in my production environment:

Java Application with following configuration:
1. Sprint boot server version 2.5.4
2. Tomcat version 9.0.52
3. Inside our Application we have enabled HTTP 2 version by using following
bean code
```
@Bean
public TomcatConnectorCustomizer customizer() {
  return (connector) -> connector.addUpgradeProtocol(new Http2Protocol());
  }
```

4. All the other Spring boot and Tomcat configuration/properties are default
5. Running this Application as docker container (using base image of alpine) on
cloud in which we have installed tomcat-native which has following libs
https://pkgs.alpinelinux.org/contents?branch=edge&name=tomcat-native&arch=x86&repo=community

Issue faced: When the client call this java application, it receives HTTP
status code 503 with response body as "upstream connect error or
disconnect/reset before headers. reset reason: remote refused stream reset"
They happen almost 2-3 times in an hour with normal load

We didnt get these errors while using HTTP 1 but have started to notice this
issue when we upgraded Tomcat to use HTTP 2


We also enabled internal logs for tomcat to be printed by using these
application property
logging.level.org.apache.tomcat=ERROR
logging.level.org.apache.catalina=ERROR
but no additional information was printed out when we get this error.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 65565] Tomcat responds with HTTP status code 503 with response body upstream connect error or disconnect/reset before headers. reset reason: remote refused stream reset

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65565

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
There is insufficient information provided in this report to demonstrate that
Tomcat is behaving incorrectly. The "remote refused stream reset" behaviour may
be correct depending on the configuration of the reverse proxy which is
completely missing from this report.

Even with the reverse proxy configuration, there is insufficient information
provided in this report to enable anyone to start an investigation.

Please take your enquiry to the Tomcat users mailing list. If, and only if, you
are able to provide a test case that demonstrates this issue then re-open this
issue and provide the test case along with the steps to reproduce.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 65565] Tomcat responds with HTTP status code 503 with response body upstream connect error or disconnect/reset before headers. reset reason: remote refused stream reset

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65565

--- Comment #2 from Juhi Gupta <ju...@gmail.com> ---
We are not using reverse proxy and we have used all the default values for both
spring boot and tomcat.
Are  there any specific configuration you are looking for?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 65565] Tomcat responds with HTTP status code 503 with response body upstream connect error or disconnect/reset before headers. reset reason: remote refused stream reset

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65565

--- Comment #3 from Mark Thomas <ma...@apache.org> ---
If you aren't using a reverse proxy, where is the 503 response coming from?

Again, the users mailing list is the place to seek help.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 65565] Tomcat responds with HTTP status code 503 with response body upstream connect error or disconnect/reset before headers. reset reason: remote refused stream reset

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=65565

Chaitanya kanagala <ch...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chaitu56789@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org