Seite 1 von 1

[GELÖST] Pakete installiert, aber noch erforderlich

Veröffentlicht: 29. September 2022 – 15:39 Uhr
von Chaudebault
Guten Morgen,
Mit den folgenden Konfigurationen:
Server: 2.2.2.12405
Agent: 2.2.2.12405
Konsole: 2.2.2.12405

Auf einigen Rechnern lassen sich die Pakete problemlos installieren, die Rechner verbleiben jedoch im Status „Zu aktualisieren“ und die Pakete werden weiterhin als „Installation erforderlich“ angezeigt:
Untitled.png
Untitled.png (2,96 KB) 4076 Aufrufe
Wenn ich den Beitrag lösche, erscheint er ohne sichtbare Pakete wieder:
Untitled2.png
Untitled2.png (1,44 KB) 4076 Aufrufe
Haben Sie Ideen, wie der Normalbetrieb wiederhergestellt werden kann?

Vielen Dank im Voraus für Ihre Antworten

Betreff: Pakete installiert, aber noch erforderlich

Veröffentlicht: 3. Oktober 2022 - 9:55 Uhr
von Chaudebault
Ich hatte eine Datenbank, die auf PostgreSQL Version 9.4 lief und die ich auf Version 13 (Debian 10.12) aktualisiert habe. Leider hat sich nichts geändert. Mir ist aufgefallen, dass die Bestandsanzeige der Workstations nicht mehr aktualisiert wird. Wenn ich beispielsweise Firefox 105 installiere, funktioniert alles auf der Workstation einwandfrei, aber in der Konsolenbestandsanzeige bleibt Version 102 mit dem Hinweis „Upgrade erforderlich“.
In der Datei waptserver.log finde ich folgende Endlosschleife:

Code: Alle auswählen

Oct  3 09:50:10 scd-wapt waptserver[1995]: 2022-10-03 09:50:10,478 [waptdb         ] CRITICAL Unable to update installed_softwares for 64BC2342-DE32-4536-0C40-2EE0F3B48AB0: ProgrammingError: ERREUR:  il n'existe aucune contrainte unique ou contrainte d'exclusion correspondant à la spécification ON CONFLICT
Oct  3 09:50:10 scd-wapt waptserver[1995]: 2022-10-03 09:50:10,481 [waptdb         ] CRITICAL Unable to update installed_packages for 64BC2342-DE32-4536-0C40-2EE0F3B48AB0: ProgrammingError: ERREUR:  il n'existe aucune contrainte unique ou contrainte d'exclusion correspondant à la spécification ON CONFLICT
Haben Sie irgendwelche Ideen?

Betreff: Pakete installiert, aber noch erforderlich

Veröffentlicht: 3. Oktober 2022 - 10:35 Uhr
von Sfonteneau
Guten Morgen

Um zu überprüfen, welche Version von PostgreSQL ausgeführt wird, können Sie Folgendes tun:

Code: Alle auswählen

ps aux |grep postgres
Welche Version der Datenbank wird in der Weboberfläche angezeigt?

Simon

Betreff: Pakete installiert, aber noch erforderlich

Veröffentlicht: 3. Oktober 2022 - 11:02 Uhr
von Chaudebault
Guten Morgen,

Folgende Version von PostgreSQL wird ausgeführt:

Code: Alle auswählen

postgres    2377  0.0  2.9 256440 58076 ?        Ss   09:27   0:00 /usr/lib/postgresql/13/bin/postgres -D /var/lib/postgresql/13/main -c config_file=/etc/postgresql/13/main/postgresql.conf
postgres    2379  0.0  2.5 256852 51160 ?        Ss   09:27   0:03 postgres: checkpointer 
postgres    2380  0.0  0.5 256700 10004 ?        Ss   09:27   0:00 postgres: background writer 
postgres    2381  0.0  0.5 256440 10280 ?        Ss   09:27   0:01 postgres: walwriter 
postgres    2382  0.0  0.4 257712  8876 ?        Ss   09:27   0:00 postgres: autovacuum launcher 
postgres    2383  0.0  0.2  68824  5760 ?        Ss   09:27   0:01 postgres: stats collector 
postgres    2384  0.0  0.3 257560  6816 ?        Ss   09:27   0:00 postgres: logical replication launcher 
postgres    3638  0.2  3.0 262256 60204 ?        Ss   10:54   0:00 postgres: wapt wapt [local] idle
Und hier sind die Versionen auf der Weboberfläche:
WAPT-Serverversion: 2.2.3
WAPT-Agent-Version: 2.2.3.12463
WAPT-Setup-Version: 2.2.3.12463
WAPT Deploy Version: 2.2.3.12463
Basisstatus: OK (2.2.6.2)

