Installation von Ubuntu läuft auf Fehler seit Update der Serverpakete

Antworten
sehmer
Beiträge: 2
Registriert: 27 Feb 2025, 16:11

Installation von Ubuntu läuft auf Fehler seit Update der Serverpakete

Beitrag von sehmer »

Hallo an alle,

Ich habe das Problem, dass ich, seit den Paketupdates auf dem opsi Server, Ubuntu nicht mehr installieren kann.
Das Bootimage wird geladen und die Installation startet, aber an dem Punkt während der Erstellung des Filesystems auf der Partition 4 (LVM), kommt die Fehlermeldung OSError (5, 'Input/Output error') (Zeile 5932 im folgenden Log) auf dem Client.

Auszug aus dem bootimage-Log:

Code: Alles auswählen

(5630)    [5] [2025-09-16 13:17:26.553] [               ] Create boot partition on /dev/nvme0n1p3 start: 0M, size: 1000M   (<string>:262)
(5632)    [6] [2025-09-16 13:17:26.555] [               ] Executing: /usr/sbin/sgdisk --new 3::+1000M -c 3:"boot" -t 3:8300 -p /dev/nvme0n1   (Posix.py:1003)
(5633)    [6] [2025-09-16 13:17:26.556] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5652)    [6] [2025-09-16 13:17:27.574] [               ] Executing: /bin/sleep 2   (Posix.py:1003)
(5653)    [6] [2025-09-16 13:17:27.575] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5656)    [6] [2025-09-16 13:17:29.579] [               ] Executing: /usr/sbin/sgdisk -p /dev/nvme0n1   (Posix.py:1003)
(5657)    [6] [2025-09-16 13:17:29.580] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5674)    [5] [2025-09-16 13:17:29.593] [               ] /dev/nvme0n1p3 exists as device - fine   (<string>:247)
(5675)    [5] [2025-09-16 13:17:29.601] [               ] Partition /dev/nvme0n1p3 has a correct block alignment   (<string>:154)
(5676)    [5] [2025-09-16 13:17:29.602] [               ] Create lvm partition on /dev/nvme0n1p4 start: 0M, size: -1M   (<string>:262)
(5678)    [6] [2025-09-16 13:17:29.602] [               ] Executing: /usr/sbin/sgdisk --new 4:: -c 4:"LVM" -t 4:8300 -p /dev/nvme0n1   (Posix.py:1003)
(5679)    [6] [2025-09-16 13:17:29.603] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5699)    [6] [2025-09-16 13:17:30.616] [               ] Executing: /bin/sleep 2   (Posix.py:1003)
(5700)    [6] [2025-09-16 13:17:30.616] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5704)    [6] [2025-09-16 13:17:32.621] [               ] Executing: /usr/sbin/sgdisk -p /dev/nvme0n1   (Posix.py:1003)
(5705)    [6] [2025-09-16 13:17:32.622] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5723)    [5] [2025-09-16 13:17:32.635] [               ] /dev/nvme0n1p4 exists as device - fine   (<string>:247)
(5724)    [5] [2025-09-16 13:17:32.644] [               ] Partition /dev/nvme0n1p4 has a correct block alignment   (<string>:154)
(5726)    [6] [2025-09-16 13:17:32.645] [               ] Executing: pvcreate /dev/nvme0n1p4   (Posix.py:1003)
(5727)    [6] [2025-09-16 13:17:32.645] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5732)    [6] [2025-09-16 13:17:32.675] [               ] Executing: vgcreate vglvm /dev/nvme0n1p4   (Posix.py:1003)
(5733)    [6] [2025-09-16 13:17:32.675] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5738)    [6] [2025-09-16 13:17:32.715] [               ] Executing: lvcreate -Wy -Zy --yes -L 4000M -n swap vglvm   (Posix.py:1003)
(5739)    [6] [2025-09-16 13:17:32.715] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5744)    [6] [2025-09-16 13:17:32.755] [               ] Executing: lvcreate -Wy -Zy --yes -l 100%FREE -n linux vglvm   (Posix.py:1003)
(5745)    [6] [2025-09-16 13:17:32.756] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5749)    [5] [2025-09-16 13:17:32.799] [               ] Create ext4 filesystem on boot partition   (<string>:569)
(5750)    [5] [2025-09-16 13:17:32.799] [               ] Create file system ext4 on partition boot (/dev/nvme0n1p3)   (<string>:338)
(5752)    [6] [2025-09-16 13:17:32.799] [               ] Executing: sync   (Posix.py:1003)
(5753)    [6] [2025-09-16 13:17:32.800] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5756)    [6] [2025-09-16 13:17:42.803] [               ] Executing: /sbin/mkfs.ext4 -F -L "boot" /dev/nvme0n1p3   (Posix.py:1003)
(5757)    [6] [2025-09-16 13:17:42.805] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5773)    [6] [2025-09-16 13:17:42.863] [               ] Executing: blkid   (Posix.py:1003)
(5774)    [6] [2025-09-16 13:17:42.864] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5783)    [5] [2025-09-16 13:17:47.923] [               ] /dev/nvme0n1p3 exists as device - fine   (<string>:328)
(5784)    [5] [2025-09-16 13:17:47.923] [               ] /dev/nvme0n1p3 created and formated   (<string>:366)
(5785)    [5] [2025-09-16 13:17:47.923] [               ] Create ext4 filesystem on system partition   (<string>:582)
(5786)    [5] [2025-09-16 13:17:47.924] [               ] Create file system ext4 on partition system (/dev/mapper/vglvm-linux)   (<string>:338)
(5788)    [6] [2025-09-16 13:17:47.925] [               ] Executing: sync   (Posix.py:1003)
(5789)    [6] [2025-09-16 13:17:47.926] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5793)    [6] [2025-09-16 13:17:57.934] [               ] Executing: /sbin/mkfs.ext4 -F -L "linux" /dev/mapper/vglvm-linux   (Posix.py:1003)
(5794)    [6] [2025-09-16 13:17:57.935] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5811)    [6] [2025-09-16 13:17:58.821] [               ] Executing: blkid   (Posix.py:1003)
(5812)    [6] [2025-09-16 13:17:58.822] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5822)    [5] [2025-09-16 13:18:03.883] [               ] /dev/mapper/vglvm-linux exists as device - fine   (<string>:328)
(5823)    [5] [2025-09-16 13:18:03.883] [               ] /dev/mapper/vglvm-linux created and formated   (<string>:366)
(5824)    [5] [2025-09-16 13:18:03.884] [               ] Create swap and swapon swap partition   (<string>:597)
(5826)    [6] [2025-09-16 13:18:03.884] [               ] Executing: mkswap -L swap /dev/mapper/vglvm-swap   (Posix.py:1003)
(5827)    [6] [2025-09-16 13:18:03.885] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5833)    [6] [2025-09-16 13:18:03.895] [               ] Executing: blkid   (Posix.py:1003)
(5834)    [6] [2025-09-16 13:18:03.895] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5844)    [6] [2025-09-16 13:18:03.908] [               ] Executing: blkid -o value -s UUID /dev/mapper/vglvm-linux   (Posix.py:1003)
(5845)    [6] [2025-09-16 13:18:03.908] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5850)    [6] [2025-09-16 13:18:03.911] [               ] Executing: blkid -o value -s UUID /dev/mapper/vglvm-swap   (Posix.py:1003)
(5851)    [6] [2025-09-16 13:18:03.911] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5856)    [6] [2025-09-16 13:18:03.913] [               ] Executing: blkid -o value -s UUID /dev/nvme0n1p3   (Posix.py:1003)
(5857)    [6] [2025-09-16 13:18:03.914] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5862)    [6] [2025-09-16 13:18:03.916] [               ] Executing: /bin/efibootmgr -v   (Posix.py:1003)
(5863)    [6] [2025-09-16 13:18:03.916] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5887)    [5] [2025-09-16 13:18:03.926] [               ] Current (net) boot entry: UEFI: PXE IPv4 Intel(R) Ethernet Connection (11) I219-LM   (<string>:706)
(5888)    [6] [2025-09-16 13:18:03.926] [               ] JSON-RPC request to https://........:4447: id='......', method=config_createUnicode, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=300.0   (opsiservice.py:1663)
(5892)    [6] [2025-09-16 13:18:03.958] [               ] Got response status=200, id='........', method=config_createUnicode, Content-Type=application/msgpack, Content-Encoding=, duration=0.032s   (opsiservice.py:1687)
(5893)    [6] [2025-09-16 13:18:03.958] [               ] JSON-RPC request to https://........:4447: id='................', method=configState_create, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=300.0   (opsiservice.py:1663)
(5895)    [6] [2025-09-16 13:18:03.968] [               ] Got response status=200, id='................', method=configState_create, Content-Type=application/msgpack, Content-Encoding=, duration=0.010s   (opsiservice.py:1687)
(5896)    [5] [2025-09-16 13:18:03.968] [               ] mount swap partition   (ubuntu.py:466)
(5898)    [6] [2025-09-16 13:18:03.968] [               ] Executing: swapon /dev/mapper/vglvm-swap   (Posix.py:1003)
(5899)    [6] [2025-09-16 13:18:03.969] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5901)    [5] [2025-09-16 13:18:03.973] [               ] mount system partition   (ubuntu.py:468)
(5902)    [5] [2025-09-16 13:18:03.975] [               ] /mnt/hd exists as directory - fine   (<string>:393)
(5903)    [5] [2025-09-16 13:18:03.976] [               ] mountpoint /mnt/hd exists   (<string>:409)
(5904)    [5] [2025-09-16 13:18:03.976] [               ] mountpoint /mnt/hd >> /dev/null 2>&1   (<string>:414)
(5905)    [5] [2025-09-16 13:18:03.979] [               ] Nothing mounted on /mnt/hd - fine   (<string>:429)
(5906)    [5] [2025-09-16 13:18:03.982] [               ] /dev/mapper/vglvm-linux is not mounted   (<string>:453)
(5908)    [6] [2025-09-16 13:18:03.982] [               ] Executing: sync   (Posix.py:1003)
(5909)    [6] [2025-09-16 13:18:03.983] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5911)    [5] [2025-09-16 13:18:03.990] [               ]  mount -t ext4 /dev/mapper/vglvm-linux /mnt/hd   (<string>:469)
(5912)    [5] [2025-09-16 13:18:09.043] [               ] /dev/mapper/vglvm-linux mounted on /mnt/hd - fine..   (<string>:477)
(5913)    [5] [2025-09-16 13:18:09.044] [               ] /mnt/hd/boot does not exists as directory - creating   (<string>:395)
(5915)    [6] [2025-09-16 13:18:09.044] [               ] Executing: mkdir -p /mnt/hd/boot   (Posix.py:1003)
(5916)    [6] [2025-09-16 13:18:09.044] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5918)    [5] [2025-09-16 13:18:09.047] [               ] mountpoint /mnt/hd/boot exists   (<string>:409)
(5919)    [5] [2025-09-16 13:18:09.047] [               ] mountpoint /mnt/hd/boot >> /dev/null 2>&1   (<string>:414)
(5920)    [5] [2025-09-16 13:18:09.048] [               ] Nothing mounted on /mnt/hd/boot - fine   (<string>:429)
(5921)    [5] [2025-09-16 13:18:09.050] [               ] /dev/nvme0n1p3 is not mounted   (<string>:453)
(5923)    [6] [2025-09-16 13:18:09.050] [               ] Executing: sync   (Posix.py:1003)
(5924)    [6] [2025-09-16 13:18:09.050] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5926)    [5] [2025-09-16 13:18:09.055] [               ]  mount -t ext4 /dev/nvme0n1p3 /mnt/hd/boot   (<string>:469)
(5927)    [5] [2025-09-16 13:18:14.064] [               ] /dev/nvme0n1p3 mounted on /mnt/hd/boot - fine..   (<string>:477)
(5930)    [6] [2025-09-16 13:18:14.064] [               ] Copying from '/mnt/opsi/ubuntu/pkgdetails/64bit/pkgdetails' to '/usr/lib/debootstrap/'   (__init__.py:259)
(5932)    [3] [2025-09-16 13:18:15.217] [               ] [Errno 5] Input/output error: '/mnt/opsi/ubuntu/pkgdetails/64bit/pkgdetails'   (opsimain.py:1884)
(5933)    Traceback (most recent call last):
(5934)      File "opsibootimage/opsimain.py", line 1834, in <module>
(5935)      File "/tmp/ubuntu.py", line 501, in <module>
(5936)        copy("%s/pkgdetails/64bit/pkgdetails" % (depotsource), "/usr/lib/debootstrap/")
(5937)        ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(5938)      File "OPSI/System/__init__.py", line 266, in copy
(5939)      File "OPSI/System/__init__.py", line 316, in _copy
(5940)      File "shutil.py", line 469, in copy2
(5941)      File "shutil.py", line 389, in copystat
(5942)      File "shutil.py", line 331, in _copyxattr
(5943)    OSError: [Errno 5] Input/output error: '/mnt/opsi/ubuntu/pkgdetails/64bit/pkgdetails'
(5948)    [6] [2025-09-16 13:18:15.223] [               ] Updating productOnClient: {'targetConfiguration': None, 'installationStatus': 'unknown', 'actionRequest': 'none', 'lastAction': None, 'actionProgress': '', 'actionResult': 'failed', 'productVersion': '4.3.0.4', 'packageVersion': '1', 'modificationTime': None, 'actionSequence': None, 'productId': 'ubuntu', 'productType': 'NetbootProduct', 'clientId': 'FQDN_des_Clients', 'type': 'ProductOnClient'}   (opsimain.py:1898)
(5949)    [6] [2025-09-16 13:18:15.223] [               ] JSON-RPC request to https://.................:4447: id='....................', method=productOnClient_updateObjects, Content-Type=application/msgpack, Content-Encoding=lz4, timeout=300.0   (opsiservice.py:1663)
(5953)    [6] [2025-09-16 13:18:15.270] [               ] Got response status=200, id='.....................', method=productOnClient_updateObjects, Content-Type=application/msgpack, Content-Encoding=, duration=0.048s   (opsiservice.py:1687)
(5954)    [5] [2025-09-16 13:18:15.271] [               ] EXITING   (opsimain.py:1904)
(5955)    [5] [2025-09-16 13:18:15.271] [               ] Appending journalctl logs   (opsimain.py:1910)
(5957)    [6] [2025-09-16 13:18:15.271] [               ] Executing: journalctl --no-tail --no-pager   (Posix.py:1003)
(5958)    [6] [2025-09-16 13:18:15.272] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(7218)    [5] [2025-09-16 13:18:15.307] [               ] Writing log to service   (opsimain.py:1913)
(7219)    [6] [2025-09-16 13:18:15.307] [               ] message: 'Writing log to service', progress: 99   (opsimain.py:804)
Der opsi Server ist eine HyperV VM auf der Debian 12 installiert ist. Das Paket ist aktuell ubuntu_4.3.0.4-1 (aus dem Testingbereich) aber auch mit der Paketversion 4.3.0.3-3 und 4.3.0.2-2 tritt dieses Problem auf. Vor dem Update lief die Installation mit der Paketversion 4.3.0.2-2 problemlos durch.
Geupdatet wurde am 11.09. auf folgende Versionen:
opsi-utils:amd64 4.3.17.0-1
opsiconfd:amd64 4.3.37.7-1
opsi-linux-bootimage:all 20250905-1
opsi-tftpd-hpa:amd64 5.2.9-4

