diff --git a/client/server/server.go b/client/server/server.go index 8dc1a9110..1099ab4cf 100644 --- a/client/server/server.go +++ b/client/server/server.go @@ -306,6 +306,9 @@ func (s *Server) Start() error { // another users profile, so the daemon comes up on the default // profile instead of refusing to start. log.Errorf("starting on the default profile, the active one could not be resolved: %v", err) + if err := s.profileManager.SetActiveProfileStateToDefault(); err != nil { + return fmt.Errorf("set active profile to default: %w", err) + } activeProf = &profilemanager.ActiveProfileState{ID: profilemanager.DefaultProfileName} config, existingConfig, err = s.getConfig(activeProf) }