Repeatedly restarting a solar monitoring gateway can hide the evidence needed to explain a failure. If the real problem is an unavailable inverter interface or a remote network outage, another reboot may achieve nothing while creating larger gaps in the observation history. Automatic recovery needs a bounded sequence of actions linked to evidence about the failing component.
Define that sequence for monitoring services only. Preserve the separation from inverter operation, battery management and protective systems. A gateway recovery policy should explain what it can restart, what it must preserve and when a human owner takes over. It must not quietly expand into remote authority over energy equipment.
Classify the Failed Monitoring Function
Start by identifying the failed milestone: source polling, interpretation, local recording or remote delivery. A stalled poller and an unreachable cloud service require different responses. Keep valid overnight zero production separate from missing PV data. For storage observations, distinguish an unavailable communication path from an actual equipment-reported event; neither condition should be guessed from the gateway's process state alone.
Define when normal startup or quiet operation ends and a failure begins. Include the required persistence of a condition and the evidence needed to clear it. A check that misclassifies model loading as a fault can prevent the service ever becoming ready. Record the expected transition so recovery automation follows the application's operating pattern.
Choose the Smallest Relevant Recovery Action
Define which monitoring component can be restarted independently and what other work depends on it. Restarting a remote uploader should not erase an accepted local queue or interrupt unrelated inverter collection. Where the software cannot isolate the affected function, record that limitation and test the consequences before approving a broader restart. The recovery ladder should describe real available actions, not hypothetical capabilities.
Record the state affected by each action. Pending events, queued inputs, local evidence and source identity may need handling before service resumes. A successful restart should not duplicate a completed business event or present stale observations as current. Recovery acceptance belongs at the useful application boundary, not merely at the moment a process appears again.
Preserve Evidence Before Escalation
Before an automatic intervention, retain a bounded record of the gateway identity, accepted configuration, last valid source times and relevant error transitions. Redact credentials and unnecessary site information. If the equipment interface is unavailable, preserve that condition as observed rather than replacing it with a diagnosis of inverter or battery failure. The next support owner needs evidence, including what remains unknown.
Docker's restart-policy documentation describes automatic container starts around exit and daemon events. That is one mechanism within a wider recovery design. Confirm how it interacts with any other supervisor used by the installation; Docker warns against conflicting host-level and container restart control. Choose clear ownership rather than allow separate layers to race each other through different recovery actions.

Preserve diagnostics before escalation where practical. Keep the first failure, active configuration, source status and actions already attempted. Repeated restarts can generate large amounts of secondary noise while removing the original state. A compact recovery history helps support teams distinguish the initiating fault from the effects of the automation responding to it.
Limit Retries and Define Human Handover
Set retry and escalation rules around the site's observation requirements and tested recovery behavior. A restart loop can consume power, repeatedly interrupt local writing and conceal the duration of a genuine outage. Define when automation stops, how stale information remains visible and which authorized team reviews the incident. Do not keep cycling equipment merely because a generic watchdog can issue another command.
Test through representative failure conditions and permitted interruption methods. Include a persistent fault that the ladder cannot repair, not only a transient one that clears easily. Confirm bounded attempts, escalation ownership and operator visibility. Where the computer supports wider equipment, keep testing within the responsible machine and control design rather than using restarts as an improvised operational safeguard.
Accept Recovery Only After Valid Observations Return
A monitoring service is not recovered merely because its process starts. Confirm the intended asset mapping, original timestamps, local persistence and any required result delivery. Review gaps and queued historical data separately from new observations. Test the complete ladder in an approved commissioning arrangement so each escalation produces useful evidence and a clear return-to-service decision, not an unexamined green indicator.
Use the OEM and ODM integration process to agree which recovery mechanisms belong to supplied hardware or software and which belong to the application. Include watchdog or restart features only with their documented scope and configuration. A feature name is not evidence that the complete application recognises every relevant failure or restores its required state correctly.
Share the ladder, success checks and unresolved limits with TWOWIN during handover. Keep the accepted policy with the software baseline and field instructions. Review it after relevant dependency or startup changes so an earlier recovery rule does not become a new source of unnecessary interruption when the service's expected behaviour changes.
Conclusion
A solar monitoring recovery ladder should respond to the failed function with the smallest justified action. Preserve evidence, constrain retries and define an accountable handover. Accept recovery only when valid observations resume. Keeping that policy within monitoring responsibilities avoids confusing a restarted gateway with repaired energy equipment or restored protective functionality.
Q&A
Should a cloud outage trigger a gateway reboot?
Not automatically. Determine whether local collection still works and whether a restart can address the failed dependency before choosing an intervention.
What should remain visible during recovery?
Keep the affected asset, last valid observation time and unavailable functions visible. Historical records must not be presented as fresh observations.
Can the same ladder restart an inverter?
Not by assumption. Energy-equipment operations require their own approved controls, authority and procedures outside this monitoring-service policy.
What proves the final recovery step worked?
Fresh, correctly mapped observations and the required preservation or delivery evidence establish monitoring recovery more reliably than a running process alone.
