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

Fix connection issues of node when server is restarted without consta… #866

Conversation

bartvanb
Copy link
Member

…nt jwt key

Fix #840

Note that in the process, I'm also now preventing that nodes try to sync their tasks when they are not authenticated - this would happen if the socket connection is re-established when JWT key has been changed, which led to many errors of the node trying to sync the task list.

Whether or not the connection is authenticated
"""
if not authenticated:
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we log this? I guess the socketio library keeps retrying?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a new commit I added explanation why no message is needed here

@bartvanb bartvanb changed the base branch from main to release/v4.0 October 3, 2023 11:16
@frankcorneliusmartin frankcorneliusmartin merged commit 858e5a0 into release/v4.0 Oct 5, 2023
3 checks passed
@frankcorneliusmartin frankcorneliusmartin deleted the hotfix/nodes-do-not-reconnect-wo-constant-jwt branch October 5, 2023 09:03
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

Successfully merging this pull request may close these issues.

[Bug] nodes do not reconnect properly when the server is rebooted
2 participants