Controller: Handle empty HTTP response and add restart functionality for ns-plug service#977
Merged
gsanchietti merged 4 commits intomainfrom Jan 10, 2025
Merged
Conversation
gsanchietti
reviewed
Dec 16, 2024
gsanchietti
requested changes
Dec 17, 2024
f6396c5 to
7e2d4bc
Compare
gsanchietti
reviewed
Dec 17, 2024
gsanchietti
approved these changes
Dec 18, 2024
filippocarletti
requested changes
Dec 18, 2024
Member
filippocarletti
left a comment
There was a problem hiding this comment.
What happens on boot if the controller is down?
What is the output of /etc/init.d/ns-plug status?
Make sure that ns-plug always try to connect to the controller. This fix will allow automatica re-connection in case of disaster recovery of the remote controller.
3da22c0 to
b9a581c
Compare
Contributor
Author
|
so if I turn off the NS8 node and I restart nethsecurity The ns-plug is running I turn on the NS8 node and I get |
Member
|
@filippocarletti could you please review again? |
filippocarletti
approved these changes
Jan 10, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement handling for empty responses in HTTP code extraction and introduce a restart command that triggers when the ns-plug service goes down. A new script for restarting the ns-plug service has also been added.
when the server does not answer we have this kind of error because the
.codeis missing with jqwhen the tun-nsplug goes down, it restarts ns-plug, we have a countdown about 1 minute to connect again to the server and we give up
#978
This PR tries to fix che current scenario: