Probleme nach Update von Debian Jessie auf Bullseye

Starlord
Beiträge: 39
Registriert: 18 Jan 2018, 12:04

Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von Starlord »

Liebes Forum,

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 !
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von m.radtke »

Hi

hast du denn auch,m nachdem du das opsi Repo auf Bullseye umgestellt hast, nochmals ein apt update && apt upgrade durchgeführt?

Wie ist denn der Paketstand?

Code: Alles auswählen

dpkg -l | grep opsi
Ist redis auch installiert?

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Starlord
Beiträge: 39
Registriert: 18 Jan 2018, 12:04

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von Starlord »

Moin,

ja genau ein update und upgrade wurden bereits gemacht. Zudem habe ich auch die nicht benötigten Programme mit autoremove entfernt.

Der aktuelle Paketstand sieht so aus:

Code: Alles auswählen

root@SERVER:/home/adminuser# dpkg -l | grep opsi
ii  opsi-atftpd                    0.7.dfsg-14                    amd64        advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                  4.0.7.6.34-2                   all          OPSI config editor
rc  opsi-depotserver               4.0.7.3-3                      all          opsi depotserver configuration package
ii  opsi-linux-bootimage           20220331-1                     all          opsi bootimage for netboot tasks.
ii  opsi-utils                     4.2.0.165-1                    amd64        Utilities for working with opsi
ii  opsiconfd                      4.2.0.255-1                    amd64        opsi configuration service
ii  opsipxeconfd                   4.2.0.27-1                     amd64        opsi pxe configuration service
rc  python-opsi                    4.0.7.69-1                     all          opsi python library
Redis ist in folgender Form installiert :

Code: Alles auswählen

ii  redis-server                   5:6.0.16-1+deb11u2             amd64        Persistent key-value database with network interface
ii  redis-tools                    5:6.0.16-1+deb11u2             amd64        Persistent key-value database with network interface (client)
thomas.besser
Beiträge: 461
Registriert: 09 Sep 2009, 09:40

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von thomas.besser »

Du hast ein Upgrade von "Jessie" direkt nach "Bullseye" vorgenommen? Also ohne die Zwischenschritte "Stretch" bzw. "Buster"?

Gruß
Thomas
Starlord
Beiträge: 39
Registriert: 18 Jan 2018, 12:04

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von Starlord »

Nein, ich bin von Jessie auf Stretch, auf Buster, auf Bullseye.

Gruß Niklas
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1354
Registriert: 01 Jul 2008, 12:10

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von wolfbardo »

Da fehlt noch was?

Code: Alles auswählen

opsi-server-full
oder

Code: Alles auswählen

opsi-server
Gruss
Bardo Wolf


OPSICONF 2024
https://opsi.org/en/opsiconf/

Basisworkshop Mainz :

17. - 20. 06. 2024


opsi support - uib gmbh
For productive opsi installations we recommend maintainance + support contracts which are the base of opsi development.

http://www.uib.de
Starlord
Beiträge: 39
Registriert: 18 Jan 2018, 12:04

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von Starlord »

Tatsächlich wurde mir nichts angezeigt von

Code: Alles auswählen

Opsi-server 

oder

Opis-server-full
kann ich den einfach so nachinstallieren ?

ist mir ein wunder wie gerade der nicht mehr installiert ist.

Gruß
Niklas
Starlord
Beiträge: 39
Registriert: 18 Jan 2018, 12:04

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von Starlord »

Ich bekomme bei der opsiconfd nun folgenden Fehler:

Code: Alles auswählen

root@SERVER:/home/adminuser# /usr/bin/opsiconfd
[3] [2022-04-26 08:48:27.184] [IP_ADDR    ] unknown command `ts.range`, with args beginning with: `opsiconfd:stats:client:failed_auth:IP_ADDR`, `1650955587000`, `1650955707000`, `aggregation`, `count`, `120000`,    (session.py:314)
Traceback (most recent call last):
  File "opsiconfd/session.py", line 350, in __call__
  File "opsiconfd/session.py", line 230, in handle_request
  File "opsiconfd/session.py", line 659, in check_access
  File "opsiconfd/session.py", line 625, in check_blocked
  File "aioredis/client.py", line 1085, in execute_command
  File "aioredis/client.py", line 1101, in parse_response
  File "aioredis/connection.py", line 919, in read_response
aioredis.exceptions.ResponseError: unknown command `ts.range`, with args beginning with: `opsiconfd:stats:client:failed_auth:IP_ADDR`, `1650955587000`, `1650955707000`, `aggregation`, `count`, `120000`, 
[3] [2022-04-26 08:48:27.205] [IP_ADDR    ] unknown command `ts.range`, with args beginning with: `opsiconfd:stats:client:failed_auth:IP_ADDR`, `1650955587000`, `1650955707000`, `aggregation`, `count`, `120000`,    (session.py:314)
Traceback (most recent call last):
  File "opsiconfd/session.py", line 350, in __call__
  File "opsiconfd/session.py", line 230, in handle_request
  File "opsiconfd/session.py", line 659, in check_access
  File "opsiconfd/session.py", line 625, in check_blocked
  File "aioredis/client.py", line 1085, in execute_command
  File "aioredis/client.py", line 1101, in parse_response
  File "aioredis/connection.py", line 919, in read_response
aioredis.exceptions.ResponseError: unknown command `ts.range`, with args beginning with: `opsiconfd:stats:client:failed_auth:IP_ADDR`, `1650955587000`, `1650955707000`, `aggregation`, `count`, `120000`, 
Benutzeravatar
fkalweit
uib-Team
Beiträge: 176
Registriert: 23 Okt 2020, 16:14

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von fkalweit »

Hallo,

kannst du mal die redis-cli öffnen und den Befehl info abschicken?
Was steht denn da unter Modules?

Sollte ungefähr so aussehen:

Code: Alles auswählen

# Modules
module:name=timeseries,ver=10414,api=1,filters=0,usedby=[],using=[],options=[]
Viele Grüße
Fabian
Starlord
Beiträge: 39
Registriert: 18 Jan 2018, 12:04

Re: Probleme nach Update von Debian Jessie auf Bullseye

Beitrag von Starlord »

Moin,

unter Modulen sieht es bei mir so aus :

Code: Alles auswählen

# Modules


also komplett leer.

Gruß Niklas
Antworten