SUSE Support

Here When You Need Us

After a migration to SUSE Manager 5.0 the "mgr-sync" command fails with: General error: can't set attribute

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

Environment

SUSE Manager 5.0

Situation

After migrating from 4.3 to 5.0, running "mgr-sync" commands fail, for example:
 
mgr-sync -v -d 3 list channels
General error: can't set attribute
Traceback (most recent call last):
  File "/usr/sbin/mgr-sync", line 27, in <module> sys.exit(MgrSync().run(options))
  File "/usr/lib/python3.6/site-packages/spacewalk/susemanager/mgr_sync/mgr_sync.py", line 60, in __init__ self.config.port = 443
AttributeError: can't set attribute

 

Resolution

Enter the container with "mgrctl term" and make sure the following entry in the file "/root/.mgr-sync" is set to localhost and not to the SLE Micro host servers Fully Qualified Domain Name (FQDN):
 
mgrsync.host = localhost

Alternatively simply delete the "/root/.mgr-sync" file which will subsequently be re-created with the correct information as soon as any mgr-sync command is executed again.

Cause

If the file "/root/.mgr-sync" exists on the 4.3 source server when the migration is done, this is migrated to the new 5.0 server and thus incorrectly contains the FQDN of the source server.

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:000021555
  • Creation Date: 10-Sep-2024
  • Modified Date:10-Sep-2024
    • SUSE Manager

< 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.