Interrupted HTTPS installation: why reload is not retried
Two real interruptions after an Nginx reload: reading the pending journal, distinguishing complete files from working HTTPS and retaining unknown without another server change.
During HTTPS setup, an SSH connection can fail after a command has already started changing the server. A retry requires understanding what has actually completed. This matters particularly for an Nginx reload.
I tested this on a separate Debian VM. The standard CLI installed PHP-FPM and the official Symfony skeleton; a controlled test reproduced the interruption. Neither the working nor the training Mirohost server was changed during this run.
The command ran, but its acknowledgement was lost
Before each side effect, the installer saves a pending step in its journal. After success, it adds the step to the completed list. The process can stop between these writes. The effect then exists on the server while the journal has no completion acknowledgement.
In the test, a real Nginx reload returned, then the fixture sent SIGKILL to its installer process before the completed step was saved. This was deliberate test instrumentation. The journal remained a real CLI-created journal. In normal operation, an Nginx reload starts new workers and gracefully retires old workers. Repeating it requires resolving the previous outcome first.
A separate reader for an interrupted operation
The new https-interrupted-inspect command takes the original private plan, its exact SHA256, the TLS profile and the same lower-role references. The firewall edition must match the original plan. WireGuard and Cloudflare modes retain their original explicit selector.
In this example, PRIVATE_APP_FLAGS holds the previously prepared SSH options, application profile and lower approvals. The other variables identify private files and the plan fingerprint. This describes command composition, not ready-to-use credentials.
deploy-cli host application https-interrupted-inspect \
"${PRIVATE_APP_FLAGS[@]}" \
--application-reference "$PRIVATE_APP_REFERENCE" \
--https-file "$HTTPS_PROFILE" \
--firewall-file "$BASE_FIREWALL" \
--plan-file "$TLS_PLAN" \
--plan-sha256 "$TLS_PLAN_SHA256"
The command checks journal ownership, the plan, the permitted prefix of completed steps and actual TLS files. For complete material, it also verifies the lower roles and local HTTPS. Incomplete files never imply full application acceptance. The journal contains a private plan with a password verifier, so the public response exposes only selected safe fields.
Two states with equally complete files
The first run revealed an error in the test CA: its required keyUsage extension was missing. The certificate, key, BasicAuth and configuration existed, but the strict TLS context rejected the chain. A separate verification produced the diagnostic excerpt below, with filenames omitted.
Python’s default SSL context applies certificate checks described in the ssl documentation. Chain verification can be reproduced with this command:
openssl verify -x509_strict \
-CAfile "$CA_FILE" "$CERTIFICATE_FILE"
CA cert does not include key usage extension
| Case | TLS files | Local HTTPS | Journal | Reload outcome |
|---|---|---|---|---|
| CA missing the required keyUsage | Complete | Not verified | pending | unknown |
| Correct test CA | Complete | Verified | pending | unknown |
For the second run, I prepared a new correct CA, key and separate plan. Between runs, the fixture explicitly reset only its own test TLS role and archived the original pending journal. This was manual preparation for another test, not an implementation of automatic CLI recovery.
After this experiment, local preflight was tightened: a CA without explicit keyCertSign permission in keyUsage is now refused before installation. The saved first result above describes the earlier experiment with that CA.
Working HTTPS does not complete the old journal
In the second run, the inspector verified complete material, lower roles and eight local HTTP checks including SNI verification. The saved step nevertheless remained one-nginx-reload, with its journal outcome still unknown.
These are selected fields from the actual CLI response’s checks section. This is a reduced projection, not a complete raw response:
{
"journal_phase": "pending",
"pending_step": "one-nginx-reload",
"reload_outcome": "unknown",
"active_https_verified": "true",
"automatic_resume_allowed": "false",
"completion_accepted": "false"
}
active_https_verified describes HTTPS working now. completion_accepted describes a separate decision to accept completion of the operation. The inspector makes no such decision. A complete working role becomes only a candidate for separate acceptance in its own journal.
Apply replay and state preservation
Ordinary apply refused both cases with partial. It neither completed the journal nor performed another reload. Inspection and repeated observation preserved all 46 selected files in each run. The 40 original lower-role files remained exact across both tests.
The systemd journal contained four reload events: one for initial private application delivery, one for each fault case and one for the explicit manual fixture reset between them. The inspector and refused apply attempts produced no additional reload.
The frame below summarizes those saved results. It was captured in a real terminal without changing the working browser’s focus; it is not a new command run.

The recovery boundary
This mode reads state without granting permission to resume a step, remove files or accept completion. A damaged journal, foreign entries, unsafe permissions or a mismatched plan cause refusal. An interrupted write of the journal file itself also needs separate reconciliation.
A separate protocol now accepts verified state in a new journal while retaining the original pending journal. An observation alone never authorizes another reload or configuration removal.
