Unable to update opsi products

Antworten
lphilippe.macaulay
Beiträge: 2
Registriert: 15 Apr 2014, 22:57

Unable to update opsi products

Beitrag von lphilippe.macaulay »

Hi,

I have just setup a new opsi instance and am at the installation guide step to update the opsi products.

I use the following command :

Code: Alles auswählen

 opsi-product-updater -i -vv
but I have the following error returned to me:

Code: Alles auswählen

Traceback:
     line 1093 in '<module>' in file '/usr/bin/opsi-product-updater'
     line 1086 in 'main' in file '/usr/bin/opsi-product-updater'
     line 161 in '__init__' in file '/usr/bin/opsi-product-updater'
     line 374 in 'getConfigBackend' in file '/usr/bin/opsi-product-updater'
     line 225 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/BackendManager.py'
     line 63 in '__init__' in file '/usr/lib/pymodules/python2.7/OPSI/Backend/Depotserver.py'
     ==>>> Backend missing data error: Depot 'ubuntu166opsi.vlab.domain.tld' not found in backend
ERROR: Backend missing data error: Depot 'ubuntu166opsi.vlab.domain.tld' not found in backend
Where: domain = mydomain and tld = my toplevel domain

I did some research and am not sure how to fix this.

Any suggestions? Thanks in advance
lphilippe.macaulay
Beiträge: 2
Registriert: 15 Apr 2014, 22:57

Re: Unable to update opsi products

Beitrag von lphilippe.macaulay »

I fixed my problem, so here's the answer in case anyone needs it.

When I added my linux machine to the domain, I had already installed and ran configuration for OPSI. When the config is run, it takes your current FQDN (fully qualified domain name) and add's it to some of the backend config files for OPSI. If you change your FQDN after the config is run it won't be able to update as it can't find a match on both sides, so anytime you have to change your FQDN, you have to rerun the configs for OPSI.

Here's what I did after updating my FQDN to fix the issue:

Code: Alles auswählen

opsi-setup --init-current-config
opsi-setup --set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart
Hope this helps
L-P
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Unable to update opsi products

Beitrag von n.wenselowski »

Hello L-P,

we have a backend method for renaming your servers:

Code: Alles auswählen

opsi-admin --no-depot -d method host_renameOpsiDepotserver <id> <newId>

With kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten