Database empty
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Database empty
If the opsi-admin command showed earlier queries the database without going through the opsiconfd. This makes me believe that the data still is present.
Is the output different if you run the opsi-admin command with or without "-d"?
Could you make an backup (see opsi-backup in the manual) and then try to restart the opsiconfd?
Kind regards
Niko
Code: Alles auswählen
import OPSI
Re: Database empty
Sorry for my late reply.
For the opsi-admin command without "-d"
And with "-d", I've a lot of informations like thisroot@OPSI:/etc/init.d# opsi-admin method host_getObjects
Password:
root@OPSI:/etc/init.d#
I've try to restard the opsiconfd but I've an error message.root@OPSI:/etc/init.d# opsi-admin -d method host_getObjects
[
{
"masterDepotId" : null,
"ident" : "opsi.si-*****.zone",
"networkAddress" : "10.***.1.0/255.255.255.0",
"description" : "",
"inventoryNumber" : "",
"ipAddress" : "10.***.1.57",
"repositoryRemoteUrl" : "webdavs://opsi.si-*****.zone:4447/repository",
"depotLocalUrl" : "file:///var/lib/opsi/depot",
"isMasterDepot" : true,
"notes" : "",
"hardwareAddress" : "a6:33:4e:f4:02:bc",
"maxBandwidth" : 0,
"repositoryLocalUrl" : "file:///var/lib/opsi/repository",
"opsiHostKey" : "59503c5795cd055ad6d40f5c498c7696",
"type" : "OpsiConfigserver",
"id" : "opsi.si-*****.zone",
"depotWebdavUrl" : "webdavs://opsi.si-*****.zone:4447/depot",
"depotRemoteUrl" : "smb://opsi.si-*****.zone/opsi_depot"
},
root@OPSI:/etc/init.d# opsiconfd reload
[1] [Nov 26 10:23:50]
==================================================================
= opsi configuration service starting =
==================================================================
(Logger.py|840)
[5] [Nov 26 10:23:50] Starting opsiconfd main thread (opsiconfd.py|447)
[5] [Nov 26 10:23:50] Opening socket /var/run/opsiconfd/opsiconfd.socket for interprocess communication. (opsiconfd.py|424)
[4] [Nov 26 10:23:50] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|365)
[5] [Nov 26 10:23:50] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|435)
[5] [Nov 26 10:23:50] Added static content '/' which points to directory '/usr/share/opsiconfd/static' (opsiconfd.py|283)
[5] [Nov 26 10:23:51] Running on depot server 'opsi.si-floirac.zone', exporting repository directory (opsiconfd.py|300)
[5] [Nov 26 10:23:51] Running on depot server 'opsi.si-floirac.zone', exporting depot directory (opsiconfd.py|313)
[5] [Nov 26 10:23:51] Added webdav content 'repository' which points to directory '/var/lib/opsi/repository' () (opsiconfd.py|346)
[5] [Nov 26 10:23:51] Added webdav content 'depot' which points to directory '/var/lib/opsi/depot' () (opsiconfd.py|346)
[5] [Nov 26 10:23:51] Added webdav content 'configed' which points to directory '/usr/lib/configed' (u'noauth',) (opsiconfd.py|346)
[5] [Nov 26 10:23:51] Accepting HTTPS requests on 0.0.0.0:4447 (opsiconfd.py|393)
[5] [Nov 26 10:23:51] Publishing opsiconfd over zeroconf as 'opsi configuration daemon' on '4447' (opsiconfd.py|407)
[3] [Nov 26 10:23:51] Failed to publish opsiconfd over zeroconf: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Avahi was not provided by any .service files (opsiconfd.py|412)
Re: Database empty
My probleme is still present.
Nobody has an idea?
Thx
Regards.
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Database empty
Somehow the direct data access (with -d) does get you results but the access through the opsiconfd doesn't.
The only thing I currently can think of is a zombie process. Does "killall -9 opsiconfd" followed by a restart of the service help?
What does "grep -v "#" /etc/opsi/backendManager/dispatch.conf" return?
With kind regards
Niko
Code: Alles auswählen
import OPSI
Re: Database empty
Thx for your help.
There is no difference after have kill all process "opsiconfd" and restart the service.
grep -v "#" /etc/opsi/backendManager/dispatch.conf return
Regardsbackend_.* : file, opsipxeconfd
host_.* : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.* : file, opsipxeconfd
license.* : mysql
softwareLicense.* : mysql
audit.* : mysql
.* : file
Re: Database empty
your dispatch.conf is not ok.
The backend_.* line must inherit all used backends.
Code: Alles auswählen
backend_.* : file, mysql, opsipxeconfd
Code: Alles auswählen
opsi-set-rights
opsi-setup --init-current-config
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
Re: Database empty
Thx for your reply.
Yeah it works, I see the client in the opsi configuration editor

but I've the same result for the dispatch.conf
Code: Alles auswählen
root@OPSI:~# grep -v "#" /etc/opsi/backendManager/dispatch.conf
backend_.* : file, opsipxeconfd
host_.* : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.* : file, opsipxeconfd
license.* : mysql
softwareLicense.* : mysql
audit.* : mysql
.* : file
Re: Database empty
you have to edit your dispatch.conf manually

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