ich habe heute unseren Debian Server, auf dem Opi 4.2 läuft, auf Debian Bullseye geupdatet. Dies lief auch ohne Probleme durch, die Repositories wurden angepasst und die Pakete geupdated. Jedoch startet augenscheinlich unser Backend nicht mehr und wir haben somit keinen Zugriff mehr auf die Weboberfläche oder config.jnlp . Dazu habe ich bereits versucht, nachdem ich dazu einen Foreneintrag gelesen habe (viewtopic.php?t=11709) , das Zertifikat zu erneuern dort bekomme ich aber folgende Fehlermeldung:
Code: Alles auswählen
root@SERVER:/# opsi-setup --init-renew-opsiconfd-cert
Usage: opsi-setup [options]
Options:
-h, --help show this help
-l log-level 0..9
-V, --version Show version info and exit.
--log-file <path> path to log file
--backend-config <json hash> overwrite backend config hash values
--ip-address <ip> force to this ip address (do not lookup by name)
--register-depot register depot at config server
--set-rights [path] set default rights on opsi files (in [path] only)
--init-current-config init current backend configuration
--update-from=<version> update from opsi version <version>
--update-mysql update mysql backend
--update-file update file backend
--configure-mysql configure mysql backend
--edit-config-defaults edit global config defaults
--cleanup-backend cleanup backend
--auto-configure-samba patch smb.conf
--auto-configure-dhcpd patch dhcpd.conf
--patch-sudoers-file patching sudoers file for tasks in opsiadmin context.
[3] [2022-04-25 15:49:18.532] [ ] option --init-renew-opsiconfd-cert not recognized (opsisetup.py:1027)
Traceback (most recent call last):
File "opsiutils/opsisetup.py", line 1023, in main
File "opsiutils/opsisetup.py", line 884, in opsisetup_main
File "getopt.py", line 93, in getopt
File "getopt.py", line 157, in do_longs
File "getopt.py", line 174, in long_has_args
getopt.GetoptError: option --init-renew-opsiconfd-cert not recognized
ERROR: option --init-renew-opsiconfd-cert not recognized
bzw. opsi-setup --init-current-config:
Code: Alles auswählen
root@SERVER:/etc/init.d# opsi-setup --init-current-config
[3] [2022-04-25 15:53:26.139] [ ] multiple exception types must be parenthesized (<string>, line 463) (Extender.py:80)
Traceback (most recent call last):
File "OPSI/Backend/Manager/Extender.py", line 78, in __createExtensions
File "<string>", line 463
except Exception, e:
^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
[3] [2022-04-25 15:53:26.139] [ ] Backend configuration error: Failed to read extensions from '/etc/opsi/backendManager/extend.d': Error reading file '/etc/opsi/backendManager/extend.d/20_legacy.conf': multiple exception types must be parenthesized (<string>, line 463) (opsisetup.py:1027)
Traceback (most recent call last):
File "OPSI/Backend/Manager/Extender.py", line 78, in __createExtensions
File "<string>", line 463
except Exception, e:
^^^^^^^^^^^^
SyntaxError: multiple exception types must be parenthesized
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "OPSI/Backend/Manager/Extender.py", line 81, in __createExtensions
RuntimeError: Error reading file '/etc/opsi/backendManager/extend.d/20_legacy.conf': multiple exception types must be parenthesized (<string>, line 463)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "opsiutils/opsisetup.py", line 1023, in main
File "opsiutils/opsisetup.py", line 986, in opsisetup_main
File "OPSI/Util/Task/InitializeBackend.py", line 46, in initializeBackends
File "OPSI/Backend/Manager/_Manager.py", line 215, in __init__
File "OPSI/Backend/Manager/Extender.py", line 59, in __init__
File "OPSI/Backend/Manager/Extender.py", line 90, in __createExtensions
opsicommon.exceptions.BackendConfigurationError: Backend configuration error: Failed to read extensions from '/etc/opsi/backendManager/extend.d': Error reading file '/etc/opsi/backendManager/extend.d/20_legacy.conf': multiple exception types must be parenthesized (<string>, line 463)
ERROR: Backend configuration error: Failed to read extensions from '/etc/opsi/backendManager/extend.d': Error reading file '/etc/opsi/backendManager/extend.d/20_legacy.conf': multiple exception types must be parenthesized (<string>, line 463)
Welche Info vorab vll. noch hilft, so sieht es aus wenn wir versuchen opsiconfd zu starten :
Code: Alles auswählen
root@SERVER:/etc/init.d# /usr/bin/opsiconfd
Logging error:
Traceback (most recent call last):
File "opsiconfd/logging.py", line 318, in _start
File "aioredis/client.py", line 1082, in execute_command
File "aioredis/connection.py", line 1416, in get_connection
File "aioredis/connection.py", line 698, in connect
ConnectionError: Error 111 connecting to localhost:6379. 111.
Ich hoffe hier kann uns jemand helfen. Vielen Dank vor ab !