Cannot get opsi-confd service to start (it has never started)

Antworten
russellspicer
Beiträge: 5
Registriert: 27 Apr 2016, 17:46

Cannot get opsi-confd service to start (it has never started)

Beitrag von russellspicer »

I will start with that i am new to OPSI and fairly new to CentOS.

I am following the OPSI setup guide and when i type the command "sudo opsi-confd service restart" i get :

Stopping opsi config service... (not running).
Starting opsi config service...... (failed).

I see this in the log:

==================================================================
= opsi configuration service starting =
================================================================== (Logger.py|855)
[5] [Apr 27 10:42:53] Creating pid file u'/var/run/opsiconfd/opsiconfd.pid' (opsiconfd.py|622)
[5] [Apr 27 10:42:53] Starting opsiconfd main thread (opsiconfd.py|451)
[5] [Apr 27 10:42:53] Opening socket /var/run/opsiconfd/opsiconfd.socket for interprocess communication. (opsiconfd.py|428)
[4] [Apr 27 10:42:53] Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules' (Backend.py|416)
[5] [Apr 27 10:42:53] Disabling mysql backend and license management module: no customer in modules file (MySQL.py|492)
[5] [Apr 27 10:42:54] Added static content '/' which points to directory '/usr/share/opsiconfd/static' (opsiconfd.py|287)
[5] [Apr 27 10:42:54] Running on depot server 'opsi', exporting repository directory (opsiconfd.py|304)
[5] [Apr 27 10:42:54] Running on depot server 'opsi', exporting depot directory (opsiconfd.py|317)
[5] [Apr 27 10:42:54] Added webdav content 'repository' which points to directory '/var/lib/opsi/repository' () (opsiconfd.py|350)
[5] [Apr 27 10:42:54] Added webdav content 'depot' which points to directory '/var/lib/opsi/depot' () (opsiconfd.py|350)
[5] [Apr 27 10:42:54] Added webdav content 'configed' which points to directory '/usr/lib/configed' (u'noauth',) (opsiconfd.py|350)
[2] [Apr 27 10:42:54] Traceback: (Logger.py|765)
[2] [Apr 27 10:42:54] line 461 in 'run' in file '/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py' (Logger.py|765)
[2] [Apr 27 10:42:54] line 357 in '_startListening' in file '/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py' (Logger.py|765)
[2] [Apr 27 10:42:54] line 387 in '_startListeningHTTPS' in file '/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py' (Logger.py|765)
[2] [Apr 27 10:42:54] line 468 in 'listenSSL' in file '/usr/lib64/python2.6/site-packages/twisted/internet/posixbase.py' (Logger.py|765)
[2] [Apr 27 10:42:54] line 594 in '__init__' in file '/usr/lib64/python2.6/site-packages/twisted/protocols/tls.py' (Logger.py|765)
[2] [Apr 27 10:42:54] line 59 in 'getContext' in file '/usr/lib/python2.6/site-packages/OPSI/Service/__init__.py' (Logger.py|765)
[2] [Apr 27 10:42:54] ==>>> [('PEM routines', 'PEM_read_bio', 'no start line'), ('SSL routines', 'SSL_CTX_use_certificate_file', 'PEM lib')] (opsiconfd.py|473)
[5] [Apr 27 10:42:54] Stopping opsiconfd main thread (opsiconfd.py|177)
[5] [Apr 27 10:42:54] Deleting all sessions (Session.py|231)
[5] [Apr 27 10:42:54] Opsiconfd main thread exiting... (opsiconfd.py|476)
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Cannot get opsi-confd service to start (it has never started)

Beitrag von n.wenselowski »

Hi,

from the error message I think that the certificate the opsiconfd needs did not get created.

The following code will show an error that the file is not found in case it is missing.

Code: Alles auswählen

ls -l /etc/opsi/opsiconfd.pem
If it exists and has a size of 0 bytes you should create a new one with the following command:

Code: Alles auswählen

opsi-setup --renew-opsiconfd-cert
If it exists and the size is higher please use the following command to make sure the rights are set correctly:

Code: Alles auswählen

opsi-set-rights
Please try restarting the opsiconfd after your checks.


Kind regards

Niko

Code: Alles auswählen

import OPSI
russellspicer
Beiträge: 5
Registriert: 27 Apr 2016, 17:46

Re: Cannot get opsi-confd service to start (it has never started)

Beitrag von russellspicer »

This solved my issues, thank you so much!
Antworten