kubernetes/kops · error
error powering on instance %s of group %q: %w
Error message
error powering on instance %s of group %q: %w
What it means
In RenderScw, the ServerAction 'poweron' call failed for a newly created server whose cloud-init user-data was just set. The server exists with user-data but is not running; the server ID and group name identify the machine that failed to start.
Source
Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:274
// We load the cloud-init script in the instance user data
err = instanceService.SetServerUserData(&instance.SetServerUserDataRequest{
ServerID: srv.Server.ID,
Zone: srv.Server.Zone,
Key: "cloud-init",
Content: bytes.NewBuffer(userData),
})
if err != nil {
return fmt.Errorf("error setting 'cloud-init' in user-data for instance %s of group %q: %w", srv.Server.ID, fi.ValueOf(expected.Name), err)
}
// We start the instance
_, err = instanceService.ServerAction(&instance.ServerActionRequest{
Zone: zone,
ServerID: srv.Server.ID,
Action: instance.ServerActionPoweron,
})
if err != nil {
return fmt.Errorf("error powering on instance %s of group %q: %w", srv.Server.ID, fi.ValueOf(expected.Name), err)
}
// We wait for the instance to be ready
_, err = instanceService.WaitForServer(&instance.WaitForServerRequest{
ServerID: srv.Server.ID,
Zone: zone,
})
if err != nil {
return fmt.Errorf("error waiting for instance %s of group %q: %w", srv.Server.ID, fi.ValueOf(expected.Name), err)
}
}
// If newInstanceCount < 0, we need to delete instances of this group
if newInstanceCount < 0 {
igInstances, err := t.Cloud.GetClusterServers(t.Cloud.ClusterName(actual.Tags), actual.Name)
if err != nil {
return fmt.Errorf("error deleting instance: %w", err)View on GitHub (pinned to 4c8573c808)
Solutions
- Check the wrapped error (server may be in an invalid state for power-on)
- Delete the orphaned server manually or let the next apply reconcile
- Retry the apply operation
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/scalewaytasks/instance.go:274 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/fd42847e8b332397.
Report an issue: GitHub.