Betreff: Pakete installiert, aber noch erforderlich

Veröffentlicht: 3. Oktober 2022 - 11:30 Uhr
von dcardon
Guten Morgen,

Nutzt du Debian 10 oder Debian 11? Die mit Debian 10 mitgelieferte Samba-Version ist Version 11, nicht Version 13.

Welche Version haben Sie vor dem Upgrade auf 2.2 verwendet? Haben Sie die Version 1.8.2 installiert?

Könnten Sie bitte den folgenden Befehl ausführen, um zu sehen, wo das Datenbank-Upgrade fehlschlägt?

Code: Alle auswählen

cd /opt/wapt
sudo -u wapt PYTHONPATH=/opt/wapt /opt/wapt/bin/python -c "from waptserver.model import *; logging.basicConfig(format='%(asctime)s %(levelname)s %(message)s'); logger.setLevel(logging.DEBUG); load_db_config(); set_db_version('2.1.0'); print(upgrade_db_structure())"
Aufrichtig,

Denis

Betreff: Pakete installiert, aber noch erforderlich

Veröffentlicht: 3. Oktober 2022 – 13:36 Uhr
von Chaudebault
Guten Morgen,

Tut mir leid, Debian 11, ich hatte vergessen, dass ich den Server gemäß der Dokumentation für den Übergang von 1.8.2 auf 2.2 aktualisiert hatte.

Hier ist die Auftragsbestätigung:

Code: Alle auswählen

2022-10-03 13:33:37,297 INFO Initializing a DB connection pool for db host None:5432 db_name:wapt. Size:90
2022-10-03 13:33:37,297 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,306 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,308 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,309 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,309 INFO Current DB: {'host': None, 'port': 5432, 'user': 'wapt', 'password': None} version: 2.1.0.0
2022-10-03 13:33:37,309 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,310 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,310 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,311 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,311 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,312 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,312 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,313 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,313 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,314 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,314 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,315 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,315 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,316 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,316 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,317 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,317 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,317 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,318 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,318 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,318 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,319 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,319 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,320 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,320 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,321 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,321 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,323 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,323 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,324 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,324 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,326 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,326 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,326 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,327 INFO Connecting to waptdb explicitely. Count: 0
2022-10-03 13:33:37,327 DEBUG Disconnecting from waptdb explicitely. Count: 1
2022-10-03 13:33:37,328 INFO Migrating from 2.1.0.0 to 2.1.0.1
2022-10-03 13:33:37,328 INFO Switch column type (CharField -> TextField) for normalization table
2022-10-03 13:33:37,344 INFO Migrating from 2.1.0.1 to 2.2.3.0
2022-10-03 13:33:37,349 INFO Migrating from 2.2.3.0 to 2.2.3.7
2022-10-03 13:33:37,355 INFO Migrating from 2.2.3.7 to 2.2.4.3
2022-10-03 13:33:37,355 INFO Switch column type (CharField -> TextField) for reporting table
2022-10-03 13:33:37,361 INFO Migrating from 2.2.4.3 to 2.2.4.6
2022-10-03 13:33:37,402 INFO Migrating from 2.2.4.6 to 2.2.4.7
2022-10-03 13:33:37,406 INFO Migrating from 2.2.4.7 to 2.2.4.10
2022-10-03 13:33:37,426 INFO Migrating from 2.2.4.10 to 2.2.5.1
2022-10-03 13:33:37,469 INFO Migrating from 2.2.5.1 to 2.2.5.2
2022-10-03 13:33:37,479 INFO Migrating from 2.2.5.2 to 2.2.6.0
2022-10-03 13:33:37,479 INFO Switch column type (TextField -> BinaryJsonField) for audit data
2022-10-03 13:33:37,498 INFO Migrating from 2.2.6.0 to 2.2.6.1
2022-10-03 13:33:37,504 INFO Migrating from 2.2.6.1 to 2.2.6.2
None
Das Datenbank-Update scheint das Problem behoben zu haben; die Inventardaten werden aktualisiert!

Vielen Dank für Ihre Hilfe.

Aufrichtig