![](https://seccdn.libravatar.org/avatar/c0750de242ff0ed05ae2614ebf507e42.jpg?s=120&d=mm&r=g)
Hi,
Hi,
Am Dienstag, 18. Oktober 2022, 08:30:12 CEST schrieb Haupt, Torsten:
Hi,
since some time my clients can't contact the uyuni server. A "zypper ref" shows for example: zypper ref Permission to access 'https://xxxuyuni.xxx.de:443/rhn/manager/download/sle12_5-utilities- x86_64/repodata/repomd.xml?eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2NTI4NjE5MjE sImlhdCI6MTYyMTMyNTkyMSwibmJmIjoxNjIxMzI1ODAxLCJqdGkiOiJrdWZCX0Fh TWR6U2dJcjkydXE5Y2ZBIiwib3JnIjoxLCJvbmx5Q2hhbm5lbHMiOlsic2xlMTJfNS11 dGlsaXRpZXMteDg2XzY0Il19.jqrKWNT4-qkaRIvcOBtypKPl9qfyE3SZBzcGPqishbk' denied. Abort, retry, ignore? [a/r/i/...? shows all options] (a): i
Last contact time in uyuni is also a long time ago.
If I copy the url above in a browser, it get: Token is not valid to access repomd.xml in sle12_5-utilities-x86_64: JWT (claims->{"exp":1652861921,"iat":1621325921,"nbf":1621325801,"jti":"ku fB_AaMdzSgIr92uq9cfA","org":1,"onlyChannels":["sle12_5-utilities-x86_6 4"]}) rejected due to invalid claims. Additional details: [The JWT is no longer valid - the evaluation time NumericDate{1666073380 -> 18.10.2022, 08:09:40 MESZ} is on or after the Expiration Time (exp=NumericDate{1652861921 -> 18.05.2022, 10:18:41 MESZ}) claim value.]
It seems a token is to old; but how to renew it?
Execute a highstate on that client. A new token should be already available in the DB, but only a state.apply deliver it to the client. Is your server permanently "on", or do you turn "off" the most of the time and only start it when you want to manage something? We calculate the expire time and somewhen on the last 30% of the time we renew the tokens and ship them when you call a highstate. But when the server is "off" most of the time this mechanism might break.
The server is permanently "on". I tried to execute the high state, without success. The Eventlog shows: This action will be executed after 10/18/22 10:03:18 AM CEST This action's status is: Failed. The client has not yet completed this action. Looking at the server, I recognized, that cobbler has a problem, too. Is cobbler necessary for all the actions? A restart of cobbler shows: Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | running: ['/usr/sbin/selinuxenabled'] Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | received on stdout: Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | Automigration NOT executed Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | python3-hivex not found. If you need Automatic Windows Installation support, please install. Oct 18 10:14:24 smduyuni cobblerd[3760]: INFO | 11 breeds and 131 OS versions read from the signature file Oct 18 10:14:24 smduyuni cobblerd[3760]: Traceback (most recent call last): Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/manager.py", line 212, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: serializer.deserialize(collection) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/serializer.py", line 128, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: storage_module.deserialize(collection, topological) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/modules/serializers/file.py", line 160, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: collection.from_list(datastruct) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/collection.py", line 201, in from_list Oct 18 10:14:24 smduyuni cobblerd[3760]: item = self.factory_produce(self.api, item_dict) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/systems.py", line 50, in factory_produce Oct 18 10:14:24 smduyuni cobblerd[3760]: new_system.from_dict(item_dict) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/items/system.py", line 826, in from_dict Oct 18 10:14:24 smduyuni cobblerd[3760]: super().from_dict(dictionary) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/items/item.py", line 890, in from_dict Oct 18 10:14:24 smduyuni cobblerd[3760]: setattr(self, lowered_key, dictionary[key]) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/items/system.py", line 1801, in power_type Oct 18 10:14:24 smduyuni cobblerd[3760]: power_manager.validate_power_type(power_type) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/power_manager.py", line 71, in validate_power_type Oct 18 10:14:24 smduyuni cobblerd[3760]: raise CX("power management type must be one of: %s" % ",".join(power_types)) Oct 18 10:14:24 smduyuni cobblerd[3760]: cobbler.cexceptions.CX: 'power management type must be one of: aliyun,alom,amt,apc,apc_snmp,azure_arm,bladecenter,brocade,cisco_mds,cisco_ucs,compute,docker,drac5,eaton_snmp,emerson,eps,evacuate,gce,hds_cb,hpblade,ibmblade,ibmz,idrac,ifmib,ilo,ilo2,ilo3,ilo3_ssh,ilo4,ilo4_ssh,ilo5,ilo5_ssh,ilo_moon> Oct 18 10:14:24 smduyuni cobblerd[3760]: The above exception was the direct cause of the following exception: Oct 18 10:14:24 smduyuni cobblerd[3760]: Traceback (most recent call last): Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/bin/cobblerd", line 92, in main Oct 18 10:14:24 smduyuni cobblerd[3760]: execute_settings_automigration=options.automigration) Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 105, in __init__ Oct 18 10:14:24 smduyuni cobblerd[3760]: self.deserialize() Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/api.py", line 1797, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: return self._collection_mgr.deserialize() Oct 18 10:14:24 smduyuni cobblerd[3760]: File "/usr/lib/python3.6/site-packages/cobbler/cobbler_collections/manager.py", line 215, in deserialize Oct 18 10:14:24 smduyuni cobblerd[3760]: % (collection.collection_type(), e)) from e Oct 18 10:14:24 smduyuni cobblerd[3760]: cobbler.cexceptions.CX: "serializer: error loading collection system: 'power management type must be one of: aliyun,alom,amt,apc,apc_snmp,azure_arm,bladecenter,brocade,cisco_mds,cisco_ucs,compute,docker,drac5,eaton_snmp,emerson,eps,evacuate,gce,hds_cb,hpblade,ibmblade,ibmz,idrac,ifmib,ilo,ilo2,ilo3> Oct 18 10:14:24 smduyuni systemd[1]: cobblerd.service: Main process exited, code=exited, status=1/FAILURE Greets Torsten