Nachdem ich mir das Log und die ubuntu.py etwas genauer angeuckt habe, habe ich mir die Zeile mit dem Befehl:

Code: Alles auswählen

copy("%s/pkgdetails/64bit/pkgdetails" % (depotsource), "/usr/lib/debootstrap/")
kopiert und auskommentiert und daraus diesen Befehl gemacht:

Code: Alles auswählen

copy("/mnt/opsi/pkgdetails/64bit/pkgdetails", "/usr/lib/debootstrap/")
Der Befehl funktioniert nicht so richtig (siehe nächsten Logabschnitt) aber immerhin läuft die Installation von Ubuntu wieder durch ohne mit einem Fehler abzubrechen.

Code: Alles auswählen

(5930)    [6] [2025-09-18 13:36:11.143] [               ] Copying from '/mnt/opsi/pkgdetails/64bit/pkgdetails' to '/usr/lib/debootstrap/'   (__init__.py:259)
(5931)    [6] [2025-09-18 13:36:11.204] [               ] Copy done   (__init__.py:267)
(5932)    [5] [2025-09-18 13:36:11.205] [               ] /usr/lib/debootstrap does not exists as directory - creating   (<string>:395)
(5934)    [6] [2025-09-18 13:36:11.205] [               ] Executing: mkdir -p /usr/lib/debootstrap   (Posix.py:1003)
(5935)    [6] [2025-09-18 13:36:11.205] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5941)    [6] [2025-09-18 13:36:11.208] [               ] Copying from 'ubuntu/pkgdetails/64bit/pkgdetails' to '/usr/lib/debootstrap/'   (Repository.py:715)
(5949)    [6] [2025-09-18 13:36:11.288] [               ] Transferred 0.893 MB in 0.00 seconds, average speed was 20.23 MB/s   (Repository.py:580)
(5950)    [6] [2025-09-18 13:36:11.288] [               ] Copy done   (Repository.py:819)
(5952)    [6] [2025-09-18 13:36:11.289] [               ] Executing: chmod u+x /usr/lib/debootstrap/pkgdetails   (Posix.py:1003)
(5953)    [6] [2025-09-18 13:36:11.289] [               ] Using encoding 'UTF-8'   (Posix.py:1045)
(5955)    [6] [2025-09-18 13:36:11.291] [               ] message: 'Installing base system ....', progress: 30   (opsimain.py:804)
(5956)    [5] [2025-09-18 13:36:11.314] [               ] Installing base system...   (ubuntu.py:530)
(5958)    [6] [2025-09-18 13:36:11.314] [               ] Executing: /sbin/debootstrap --verbose --no-merged-usr  --no-check-gpg --arch amd64 --extractor=ar --include=quota noble /mnt/hd http://de.archive.ubuntu.com/ubuntu   (Posix.py:1003)
Evtl. kann mir jemand sagen, womit der ursprüngliche Fehler zusammenhängt und mir eine elegantere Lösung geben?
Schonmal besten Dank im Voraus!


