jlesage / docker-firefox

Docker container for Firefox
MIT License
1.4k stars 266 forks source link

[Bug] Firefox Docker Session Disconnects After Inactivity When Accessed Via Web Browser #227

Open bacevs opened 4 months ago

bacevs commented 4 months ago

Current Behavior

Firefox Docker Session Disconnects After Inactivity When Accessed Via Web Browser

Expected Behavior

No response

Steps To Reproduce

No response

Environment

Container creation

Docker run

Container log

N/A

Container inspect

No response

Anything else?

No response

jlesage commented 4 months ago

Note that the timeout is set to 5 days. Please make sure to provide the information asked when filling the issue. It's hard to help without these details. After how much time do you get a disconnection ? What browser are you using? On what OS ? Are you accessing the web page through a reverse proxy or directly via the IP of the machine running the container ?

bacevs commented 4 months ago

Note that the timeout is set to 5 days. Please make sure to provide the information asked when filling the issue. It's hard to help without these details. After how much time do you get a disconnection ? What browser are you using? On what OS ? Are you accessing the web page through a reverse proxy or directly via the IP of the machine running the container ?

I apologize for the brief initial report; I was submitting it from my phone. The disconnection occurs within just a few minutes if there is no activity in the Firefox Docker browser. I'm using Microsoft Edge, both the latest version and version 121.0.2277.112 (Official build) (64-bit) specifically on Windows 10/11. Interestingly, I've observed that the timeout issue doesn't arise when I have my security camera feed running within the Firefox Docker container. Additionally, I've taken the precaution of adding my domain to Edge's "Never put these sites to sleep" list, considering the possibility that Edge might be terminating the tab where Firefox is running.

jlesage commented 4 months ago

And are you accessing the web page via the IP of the machine running the container ?

Also, did you try with another browser ? From another machine ?

bacevs commented 4 months ago

And are you accessing the web page via the IP of the machine running the container ?

Also, did you try with another browser ? From another machine ?

Accessing via host/domain name. Tried using chrome/edge from home and also from work. Same issue. I've noticed that even with the live camera feed running it still disconnects "Firefox - Disconnected". Have to reconnect after a few minutes every time.

jlesage commented 4 months ago

From what I understand, you are accessing the container through a reverse proxy. There is a high chance that the reverse proxy is the one terminating the connection.

caxjm commented 4 months ago

I experienced the same timeout issue through a reverse proxy. Is there any solutions to the problem? Thanks.

caxjm commented 4 months ago

I experienced the same timeout issue through a reverse proxy. Is there any solutions to the problem? Thanks.

I know from another issue report that this is due to the setting of my reverse proxy. Do you happen to know how to adjust the setting if I am using Synology's embedded reverse proxy service? Thanks

jlesage commented 4 months ago

https://kb.synology.com/en-af/DSM/help/DSM/AdminCenter/system_login_portal_advanced?version=7

Try to increase the Proxy send timeout and Proxy read timeout settings.

caxjm commented 4 months ago

Problem well solved as per your instruction. Thank you very much!

SawkeeReemo commented 3 months ago

Thank you! Just came here to ask the same thing.