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
Situation
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
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
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
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com