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

Connection closes with error 'err_connection_closed' in payara-5.2021.1 with using HTTPS protocal and unable to get the response from server / FISH-1515 #5268

Closed
sameencse opened this issue May 25, 2021 · 12 comments
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect

Comments

@sameencse
Copy link

sameencse commented May 25, 2021

Description


Recently we upgraded the payara server from 5.194 to 5.2021.1 without modifying anything in domain.xml, and observed few of API calls which will take some time to process before returning response are abruptly closed with 'ERR_CONNECTION_CLOSED' and we are using the HTTPS protocol.
Interestingly this issue is not happening with HTTP protocol, seems to be working

Expected Outcome

Https request should complete without any error message or it should process the request and server should return the response

Current Outcome

After the payara upgrade from 5.194 to 5.2021.1 , we notice in our application most of the API calls with HTTPS (the request which takes more than 45 seconds to send back the response to client are breaking with 'ERR_CONNECTION_CLOSED' in dev console) and causing the application to stop abruptly.
And after disabling the HTTP/2, the application seems to be working fine without any error.

Steps to reproduce

Environment

  • Distribution: Full payara/ payara-5.2021.1
  • JDK Version: zulu11.45.27-ca-jdk11.0.10-win_x64
  • Operating System: Windows 10
@sameencse sameencse added the Type: Bug Label issue as a bug defect label May 25, 2021
@shub8968 shub8968 self-assigned this Jun 1, 2021
@shub8968
Copy link
Contributor

shub8968 commented Jun 6, 2021

Hi @sameencse,

Would you be able to provide the reproducer?

@shub8968 shub8968 added the Status: Pending Waiting on the issue requester to give more details or share a reproducer label Jun 6, 2021
@sameencse
Copy link
Author

sameencse commented Jun 10, 2021

Hi @shub8968

  • With payara-5.2021.1 default setting has HTTP/2 Enabled on both HTTP & HTTPS listener

  • Deploy the Application

  • Access the application with HTTPS port

  • Let say if any action in application takes some time to perform( for example in my case, there is a process which takes time to generate/download xml files and huge in size) will be result in CONNECTION error out in dev console 'ERR_CONNECTION_CLOSED'
    1 - Copy

  • The same process works fine if its get access with HTTP port.

PS:: the similar bug is already logged here [https://github.com//issues/2625] which mentioned the issue is fixed in 5.2020.2 and 5.20 but it doesn't seems to be

@shub8968 shub8968 added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification and removed Status: Pending Waiting on the issue requester to give more details or share a reproducer labels Jun 11, 2021
@lprimak
Copy link
Contributor

lprimak commented Jun 11, 2021

There is a little confusion here.
HTTP/2 push (still) has issues in Grizzly and is disabled by default in Payara.

HTTP/2 without push should work without issues with push disabled. Please make sure that push is disabled with the latest version of Payara. There have been some Grizzly fixes in since 2021.1

If that doesn't work, and is confirmed as such, then this issue is indeed valid

@sameencse
Copy link
Author

sameencse commented Jun 12, 2021

@lprimak see below image
http2
I can confirm that HTTP/2 push is disabled and HTTP/2 without push is enabled with that setting, it is failing
could you please confirm is that be a bug? when can we expect the fix

@shub8968
Copy link
Contributor

Hi @sameencse

Would you be able to provide the sample application you are using in order to test the issue?

@sameencse
Copy link
Author

@shub8968 Nope, i can't
but its easily reproducible

-With payara-5.2021.1 default setting has HTTP/2 Enabled on both HTTP & HTTPS listener

  • Deploy the Application
  • Access the application with HTTPS port
  • Let say if any action in application takes some time to perform( for example in my case, there is a process which takes time to generate/download xml files and huge in size) will be result in CONNECTION error out in dev console 'ERR_CONNECTION_CLOSED'
  • The same process works fine if its get access with HTTP port.

PS:: the similar bug is already logged here [https://github.com//issues/2625] which mentioned the issue is fixed in 5.2020.2 and 5.20 but it doesn't seems to be
i have provided sufficient data and steps to reproduce, and also pointing out that the similar issue is already reported in this ticket [https://github.com//issues/2625]

@shub8968
Copy link
Contributor

shub8968 commented Jun 18, 2021

Hi @sameencse, I am able to reproduce this issue. I have raised an internal issue with JIRA FISH-1515. Thanks. It may take a while to fix the issue. You are free to submit a PR to fix this issue if you feel confident to do so.

@shub8968 shub8968 added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Jun 18, 2021
@shub8968 shub8968 changed the title Connection closes with error 'err_connection_closed' in payara-5.2021.1 with using HTTPS protocal and unable to get the response from server Connection closes with error 'err_connection_closed' in payara-5.2021.1 with using HTTPS protocal and unable to get the response from server-FISH-1515 Jun 18, 2021
@AlanRoth AlanRoth changed the title Connection closes with error 'err_connection_closed' in payara-5.2021.1 with using HTTPS protocal and unable to get the response from server-FISH-1515 Connection closes with error 'err_connection_closed' in payara-5.2021.1 with using HTTPS protocal and unable to get the response from server / FISH-1515 Jun 18, 2021
@sameencse
Copy link
Author

Thanks @shub8968 for confirming this as bug,

  • Not sure disabling HTTP/2 will cause any performance/slowness ?
  • And also do you have any deadline/release date for FISH-1515 fix.

@hberton
Copy link

hberton commented Sep 24, 2021

is there any way to solve the problem before a release?

@ricovanrensburg
Copy link

We also encountered this issue, service went down often. We un-ticked https/2 and running stable now. Payara 5 version 2021.1. Also interested in a fix and by when? Thanks

@douglasmartim
Copy link

I am experiencing several issues related to this bug. Is it possible that it is fixed in the next update?

@JamesHillyard
Copy link
Member

Hi all,

This issue has been resolved in the latest version of Payara Community, 5.2022.3. Please upgrade your environments to resolve this issue.

Thanks,
James

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect
Projects
None yet
Development

No branches or pull requests

7 participants