[Gelöst] Problem Opsi Boot CD auf USB-Stick

d.haberland
Beiträge: 46
Registriert: 27 Sep 2017, 16:47

[Gelöst] Problem Opsi Boot CD auf USB-Stick

Beitrag von d.haberland »

Guten Morgen, ich bin es wieder :)

und zwar habe folgendes Problem, da ein Notebook kein PXE-Boot unterstützt hab ich die Aufgabe bekommen die Opsi-Boot-CD über ein USB-Stick zu booten, hatte beim ersten Versuch einen "Fehler" der sich mir der neuen Version der Boot-CD gelöst hat. (Hatte dann schon die neuste Version von der Boot-CD dann ist ja am 14.11 eine neue gekommen) Mit der hat es auch geklappt bis zu den Zeitpunkt wo er die "hwinvent" ausführt die Fehlermeldung hab ich selbstverständlich auch gegoogelt und auch einen gefunden der das sogut wie das gleiche Problem hatte.
( viewtopic.php?t=8650 )

Naklar hab ich auch die Netboot Produkte ein updatet gegeben was aber wie wahrscheinlich erwartet nichts gebracht hat.
Zuletzt geändert von d.haberland am 22 Nov 2017, 11:15, insgesamt 1-mal geändert.
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von m.radtke »

Hi
Bist du sicher das die Pakete aktualisiert sind?

Oder hast du vielleicht noch eine alte opsi-product-updater.conf in der die Windows Produkte nicht aktualisiert werden?

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
d.haberland
Beiträge: 46
Registriert: 27 Sep 2017, 16:47

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von d.haberland »

Hallo Mathias,

das mit der opsi-product-updater.conf könnte natürlich sein,
wie könnte ich das beheben?
Kann man die ohne bedenken löschen?
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von m.radtke »

Schau mal rein

Da gibt es irgendwo eine Zeile mit

Code: Alles auswählen

 ;win*
Einfach das Semikolon entfernen, updater starten und schauen ob sich was tut.

Gruß mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
d.haberland
Beiträge: 46
Registriert: 27 Sep 2017, 16:47

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von d.haberland »

Guten Morgen,

in der 'opsi-product-updater.conf ' steht nur:

Code: Alles auswählen

; If a product package file matches one of these regular expressions it will not be downloaded
excludes = ^win.*
und "Aktiviert" war es schon.
Noch mal zu Klarstellung wie man vorgehen soll bezüglich der Boot CD,
man lädt sich die Boot CD runter, dann wie in mein Fall speichert man die ISO auf ein USB-Stick und macht Sie Bootbar.
Dann soll man den USB-Stick in den Client-PC einstecken und das sollte es Klappen. Ich hab alles so gemacht wie man es machen soll, ohne Erfolg.

Vielleicht helfen noch paar Log Einträge in der "bootimage":

[3] [Nov 20 10:07:40] Key 'description' not found (Posix.py|3577)
[4] [Nov 20 10:07:40] list index out of range (Posix.py|3588)
[3] [Nov 20 10:07:40] Key 'serial' not found (Posix.py|3577)
[4] [Nov 20 10:07:40] list index out of range (Posix.py|3588)
[3] [Nov 20 10:07:40] Key 'description' not found (Posix.py|3577)
[4] [Nov 20 10:07:40] list index out of range (Posix.py|3588)
[3] [Nov 20 10:07:40] Key 'serial' not found (Posix.py|3577)
[3] [Nov 20 10:07:40] Key 'description' not found (Posix.py|3577)
[3] [Nov 20 10:07:40] Key 'serial' not found (Posix.py|3577)
[3] [Nov 20 10:07:40] Key 'description' not found (Posix.py|3577)
[3] [Nov 20 10:07:40] Key 'serial' not found (Posix.py|3577)

[4] [Nov 20 10:07:40] list index out of range (Posix.py|3588)
[4] [Nov 20 10:07:40] 'dict' object has no attribute 'partition' (Posix.py|3588)
[2] [Nov 20 10:07:42] Traceback: (Logger.py|757)
[2] [Nov 20 10:07:42] File "/usr/local/bin/master.py", line 1471, in <module>
execfile(actionScript)
(Logger.py|757)
[2] [Nov 20 10:07:42] File "/tmp/setup.py", line 237, in <module>
lvmClearVolumeGroups()
(Logger.py|757)
[2] [Nov 20 10:07:42] File "/tmp/opsisetuplib.py", line 105, in lvmClearVolumeGroups
execute("find /dev -empty -type d -delete -print")
(Logger.py|757)
[2] [Nov 20 10:07:42] File "/usr/lib/python2.7/dist-packages/OPSI/System/Posix.py", line 859, in execute
raise Exception(u"Command '%s' failed (%s):\n%s" % (cmd, exitCode, u'\n'.join(result)))
(Logger.py|757)
[2] [Nov 20 10:07:42] ==>>> Command 'find /dev -empty -type d -delete -print' failed (1):
find: cannot delete ‘/dev/mqueue’: Device or resource busy
find: cannot delete ‘/dev/hugepages’: Device or resource busy
find: cannot delete ‘/dev/shm’: Device or resource busy (master.py|1519)


zudem kommen noch viele Fehler von der Art:

Code: Alles auswählen

[4] [Nov 20 10:07:40] Attribute part ' * ' not found (Posix.py|3481)


* Verschiedene Wörter wie (Size, serial, Product,etc)
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von m.radtke »

dann nimm die expludes raus :)

Du hast noch pre 4.0.7 Windoes Netboot Produkte

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
d.haberland
Beiträge: 46
Registriert: 27 Sep 2017, 16:47

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von d.haberland »

Hi,

leider bekomme ich dann folgende fehlermeldung
Zsync command found: /usr/bin/zsync
Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules'
Disabling mysql backend and license management module: no customer in modules file
Reading config file '/etc/opsi/opsi-product-updater.conf'
Traceback:
line 1187 in '<module>' in file '/usr/bin/opsi-product-updater'
line 1179 in 'main' in file '/usr/bin/opsi-product-updater'
line 217 in '__init__' in file '/usr/bin/opsi-product-updater'
line 429 in 'readConfigFile' in file '/usr/bin/opsi-product-updater'
==>>> Failed to read config file '/etc/opsi/opsi-product-updater.conf': Failed to parse ini file '/etc/opsi/opsi-product-updater.conf': File contains parsing errors: <???>
[line 30]: u'win.*\r\n'
ERROR: Failed to read config file '/etc/opsi/opsi-product-updater.conf': Failed to parse ini file '/etc/opsi/opsi-product-updater.conf': File contains parsing errors: <???>
[line 30]: u'win.*\r\n'
habe schon versucht ohne '^ ohne '.*' uns das "Win" nur alleine da steht.
Woran könnte es liegen das es Allgemein nicht geht? USB-Stick, an Laptop/Notebook selbst (Hab es auf ein Notebook, Laptop und VM ausprobiert, alles ging nicht)
"hwinvent" ist die Version 4.0-1 was laut Recherche das Aktuellste sein muss.
Als Windows 10 Version habe ich 2 verschiedene probiert die auf Clients schon mal Installiert wurden. Muss man eventuell neben der Boot-CD noch weiter Einstellungen mit drauf spielen zur Konfiguration die in den Dokus nicht erklärt wurden?
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von m.radtke »

Hi

entferne einfach die Zeile

Code: Alles auswählen

excludes = ^win.*
aus deiner opsi-product-updater.conf

An der CD muss man nichts machen. Lediglich 4.0.7 Netboot Produkte installiert haben. Dies hast Du bisher nicht. Der von Dir beschriebene Fehler deutet auf 4.0.6 Netboot Produkte hin.

Gruß
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
d.haberland
Beiträge: 46
Registriert: 27 Sep 2017, 16:47

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von d.haberland »

Hab die Zeile entfernt und wenn ich dann über die Konsole Updaten will bekomme ich zwar eine Fehlerfreie Ausgabe aber es wird gesagt das alle Produkte Aktuell sind. Jedoch kommt der Selber Fehler wieder mit der Hardware-Inventarisierung
Zsync command found: /usr/bin/zsync
Failed to read opsi modules file '/etc/opsi/modules': [Errno 2] No such file or directory: u'/etc/opsi/modules'
Disabling mysql backend and license management module: no customer in modules file
Reading config file '/etc/opsi/opsi-product-updater.conf'
Getting installed products
Getting info for local packages in '/var/lib/opsi/repository'
Getting package infos from repository 'http://download.uib.de'
activate-win_1.0-9.opsi - installation not required: installed version '1.0-9' of product 'activate-win' is up to date
config-win-base_4.0.1-1.opsi - installation not required: installed version '4.0.1-1' of product 'config-win-base' is up to date
config-win10_4.0.7-8.opsi - installation not required: installed version '4.0.7-8' of product 'config-win10' is up to date
config-win81-desktop_4.0.5-3.opsi - installation not required: installed version '4.0.5-3' of product 'config-win81-desktop' is up to date
hwaudit_4.0.6.1-6.opsi - installation not required: installed version '4.0.6.1-6' of product 'hwaudit' is up to date
javavm_1.8.0.101or1.8.0.102-1.opsi - installation not required: installed version '1.8.0.101or1.8.0.102-1' of product 'javavm' is up to date
jedit_5.3.0-2.opsi - installation not required: installed version '5.3.0-2' of product 'jedit' is up to date
networklocation_1.0-1.opsi - installation not required: installed version '1.0-1' of product 'networklocation' is up to date
opsi-client-agent_4.0.7.23-4.opsi - installation not required: installed version '4.0.7.23-4' of product 'opsi-client-agent' is up to date
opsi-configed_4.0.7.5.22-2.opsi - installation not required: installed version '4.0.7.5.22-2' of product 'opsi-configed' is up to date
opsi-logviewer_2.2-2.opsi - installation not required: installed version '2.2-2' of product 'opsi-logviewer' is up to date
opsi-script-test_4.12.0.6-1.opsi - installation not required: installed version '4.12.0.6-1' of product 'opsi-script-test' is up to date
opsi-set-win-uac_1.0-2.opsi - installation not required: installed version '1.0-2' of product 'opsi-set-win-uac' is up to date
opsi-setup-detector_4.0.6.132-2.opsi - installation not required: installed version '4.0.6.132-2' of product 'opsi-setup-detector' is up to date
opsi-template-with-admin_4.0.6-1.opsi - installation not required: installed version '4.0.6-1' of product 'opsi-template-with-admin' is up to date
opsi-template_4.0.6-1.opsi - installation not required: installed version '4.0.6-1' of product 'opsi-template' is up to date
opsi-uefi-netboot_4.0.5-3.opsi - installation not required: installed version '4.0.5-3' of product 'opsi-uefi-netboot' is up to date
opsi-wan-config-off_4.0.1-1.opsi - installation not required: installed version '4.0.1-1' of product 'opsi-wan-config-off' is up to date
opsi-wan-config-on_4.0.1-1.opsi - installation not required: installed version '4.0.1-1' of product 'opsi-wan-config-on' is up to date
opsi-wim-capture_4.0.7.1-5.opsi - installation not required: installed version '4.0.7.1-5' of product 'opsi-wim-capture' is up to date
opsi-wim-delete_4.0.7.1-1.opsi - installation not required: installed version '4.0.7.1-1' of product 'opsi-wim-delete' is up to date
opsi-wim-info_4.0.7.2-1.opsi - installation not required: installed version '4.0.7.2-1' of product 'opsi-wim-info' is up to date
opsi-winpe_1.0-1.opsi - installation not required: installed version '1.0-1' of product 'opsi-winpe' is up to date
opsi-winst_4.12.0.7-1.opsi - installation not required: installed version '4.12.0.7-1' of product 'opsi-winst' is up to date
shutdownwanted_1.0-5.opsi - installation not required: installed version '1.0-5' of product 'shutdownwanted' is up to date
swaudit_4.0.7.6-2.opsi - installation not required: installed version '4.0.7.6-2' of product 'swaudit' is up to date
windomain_1.0-8.opsi - installation not required: installed version '1.0-8' of product 'windomain' is up to date
windows10-upgrade_17.09-4.opsi - installation not required: installed version '17.09-4' of product 'windows10-upgrade' is up to date
hwinvent_4.0-1.opsi - installation not required: installed version '4.0-1' of product 'hwinvent' is up to date
memtest86_5.01-1.opsi - installation not required: installed version '5.01-1' of product 'memtest86' is up to date
opsi-clonezilla_4.0.7.2-3.opsi - installation not required: installed version '4.0.7.2-3' of product 'opsi-clonezilla' is up to date
win7-captured_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win7-captured' is up to date
win7-x64-captured_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win7-x64-captured' is up to date
win7-x64_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win7-x64' is up to date
win7_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win7' is up to date
win10-captured_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win10-captured' is up to date
win10-x64-captured_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win10-x64-captured' is up to date
win10-x64_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win10-x64' is up to date
win10_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win10' is up to date
win81-captured_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win81-captured' is up to date
win81-x64-captured_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win81-x64-captured' is up to date
win81-x64_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win81-x64' is up to date
win81_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win81' is up to date
win2008-r2_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win2008-r2' is up to date
win2012-r2_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win2012-r2' is up to date
win2012_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win2012' is up to date
win2016_4.0.7.1-10.opsi - installation not required: installed version '4.0.7.1-10' of product 'win2016' is up to date
wipedisk_1.1-1.opsi - installation not required: installed version '1.1-1' of product 'wipedisk' is up to date
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1528
Registriert: 10 Jun 2015, 12:19

Re: Problem Opsi Boot CD auf USB-Stick

Beitrag von m.radtke »

Hi

irgendwas schein beim Update nicht sauber gelaufen zu sein

Mach mal ein md5sum auf die Datei opsisetuplib.py in einem der Windows produkte

Code: Alles auswählen

5b45d310faabc54a5c4de199516863d1  opsisetuplib.py
Zeile 106 der opsisetuplib.py sollte so aussehen

Code: Alles auswählen

exitcode = os.system("find /dev -empty -type d -delete -print 2> /dev/null")
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Antworten