opsiconfd status is activating

rmtevesjr
Beiträge: 71
Registriert: 12 Jul 2012, 14:57

opsiconfd status is activating

Beitragvon rmtevesjr » 03 Aug 2019, 16:29

Hi, i can't get opsiconfd running. I saw some related problem in this forum and suggestion is to create new certificate. I did that already, at first the service started but after sometime opsiconfd again does not start. If I run opsiconfd from command line, I'm getting the error below.

b006@su1234567:~$ sudo opsiconfd
Got new config
[1] [Aug 03 22:21:55]
==================================================================
= opsi configuration service starting =
================================================================== (Logger.py|888)
[5] [Aug 03 22:21:55] Creating pid file u'/var/run/opsiconfd/opsiconfd.pid' (opsiconfd.py|531)
[5] [Aug 03 22:21:55] Starting opsiconfd main thread (opsiconfd.py|357)
[5] [Aug 03 22:21:55] Added static content '/' which points to directory '/usr/share/opsiconfd/static' (opsiconfd.py|219)
[5] [Aug 03 22:21:55] Running on depot server 'su10200335.bdo.com.ph', exporting repository directory (opsiconfd.py|235)
[5] [Aug 03 22:21:55] Running on depot server 'su10200335.bdo.com.ph', exporting depot directory (opsiconfd.py|248)
[5] [Aug 03 22:21:55] Added webdav content 'repository' which points to directory '/var/lib/opsi/repository' () (opsiconfd.py|281)
[5] [Aug 03 22:21:55] Added webdav content 'depot' which points to directory '/var/lib/opsi/depot' () (opsiconfd.py|281)
[5] [Aug 03 22:21:55] Added webdav content 'configed' which points to directory '/usr/lib/configed' (u'noauth',) (opsiconfd.py|281)
[5] [Aug 03 22:21:55] Uptime: 0:00:00.207136 (opsiconfd.py|381)
[5] [Aug 03 22:21:55] Statistics: (opsiconfd.py|383)
[5] [Aug 03 22:21:55] Methodname Callcount Average processing duration (opsiconfd.py|384)
[2] [Aug 03 22:21:55] Traceback: (Logger.py|798)
[2] [Aug 03 22:21:55] File "/usr/lib/python2.7/dist-packages/opsiconfd/opsiconfd.py", line 364, in run
self._startListening()
(Logger.py|798)
[2] [Aug 03 22:21:55] File "/usr/lib/python2.7/dist-packages/opsiconfd/opsiconfd.py", line 288, in _startListening
self._startListeningHTTPS()
(Logger.py|798)
[2] [Aug 03 22:21:55] File "/usr/lib/python2.7/dist-packages/opsiconfd/opsiconfd.py", line 324, in _startListeningHTTPS
sslContext
(Logger.py|798)
[2] [Aug 03 22:21:55] File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 505, in listenSSL
port = self.listenTCP(port, tlsFactory, backlog, interface)
(Logger.py|798)
[2] [Aug 03 22:21:55] File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 478, in listenTCP
p.startListening()
(Logger.py|798)
[2] [Aug 03 22:21:55] File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 983, in startListening
raise CannotListenError(self.interface, self.port, le)
(Logger.py|798)
[2] [Aug 03 22:21:55] ==>>> Couldn't listen on any:4447: [Errno 98] Address already in use. (opsiconfd.py|372)
[5] [Aug 03 22:21:55] Stopping opsiconfd main thread (opsiconfd.py|120)
[5] [Aug 03 22:21:55] Deleting all sessions (Session.py|240)
[5] [Aug 03 22:21:55] Opsiconfd main thread exiting... (opsiconfd.py|375)
b006@su1234567:~$

Benutzeravatar
ThomasT
uib-Team
Beiträge: 236
Registriert: 26 Jun 2013, 12:26

Re: opsiconfd status is activating

Beitragvon ThomasT » 05 Aug 2019, 07:35

The opsiconfd can't start, as there is already a process listening on :4447.
First make sure, opsi is really stopped before running opsiconfd from commandline,
second check with the help of for example

Code: Alles auswählen

sudo netstat -tnlp | grep 4447
what process is listening on :4447.
Kein Support per DM!
_________________________
opsi support - https://www.uib.de/
For productive opsi installations we recommend support contracts.