You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases it may happen that the agent is stopped and started again while the configuration is being applied.
If this happens, the configuration or config status of the device may remain in an inconsistent state (either the configuration may not be fully applied or it may not report that it has been applied to the OpenWISP server).
I am not able to replicate right now the steps which cause the agent to stop and start itself automatically.
Something like this was happening for the "reload" which we are already handling.
If we can confirm this issue, we could introduce a mechanism which delays the stop of the agent until the configuration has been applied, like we are doing in the reload:
In some cases it may happen that the agent is stopped and started again while the configuration is being applied.
If this happens, the configuration or config status of the device may remain in an inconsistent state (either the configuration may not be fully applied or it may not report that it has been applied to the OpenWISP server).
I am not able to replicate right now the steps which cause the agent to stop and start itself automatically.
Something like this was happening for the "reload" which we are already handling.
If we can confirm this issue, we could introduce a mechanism which delays the stop of the agent until the configuration has been applied, like we are doing in the reload:
openwisp-config/openwisp-config/files/openwisp.init
Lines 89 to 102 in 6ffbe53
We can turn that code into a function and reuse in
stop_service
too.The text was updated successfully, but these errors were encountered: