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
{{ message }}
Repository navigation
spored restart leaves push-installed plugins recorded 'stopped' with no health loop while their services keep running #1559
A graceful spored restart that is not an OS shutdown leaves every push-installed plugin marked stopped, with its health loop gone, while the plugin's services keep running. Nothing marks them running again until a reinstall.
spawn plugin list → mountpoint-s3 v1.0.1 stopped 2026-11-08T22:45:06Z, and docker was installed later.
On the instance at the same time:
systemctl is-active mountpoint-s3 → active;
cat /mnt/s3/hello.txt returns the object.
So the state is wrong, and no health loop is watching the mount.
Code (main cc7b277)
pkg/agent/agent.goCleanup calls pluginRuntime.StopAll(ctx) on every graceful stop.
StopAll (pkg/pluginruntime/runtime.go) sets each running or degraded plugin to StatusStopped and stops its health loop. It runs no stop steps, so the processes keep running.
At startup, newAgent only calls LoadFromDeclarations for /etc/spawn/plugins.json, which holds the launch-time declarations. Plugins installed through the push API (spawn plugin install) are not in that file, so they are never resumed.
Expected
After a spored restart on a still-running OS, a plugin that was running or degraded, and whose stop came from that agent shutdown, comes back with its previous status and its health loop. This is what ResumeStopped already does in-process. A real OS stop or reboot is a separate case: the services are actually down there, and the current stopped is correct.
Notes
This was found while live-verifying #1557. It has nothing to do with that PR's change.
Activity