Checking an existing E-01: APT checkpoint, services and private HTTPS
Reading an existing E-01, refusal after an APT index mismatch and acceptance of a new checkpoint after an independent console check. No reinstall or reboot.
After testing interactive setup on clean VMs, we return to the already configured E-01. It has one PHP pool and its own package history. The clean-server wizard is unsuitable here: first we read the existing state and compare it with the retained results.
A separate profile for the existing server
The existing profile refers to the actual previous PHP, application and HTTPS configuration and accepted package state. It does not use the two-pool Redis profile from the isolated test environment. Paths to keys, the sudo password, known_hosts and retained confirmations stay in private files outside Git.
After a fresh SSH login using the selected key, we separately checked password-based sudo. Then we started planning. The variables below identify the prepared private profile and a new local plan file.
deploy-cli host setup plan \
--profile-file "$E01_EXISTING_PROFILE" \
--plan-file "$E01_READ_PLAN"
The initial check refused to continue. Apply and the subsequent verify were not run; no approval for privileged server changes was supplied. This is an abbreviated actual response:
{
"status": "failed",
"blocked_stage": "preflight",
"error": "setup initial state refused; no fallback",
"host_write_attempted": false,
"host_write_performed": false,
"runtime_ready": false
}
What stopped matching
The separate HTTPS reader returned parent/unverified, while verification of its package checkpoint returned indexes. Comparing the current state with the accepted snapshot narrowed the cause: one of 13 fields had changed, the APT index cache fingerprint. The other 12 fields, including installed package state, configuration, keyrings, kernel and boot, matched.
This observation does not establish who refreshed the cache. We did not attribute the change to a timer or another operator. The old checkpoint describes specific cache bytes, so the check must not silently treat different bytes as already accepted.
Read service state separately
The coordinator's refusal does not replace a check of the application itself. Nginx and the owned PHP 8.5.12 service were enabled/active/running. The firewall loader and WireGuard service were enabled/active/exited. We retain those exact states rather than describing both as running.
In systemd, Nginx and WireGuard explicitly required the firewall loader and were ordered after it. We checked ActiveState, SubState, PID and dependencies as well as enabled state. On another server, populate the variables in this example with its actual service names:
systemctl show "$FIREWALL_UNIT" "$WG_UNIT" "$PHP_UNIT" nginx.service \
--property=Id,UnitFileState,ActiveState,SubState,MainPID,Requires,After
On this E-01, PHP runs through an owned service. The separate distribution php8.5-fpm.service is masked and inactive; its state alone does not mean that the owned PHP runtime has stopped.
Check passwords and HTTPS with real requests
We separately ran eight local TLS/HTTP checks. They covered the CA, exact leaf certificate and SNI, an incorrect Host, rejection of incorrect SNI, the HTTP redirect, hidden files and an unrelated PHP path. With no credentials and with an incorrect password, the server returned 401.
With the correct password, the educational Symfony skeleton returned the expected 404 for its undefined root route. The body matched the loopback application's response. Responses also carried noindex/nofollow and private/no-store. These requests demonstrate actual private HTTPS operation, but do not accept changed package state on the coordinator's behalf.
Plan the new checkpoint first
We prepared a separate plan for the new cache over the same accepted package successor. In the example, ORIGINAL_PRIVATE_FLAGS is a prepared Bash array containing explicit arguments for the original PHP/application profile, access, signed archive and accepted predecessor reference with its SHA256.
deploy-cli host application package-index-plan \
"${ORIGINAL_PRIVATE_FLAGS[@]}" \
--plan-file "$NEW_INDEX_PLAN"
Planning verified the signed index, selected archive, installed payload and runtime impact. One selected signed index had changed. The candidate stayed local: we created no new server journal and did not apply the checkpoint. This result grants no permission to install packages and does not authenticate the entire APT cache.
Continuing requires independent access
The server had its WireGuard interface and one peer, but no recent handshake. The selected tunnel was inactive on the laptop. We therefore do not describe successful SSH through the management address as a verified private SSH channel; the laptop network was unchanged during these reads.
After the initial read, we opened the independent provider console. The hostname, systemd-id128 machine-id and systemd-id128 boot-id commands allowed us to compare the machine and current boot with a separate SSH connection. They matched. We obtained separate approval for the next write, limited to two new checkpoint journal files.
After this initial check, we compared 72 selected configuration and journal files: their content and metadata were unchanged. The installed package list, observed service PIDs and states, machine and boot over SSH, and nftables rules excluding traffic counters also matched. The check identified a concrete next step without rewriting the educational server's history.
Accept the checkpoint and create a new verification
We applied the prepared plan using its pinned SHA256. ORIGINAL_PRIVATE_FLAGS means the same explicit Bash array used during planning. The flag permits only the write defined by this checkpoint; refreshing the cache, installing packages and managing services are outside its scope.
deploy-cli host application package-index-apply \
"${ORIGINAL_PRIVATE_FLAGS[@]}" \
--plan-file "$NEW_INDEX_PLAN" \
--plan-sha256 "$NEW_INDEX_PLAN_SHA256" \
--approve-privileges
Apply completed successfully; a separate package-index-verify also passed without writing. Exactly two files were added in a new journal directory. All 72 previous files remained unchanged, as did packages, service PIDs, boot and firewall rules.
We created another profile for the subsequent existing workflow: it explicitly references the new accepted index confirmation and its SHA256. We did not rewrite old references, the recovery request or the failed planning marker. The commands below use new profile and plan paths; the completion SHA comes from the successful apply.
deploy-cli host setup plan \
--profile-file "$NEW_EXISTING_PROFILE" --plan-file "$NEW_EXISTING_PLAN"
deploy-cli host setup apply \
--plan-file "$NEW_EXISTING_PLAN" --plan-sha256 "$NEW_EXISTING_PLAN_SHA256" \
--approve-local-write
deploy-cli host setup verify \
--plan-file "$NEW_EXISTING_PLAN" --plan-sha256 "$NEW_EXISTING_PLAN_SHA256" \
--completion-sha256 "$NEW_EXISTING_COMPLETION_SHA256"
All three steps passed. Existing apply created only local control records; verify did not write even those. This is an abbreviated actual verify response:
{
"status": "passed",
"runtime_ready": true,
"whole_host_ready": false,
"host_write_attempted": false,
"host_write_performed": false,
"local_write_attempted": false
}
The selected current PHP/application/HTTPS runtime is accepted. Private SSH over WireGuard still requires separate client and traffic checks; no new reboot occurred here. Successful existing verification does not turn those separate steps into completed work.



