SUSE Support

Here When You Need Us

Fleet agent fails to start with error secret fleet-agent not found

This document (000021723) is provided subject to the disclaimer at the end of this document.

Environment

Rancher  2.8, 2.9


Situation

After Rancher upgrade, the fleet agent fails to start with the following error messages:

leaderelection.go:248] attempting to acquire leader lease cattle-fleet-system/fleet-agent-lock...
leaderelection.go:258] successfully acquired lease cattle-fleet-system/fleet-agent-lock
time="2024-03-21T16:02:37Z" level=warning msg="Cannot find fleet-agent secret, running registration"
panic: assignment to entry in nil map
(*Command).execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:985\ngithub.com/spf13/cobra.
(*Command).Execute\n\t/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.1/command.go:1041\ngithub.com/spf13/cobra.

 

 

Resolution

In the Rancher UI:

  1. Click ☰ > Continuous Delivery.

  2. Select your namespace at the top of the menu, noting the following:

    • By default, fleet-default is selected which includes all downstream clusters that are registered through Rancher.

    • You may switch to fleet-local, which only contains the local cluster, or you may create your own workspace to which you may assign and move clusters.

  3. Click on Clusters on the left navigation bar and  Force Update

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:000021723
  • Creation Date: 27-Feb-2025
  • Modified Date:03-Apr-2025
    • SUSE Rancher

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.