Seite 1 von 2

Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 07:17
von theman007
Hallo Forum,

ich erhalte bei der "Ubuntu" Installation eine Fehlermeldung, sobald der OPSI Client Installiert werden soll.

Im Log ist folgendes zu sehen:

Code: Alles auswählen

(10259)   [6] [2022-02-16 16:37:57.921] [               ] Executing: cat /mnt/hd/var/log/opsi-client-agent/opsi-script/opsi-client-agent.log   (Posix.py:912)
(10260)   [6] [2022-02-16 16:37:57.925] [               ] Using encoding 'UTF-8'   (Posix.py:948)
(10261)   [7] [2022-02-16 16:37:57.935] [               ] >>> cat: /mnt/hd/var/log/opsi-client-agent/opsi-script/opsi-client-agent.log: No such file or directory   (Posix.py:994)
(10262)   [7] [2022-02-16 16:37:57.936] [               ] >>>    (Posix.py:994)
(10263)   [7] [2022-02-16 16:37:57.936] [               ] Exit code: 1   (Posix.py:1001)
(10264)   [2] [2022-02-16 16:37:58.939] [               ] Command 'cat /mnt/hd/var/log/opsi-client-agent/opsi-script/opsi-client-agent.log' failed (1):
(10265)   cat: /mnt/hd/var/log/opsi-client-agent/opsi-script/opsi-client-agent.log: No such file or directory
(10266)      (Logger.py:344)
(10267)   Traceback (most recent call last):
(10268)     File "run-master", line 1660, in <module>
(10269)     File "/tmp/ubuntu.py", line 578, in <module>
(10270)       execute('cat %s/var/log/opsi-client-agent/opsi-script/opsi-client-agent.log' % (target))
(10271)     File "OPSI/System/Posix.py", line 1009, in execute
(10272)   RuntimeError: Command 'cat /mnt/hd/var/log/opsi-client-agent/opsi-script/opsi-client-agent.log' failed (1):
(10273)   cat: /mnt/hd/var/log/opsi-client-agent/opsi-script/opsi-client-agent.log: No such file or directory
(10274)  
Das System scheint das "Mountlaufwerk" verloren zu haben.
Hat jemand die gleiche Erfahrung gemacht und kann mir dazu was sagen?
Vor ein paar Wochen haben wir auf 4.2 geupdated und das ist die erste Ubuntu Installation seit dem, ob es damit zusammenhängt?


Vielen Dank

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 09:47
von m.radtke
Hi

mit der aktuellen Version des Ubuntu Pakets aus stable (4.2.0.2-1) sollte das Problem behoben sein.

Schau bitte nach welche Version du installiert hast.

Gruß
Mathias

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 10:26
von theman007
Hallo Mathias,


vielen Dank für die schnelle Rückmeldung.

Version OPSI:
opsi-server-full 4.2.0.57-1

Version Ubuntu Paket:
4.2.01-4

Kann ich nur Ubuntu updaten oder sollte ich NUR OPSI updaten?

Reicht also ein opsi-product-update?
Damit werden dann alle opsi Pakete die von euch kommen aktuallisiert, richtig?

Vielen Dank

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 10:40
von m.radtke
Du kannst die opsi Pakete unabhängig von den Server Paketen aktualisieren.

Am besten immer beides :)

Gruß
Mathias

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 10:47
von theman007
Also opsi-product-update?

Damit werden die von euch erstellten Pakete aktualisiert, richtig?

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 10:48
von m.radtke
fast

Code: Alles auswählen

opsi-package-updater -v update
Gruß
Mathias

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 11:50
von theman007
Hi,

kann ich nur ein bestimmtes netboot updaten?

Danke

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 12:26
von m.radtke
Hi

ja das kannst du

ich würde empfehlen mal das entsprechende Kapitel im Handbuch zu lesen.

Gruß
Mathias

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 13:58
von theman007
Hi,

vielen Dank! Das sieht gut aus, da ich nicht immer alle Produkte Updaten möchte.


Leider bekomme ich gerade nach der Ubuntu Installation ein anderes Problem.

Nach der Installation werden die localboot Produkte einfach nicht installiert.
Wenn ich ein localboot on Demand installieren möchte, dann erhalte ich

Code: Alles auswählen

....
..... port=4441): Max retries exceeded with url: /opsiclientd (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f4f0091f460>: Failed to establish a new connection: [Errno 111] Connection refused'))
Failed to establish a new connection: [Errno 111] Connection refused'))
Ist das auch ein bekanntes Problem?


Danke

Re: Ubuntu Installation - Abbruch - RuntimeError

Verfasst: 17 Feb 2022, 14:26
von m.radtke
Hi

ist denn das Property "install_opsi-client-agent" auf True gesetzt?

Gruß
Mathias