Seite 1 von 1

Error "opsiconfd" during server update

Verfasst: 20 Jun 2023, 14:22
von bourhis
Hi,

when I updated my server (apt update && apt dist-upgrade) I got an error while configuring "opsiconfd":

Code: Alles auswählen

[5] [2023-06-20 14:07:24.155] [               ] Running opsiconfd setup   (setup.py:212)
[4] [2023-06-20 14:07:24.178] [               ] Failed to setup backend: (MySQLdb.OperationalError) (2003, 'Can\'t connect to MySQL server on \'127.0.0.1\' (111 "Connection refused")')
(Background on this error at: https://sqlalche.me/e/14/e3q8)   (setup.py:231)
[4] [2023-06-20 14:07:41.799] [               ] Failed to get directories from depot: (MySQLdb.OperationalError) (2003, 'Can\'t connect to MySQL server on \'127.0.0.1\' (111 "Connection refused")')
(Background on this error at: https://sqlalche.me/e/14/e3q8)   (Rights.py:306)
[5] [2023-06-20 14:07:41.800] [               ] Setting rights on '/etc/shadow'   (Rights.py:236)
[5] [2023-06-20 14:07:41.800] [               ] Setting rights on '/var/log/opsi/opsiconfd/opsiconfd.log'   (Rights.py:236)
[5] [2023-06-20 14:07:41.801] [               ] Setting rights recursively on '/var/lib/opsiconfd/addons'   (Rights.py:236)
[5] [2023-06-20 14:07:41.810] [               ] Setting rights recursively on '/etc/opsi'   (Rights.py:236)
[5] [2023-06-20 14:07:41.811] [               ] Setting rights recursively on '/etc/opsi/ssl'   (Rights.py:236)
[5] [2023-06-20 14:07:41.811] [               ] Setting rights on '/etc/opsi/ssl/opsi-ca-cert.pem'   (Rights.py:236)
[5] [2023-06-20 14:07:41.812] [               ] Setting rights on '/etc/opsi/ssl/opsi-ca-cert.pem'   (Rights.py:236)
[5] [2023-06-20 14:07:41.812] [               ] Setting rights on '/etc/opsi/ssl/opsi-ca-key.pem'   (Rights.py:236)
[5] [2023-06-20 14:07:41.813] [               ] Setting rights on '/etc/opsi/ssl/opsiconfd-cert.pem'   (Rights.py:236)
[5] [2023-06-20 14:07:41.814] [               ] Setting rights on '/etc/opsi/ssl/opsiconfd-key.pem'   (Rights.py:236)
I had to restart to access my "opsi" server.

Is there a way to fix this problem or can I just ignore it?

Best regards.

Re: Error "opsiconfd" during server update

Verfasst: 20 Jun 2023, 15:41
von ThomasT
Hello,

there was a timing problem when performing upgrades. The sql-server did not start quickly enough for the opsiconfd. The bug should be fixed in one of the following updates.

Kind Regards