Depots wechseln immer wieder in den Maintenance Mode

Antworten
magicalUnicorn
Beiträge: 236
Registriert: 07 Mär 2019, 14:46

Depots wechseln immer wieder in den Maintenance Mode

Beitrag von magicalUnicorn »

Moin Zusammen,

wir haben 2 Depotserver, die immer wieder in den Maintenance-Mode wechseln. Das geschieht ohne bisher erkennbares Muster/Auslöser. Abhilfe schafft nur:

opsiconfd setup --configure-mysql

Und anschließender restart des opsiconfd. Woran kann das liegen?

Edit: Außerdem muss ich anschließend immer noch

opsiconfd setup --register-depot durchführen, da ich sonst keine Pakete mehr installieren darf. Folgende Fehlermeldung erhalte ich:
[3] [2026-01-08 12:53:36.232] [ ] Opsi service connection error: HTTPSConnectionPool(host='*depot*.*domain*', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused')) (opsipackagemanager.py:1367)
[3] [2026-01-08 12:53:36.232] [ ] Opsi service connection error: HTTPSConnectionPool(host='*depot*.*domain*', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused')) (opsipackagemanager.py:104)
Traceback (most recent call last):
File "opsiutils/opsipackagemanager.py", line 667, in getDepotConnection
KeyError: '*depot*.*domain*'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "urllib3/connection.py", line 198, in _new_conn
File "urllib3/util/connection.py", line 85, in create_connection
File "urllib3/util/connection.py", line 73, in create_connection
ConnectionRefusedError: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "urllib3/connectionpool.py", line 787, in urlopen
File "urllib3/connectionpool.py", line 488, in _make_request
File "urllib3/connectionpool.py", line 464, in _make_request
File "urllib3/connectionpool.py", line 1093, in _validate_conn
File "urllib3/connection.py", line 753, in connect
File "urllib3/connection.py", line 213, in _new_conn
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "requests/adapters.py", line 644, in send
File "urllib3/connectionpool.py", line 841, in urlopen
File "urllib3/util/retry.py", line 519, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='*depot*.*domain*', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "opsicommon/client/opsiservice.py", line 1337, in _request
File "requests/sessions.py", line 589, in request
File "requests/sessions.py", line 703, in send
File "requests/adapters.py", line 677, in send
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='*depot*.*domain*', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused'))
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "opsiutils/opsipackagemanager.py", line 102, in start
File "opsiutils/opsipackagemanager.py", line 1327, in installPackage
File "opsiutils/opsipackagemanager.py", line 677, in getDepotConnection
File "opsicommon/client/opsiservice.py", line 2429, in get_service_client
File "opsicommon/client/opsiservice.py", line 1164, in connect
File "opsicommon/client/opsiservice.py", line 1393, in _request
opsicommon.exceptions.OpsiServiceConnectionError: Opsi service connection error: HTTPSConnectionPool(host='*depot*.*domain*', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused'))
[3] [2026-01-08 12:53:36.235] [ ] Task 'Install of package 'ubuntu-desktop.opsi' on depot '*depot*.*domain*'' failed: Opsi service connection error: HTTPSConnectionPool(host='*depot*.*domain*', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused')) (opsipackagemanager.py:596)
Errors occurred:
Failure while processing Install of package(s) /work/tmp/ubuntu-desktop.opsi on depot '*depot*.*domain*':
Opsi service connection error: HTTPSConnectionPool(host='*depot*.*domain*', port=4447): Max retries exceeded with url: /rpc (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fbb16144910>: Failed to establish a new connection: [Errno 111] Connection refused'))
ERROR: Failed to process command 'install': 1 errors during the processing of tasks.
tik25oqg
Beiträge: 2
Registriert: 28 Mai 2025, 10:23

Re: Depots wechseln immer wieder in den Maintenance Mode

Beitrag von tik25oqg »

Hi,

ist zwar schon ein paar Tage her.
Konntest du dein Problem mit dem Maintenance-Mode lösen? Welche Muster/Auslöser hast du geprüft :?:
Läuft bei dir ggf. ein Cron/systemd-Timer für opsiconfd backup :?:
magicalUnicorn
Beiträge: 236
Registriert: 07 Mär 2019, 14:46

Re: Depots wechseln immer wieder in den Maintenance Mode

Beitrag von magicalUnicorn »

Moin,

leider nicht. Einen Cronjob dafür haben wir, aber ich konnte bisher keinen Zusammenhang feststellen. Aktuell bekomm ich beide Depots auch gar nicht mehr aus dem Maintenance Mode raus. Die Depots werden im configed als online angezeigt, ich kann auf sie zugreifen, auf den Clients auf dem Depot Software installieren etc.
Antworten