DataBackend has no attribute config_getObjects error

Antworten
tomharvey
Beiträge: 2
Registriert: 17 Nov 2011, 19:44

DataBackend has no attribute config_getObjects error

Beitrag von tomharvey »

Hi all, hoping you can help.

I'm getting the following when I try to run init-current-config:

Code: Alles auswählen

sudo opsi-setup --init-current-config
[5] [Nov 17 18:50:00] Creating base path: '/var/lib/opsi/config' (File.py|215)
[5] [Nov 17 18:50:00] Getting current system config (opsi-setup|66)
[5] [Nov 17 18:50:00] System information: (opsi-setup|116)
[5] [Nov 17 18:50:00]    distributor  : Ubuntu (opsi-setup|117)
[5] [Nov 17 18:50:00]    distribution : Ubuntu 10.04.2 LTS (opsi-setup|118)
[5] [Nov 17 18:50:00]    ip address   : 10.11.100.15 (opsi-setup|119)
[5] [Nov 17 18:50:00]    netmask      : 255.255.255.0 (opsi-setup|120)
[5] [Nov 17 18:50:00]    subnet       : 10.11.100.0 (opsi-setup|121)
[5] [Nov 17 18:50:00]    broadcast    : 10.11.100.255 (opsi-setup|122)
[5] [Nov 17 18:50:00]    fqdn         : server.domain.com (opsi-setup|123)
[5] [Nov 17 18:50:00]    hostname     : server (opsi-setup|124)
[5] [Nov 17 18:50:00]    domain       : domain.com (opsi-setup|125)
[5] [Nov 17 18:50:00]    win domain   : DOMAIN (opsi-setup|126)
[5] [Nov 17 18:50:01] Creating base path: '/var/lib/opsi/config' (File.py|215)
[2] [Nov 17 18:50:01] Traceback: (Logger.py|742)
[2] [Nov 17 18:50:01]      line 3068 in '<module>' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 3027 in 'main' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 2490 in 'initializeBackends' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 2511 in 'initializeConfigs' in file '/usr/bin/opsi-setup' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 1 in 'config_getIdents' in file '<string>' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 408 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 1 in 'config_getIdents' in file '<string>' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 408 in '_executeMethod' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Nov 17 18:50:01]      line 1698 in 'config_getIdents' in file '/usr/lib/pymodules/python2.6/OPSI/Backend/Backend.py' (Logger.py|742)
[2] [Nov 17 18:50:01]      ==>>> ExtendedConfigDataBackend instance has no attribute 'config_getObjects' (opsi-setup|3076)
and the contents of /etc/opsi/backendManager/dispatch.conf are:

Code: Alles auswählen

backend_.*         : file, opsipxeconfd
host_.*            : file, opsipxeconfd
I assume this is to do with the backendManager stuff...but I'm not sure.

Any suggestions would be very appreciated.
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1412
Registriert: 01 Jul 2008, 12:10

Re: DataBackend has no attribute config_getObjects error

Beitrag von wolfbardo »

tomharvey hat geschrieben:
and the contents of /etc/opsi/backendManager/dispatch.conf are:

Code: Alles auswählen

backend_.*         : file, opsipxeconfd
host_.*            : file, opsipxeconfd
I assume this is to do with the backendManager stuff...but I'm not sure.

Any suggestions would be very appreciated.
really only two lines?

try for instance

Code: Alles auswählen

backend_.*         : file, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
.*                 : file
regards,
Bardo Wolf


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


tomharvey
Beiträge: 2
Registriert: 17 Nov 2011, 19:44

Re: DataBackend has no attribute config_getObjects error

Beitrag von tomharvey »

Thanks for the quick reply - that's worked a treat.
Antworten