Edit:
Des Weiteren tauchen im bootimageLog diese Warnungen auf:

Code: Alles auswählen

(1094)    [4] [2025-09-18 13:35:15.182] [               ] Warning 'invalid escape sequence '\|'' in file '/tmp/ubuntu.py', line 1165   (logging.py:1027)

Gruß Sascha
Benutzeravatar
j.schneider
uib-Team
Beiträge: 2094
Registriert: 29 Mai 2008, 15:14

Re: Installation von Ubuntu läuft auf Fehler seit Update der Serverpakete

Beitrag von j.schneider »

Hallo,

die Fehlermeldung "OSError: [Errno 5] Input/output error: '/mnt/opsi/ubuntu/pkgdetails/64bit/pkgdetails'" deutet auf ein Problem beim Zugriff auf den CIFS-Share hin.
Wahrscheinlich ein Server-seitiges Problem (Lock / Virenscanner / Samba / ...).

Grüße
Jan Schneider


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


sehmer
Beiträge: 2
Registriert: 27 Feb 2025, 16:11

Re: Installation von Ubuntu läuft auf Fehler seit Update der Serverpakete

Beitrag von sehmer »

Hallo,

danke für den Fix im Paket ubuntu_4.3.0.5-1! Ist auf jeden Fall die elegantere Variante.
Trotz allem bleibt die Verwirrung...ich habe nochmal die bootimage-Logs von der fehlerhaften und einer älteren, erfolgreichen Installation verglichen. Dabei es ist aufgefallen, dass genau dieser copy-Befehl in der älteren Installation problemlos durchgelaufen ist

Code: Alles auswählen

(5727)    [6] [2025-08-19 13:10:33.596] [               ] Copying from '/mnt/opsi/ubuntu/pkgdetails/64bit/pkgdetails' to '/usr/lib/debootstrap/'   (__init__.py:257)
(5728)    [6] [2025-08-19 13:10:33.781] [               ] Copy done   (__init__.py:265)
Somit bleibt die Frage, womit hängt dieser Fehler zusammen?
Wie gesagt, am System hat sich nichts verändert, außer die Updates.
Leider sehe ich weder bei journalctl noch im bootimage-Log Hinweise, die mich weiterbringen. Gibt es weitere Logs die einen Hinweis geben könnten?

Des Weiteren hat sich ein weiterer Fehler gezeigt. Nachdem die Installation durchgelaufen ist, ist das englische Tastaturlayout aktiv.
Beim Starten und Herunterfahren des Systems bekomme ich den Fehler: Failed to start console-setup.service

systemctl status console-setup.service sagt: console-setup.sh[]: /usr/bin/ckbcomp: can not find file "symbols/de-latin1-nodeadkeys" in any known directory

Ändere ich hier den Wert XKBLAYOUT auf "de" in /etc/default/keyboard kann ich den Dienst wieder problemlos starten und das deutsche Tastaturlayout wird angewendet.

Gebe ich folgende Befehle aus der ubuntu.py in der Konsole ein, so gibt es nur bei dem Befehl loadkeys einen Fehler, welcher aber wohl, direkt in der Konsole in der GUI ausgeführt, normal ist. Bin ich per ssh mit dem Client verbunden, gibt auch der Befehl loadkeys keinen Fehler mehr.

Code: Alles auswählen

cmds.append(
    "KEYMAP=`find /usr/share/keymaps/i386/ -name %s.kmap.gz`"
    % productProperties.get("console_keymap", "de-latin1-nodeadkeys")
)
cmds.append("echo Will install keymap file $KEYMAP")
cmds.append("install-keymap $KEYMAP")
cmds.append("cp $KEYMAP /etc/console-setup/cached.kmap.gz")
# cmds.append("cp $KEYMAP /etc/console/boottime.kmap.gz")
cmds.append("cp $KEYMAP /etc/console-setup/")
cmds.append(
    "loadkeys %s" % productProperties.get("console_keymap", "de-latin1-nodeadkeys")
)
Die Datei "de-latin1-nodeadkeys.kmap.gz" ist auch vorhanden, wird aber vom console-setup.service nicht akzeptiert.

Gruß
Sascha
Antworten