-
Notifications
You must be signed in to change notification settings - Fork 183
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
local polis-file-server sometimes fails to serve files; polis-server crashes #896
Comments
The cause of this is that
this error propagates and crashes the application. I think this is http-party/node-http-proxy#1455 |
This is great sleuthing @midgleyc! much appreciated! Sorry, there are not many outside people trying to host Polis in production-like environments. @joshsmith2 are you hitting something like this as well? |
@patcon The application does not terminate as such but instead it logs the error, then keeps running with the broken socket and does not respond to further requests. It's unclear why the process does not terminate but perhaps the use of I'd like to fix this by making sure the application terminates properly, with an error code, as this will provide a wide solution covering other failure scenarios. Any objections or other ideas? |
No objection from me, but to be clear, I don't have merge access directly. I can't imagine the polis team would have issue so long as the solution is scoped and as minimal as feasible :) Feel free to talk it out loud here |
I don't have much to add [other than my appreciation to those who have discussed beforehand], but wanted to confirm that we are hitting this issue on our polis deployment in what appears to be a similar configuration to @midgleyc. Happy to contribute to some possible fixes. |
Expected behavior:
Polis-file-server always serves static files, or polis-server can handle a single connection drop. Polis-server does not crash.
Actual behavior:
Polis-file-server sometimes drops the connection; polis-server crashes
To Reproduce:
Deploy both polis-server and polis-file-server in production, running polis-file-server as 'local' upload. Wait several hours, then access a page on polis-server.
Screenshots:
Device information:
Additional context:
Logs from polis-server:
After this polis-server crashes. I have the docker container set to
restart: unless-stopped
, and it comes back up after that so the next bit is justinit 1
. The page loads on refresh.The text was updated successfully, but these errors were encountered: