Error list index out of range

Antworten
piet4220
Beiträge: 13
Registriert: 03 Nov 2011, 11:10

Error list index out of range

Beitrag von piet4220 »

Hello,

When I try to install Windows 7 x86 I get the following error "list index out of range" it appears right after starting the opsi boot image.

Any advice would be greatly appreciated


Regards
Piet
piet4220
Beiträge: 13
Registriert: 03 Nov 2011, 11:10

Re: Error list index out of range

Beitrag von piet4220 »

Just to give som more info.

This is the last lines of my bootimage logfile.

Code: Alles auswählen

[5] [Feb 28 14:52:29] Requesting product license... (master.py|1192)
[5] [Feb 28 14:52:29] Using product property to get licensekey (master.py|1200)
[2] [Feb 28 14:52:30] Traceback: (Logger.py|742)
[2] [Feb 28 14:52:30]      line 1201 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|742)
[2] [Feb 28 14:52:30]      ==>>> list index out of range (master.py|1435)
[7] [Feb 28 14:52:30] Backend: <OPSI.Backend.JSONRPC.JSONRPCBackend instance at 0x8a9b8ac> (master.py|1438)
[7] [Feb 28 14:52:30] ProductId: win7-x86 (master.py|1439)
[7] [Feb 28 14:52:30] ClientId: test.onit.local (master.py|1440)
[7] [Feb 28 14:52:30] ProductOnClient: <ProductOnClient clientId 'test.onit.local', productId 'win7-x86', installationStatus 'None', actionRequest 'None'> (master.py|1441)
[6] [Feb 28 14:52:30] Updating productOnClient: {'actionProgress': u'', 'actionResult': u'failed', 'clientId': u'test.onit.local', 'modificationTime': None, 'actionRequest': u'none', 'targetConfiguration': None, 'productVersion': u'4.0.1', 'productType': u'NetbootProduct', 'type': u'ProductOnClient', 'lastAction': None, 'packageVersion': u'6', 'actionSequence': -1, 'installationStatus': None, 'productId': u'win7-x86'} (master.py|1452)
[7] [Feb 28 14:52:30] Executing jsonrpc method 'productOnClient_updateObjects' on host 10.10.10.123 (JSONRPC.py|104)
[7] [Feb 28 14:52:30] Starting new HTTPS connection (0) to 10.10.10.123:4447 (HTTP.py|515)
[7] [Feb 28 14:52:30] Connection established to: 10.10.10.123 (HTTP.py|528)
[7] [Feb 28 14:52:30] Failed to get peer cert: 'NoneType' object has no attribute 'getpeercert' (HTTP.py|105)
[7] [Feb 28 14:52:30] Closing connection: <httplib.HTTPSConnection instance at 0x8d49bcc> (HTTP.py|443)
[7] [Feb 28 14:52:30] Content-Type: gzip-application/json;charset=utf-8, Content-Encoding: gzip (JSONRPC.py|647)
[7] [Feb 28 14:52:30] Expecting compressed data from server (JSONRPC.py|651)
[5] [Feb 28 14:52:39] Writing log to service (master.py|1466)
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: Error list index out of range

Beitrag von wolfbardo »

please post the version of the net-boot-Product you are using

Code: Alles auswählen

opsi-package-manager -l | grep win7
and

Code: Alles auswählen

dpkg -l | grep opsi
or
rpm -q -a | grep opsi
regards,

Bardo Wolf


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


piet4220
Beiträge: 13
Registriert: 03 Nov 2011, 11:10

Re: Error list index out of range

Beitrag von piet4220 »

This is the output of the two commands

root@Opsi:~# opsi-package-manager -l | grep win7

Code: Alles auswählen

   win7-x64                  4.0.1-5                   Windows 7 - x64 - Dansk
   win7-x86                  4.0.1-5                   Windows 7 - x86 - dansk
root@Opsi:~#

root@Opsi:~# dpkg -l | grep opsi

Code: Alles auswählen

ii  opsi-atftpd                        0.7.dfsg-1.7                 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                      4.0.1.17-2                   OPSI config editor
ii  opsi-depotserver                   4.0.1.11-1                   opsi depotserver configuration package
ii  opsi-linux-bootimage               20110926-1                   opsi linux bootimage
ii  opsi-utils                         4.0.1.15-1                   opsi utils
ii  opsiconfd                          4.0.1.9-4                    opsi configuration service
ii  opsipxeconfd                       4.0.1.5-1                    opsi pxe configuration daemon
ii  python-opsi                        4.0.1.36-1                   opsi python library
root@Opsi:~#
I have done some testing and found that the error occurs when I change the default value for the license key. my goal is to install Windows without a license key.
Oddly enough it is only the 32 bit version of Windows that gives this error, the 64 bit version works fine. I even tried copying the contents of the control file from the 64 bit version but still god the same error.

I have posted my edited template below.

Code: Alles auswählen

[Package]
version: 5
depends: 
incremental: False

[Product]
type: netboot
id: win7-x86
name: Windows 7 - x86 - dansk
description: Microsoft Betriebssystem
advice: 
version: 4.0.1
priority: 0
licenseRequired: True
productClasses: 
setupScript: setup.py
uninstallScript: 
updateScript: 
alwaysScript: 
onceScript: 
customScript: 
pxeConfigTemplate: 

[ProductProperty]
type: bool
name: winpenetworkmode
description: Soll das Windows Setup unter WinPE vom Netz gestartet werden?
 Alternativ werden alle benötigten Dateien schon im Linux Bootimage vom Netz auf den lokalen Datenträger kopiert.
default: True

[ProductProperty]
type: bool
name: askbeforeinst
description: Soll das Starten der Installation am Client bestätigt werden müssen?
default: False

[ProductProperty]
type: unicode
name: productkey
multivalue: False
editable: True
description: Lizenzschlüssel
values: ["xxxxx-xxxxx-xxxxx-xxxxx-xxxxx"]

[ProductProperty]
type: unicode
name: fullname
multivalue: False
editable: True
description: Name des Benutzers
values: ["Name"]
default: ["Name"]

[ProductProperty]
type: unicode
name: orgname
multivalue: False
editable: True
description: Name der Organisation
values: ["Orgname"]
default: ["Orgname"]

[ProductProperty]
type: unicode
name: additional_drivers
multivalue: True
editable: True
description: Treiber-Verzeichnisse die in die Grundinstallation eingebunden werden sollen (mehrere Werte möglich)

[ProductProperty]
type: unicode
name: boot_partition_size
multivalue: False
editable: False
description: Größe der Boot-Partition, benötigt für Bitlocker (0 = keine Boot-Partition erstellen)
values: ["0", "1000M", "100M", "2000M", "5000M", "500M"]
default: ["0"]

[ProductProperty]
type: unicode
name: boot_partition_label
multivalue: False
editable: True
description: Dateisystem-Label der Boot-Partition
values: ["BOOT"]
default: ["BOOT"]

[ProductProperty]
type: unicode
name: boot_partition_letter
multivalue: False
editable: False
description: Laufwerksbuchstabe der Boot-Partition ("-" = keinen Laufwerksbuchstaben zuordnen)
values: ["-", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "Y", "Z"]
default: ["-"]

[ProductProperty]
type: unicode
name: windows_partition_size
multivalue: False
editable: False
description: Größe der Windows-Partition. Zusätzliche Partition mit verbleibender Größe anlegen. (100% = keine zusätzliche Partition erstellen)
values: ["10%", "100%", "100G", "10G", "20%", "200G", "20G", "30%", "30G", "40%", "40G", "50%", "500G", "50G", "60%", "70%", "80%", "90%"]
default: ["100%"]

[ProductProperty]
type: unicode
name: data_partition_label
multivalue: False
editable: True
description: Dateisystem-Label der zusätzlichen Partition
values: ["DATA"]
default: ["DATA"]

[ProductProperty]
type: unicode
name: data_partition_letter
multivalue: False
editable: False
description: Laufwerksbuchstabe der zusätzlichen Partition
values: ["D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "T", "U", "V", "W", "Y", "Z"]
default: ["D"]

[ProductProperty]
type: unicode
name: windows_partition_label
multivalue: False
editable: True
description: Dateisystem-Label der Windows-Partition
values: ["WINDOWS"]
default: ["WINDOWS"]

[ProductProperty]
type: unicode
name: system_language
multivalue: False
editable: True
description: Standard-Sprache des Systems
values: ["de-AT", "de-CH", "de-DE"]
default: ["de-DE"]

[ProductProperty]
type: unicode
name: system_keyboard_layout
multivalue: False
editable: True
description: Keyboard-Layout des Systems
values: ["0407:00000407", "0407:00000c07", "0807:00000807"]
default: ["0407:00000407"]

[ProductProperty]
type: unicode
name: system_timezone
multivalue: False
editable: True
description: Zeitzone des Systems
values: ["W. Europe Standard Time"]
default: ["W. Europe Standard Time"]

[ProductProperty]
type: unicode
name: imagename
multivalue: False
editable: False
description: Zu installierende Windows 7 Version
values: ["Windows 7 ENTERPRISE", "Windows 7 ENTERPRISEE", "Windows 7 ENTERPRISEN", "Windows 7 HOMEBASIC", "Windows 7 HOMEBASICE", "Windows 7 HOMEBASICN", "Windows 7 HOMEPREMIUM", "Windows 7 HOMEPREMIUME", "Windows 7 HOMEPREMIUMN", "Windows 7 PROFESSIONAL", "Windows 7 PROFESSIONALE", "Windows 7 PROFESSIONALN", "Windows 7 STARTER", "Windows 7 STARTERE", "Windows 7 STARTERN", "Windows 7 ULTIMATE", "Windows 7 ULTIMATEE", "Windows 7 ULTIMATEN"]
default: ["Windows 7 ULTIMATE"]

[Changelog]
windows (4.0.1-5) stable; urgency=low

  * Call auditHardwareOnHost_setObsolete

 -- uib GmbH <info@uib.de>  Tue, 19 Jul 2011 13:17:02 +0000

windows (4.0.1-4) stable; urgency=low

  * Modify driver integration

 -- uib GmbH <info@uib.de>  Mon, 18 Jul 2011 15:05:10 +0000

windows (4.0.1-3) stable; urgency=low

  * rework work.cmd
     - do not load storage driver
     - delayed load of network driver
     - do not load drivers in case of ! winpeNetworkMode

 -- uib GmbH <info@uib.de>  Tue, 12 Jul 2011 12:08:51 +0000

windows (4.0.1-2) stable; urgency=low

  * Use depot._url not depotUrl to get unmodified url

 -- uib GmbH <info@uib.de>  Wed, 04 May 2011 10:58:37 +0000

windows (4.0.1-1) stable; urgency=low

  * Process depotUrl correctly

 -- uib GmbH <info@uib.de>  Tue, 03 May 2011 09:40:28 +0000

windows (4.0-9) stable; urgency=low

  * remove property data_partition_size
  * add property windows_partition_size
  * search pe drive letter

 -- uib GmbH <info@uib.de>  Mon, 18 Apr 2011 14:30:53 +0000

windows (4.0-8) stable; urgency=low

  * Fix </DriverPaths> in unattend.xml

 -- uib GmbH <info@uib.de>  Mon, 11 Apr 2011 12:43:00 +0000

windows (4.0-7) stable; urgency=low

  * new unattend.xml.template for improved driver integration (thanks to mr.quickly)
  * Fixed drive letter assignment for boot drive

 -- uib GmbH <info@uib.de>  Mon, 04 Apr 2011 10:54:18 +0000

windows (4.0-6) stable; urgency=low

  * Support for boot partition
  * Support for additional partition
  * New properties

 -- uib GmbH <info@uib.de>  Wed, 23 Mar 2011 15:40:01 +0000

windows (4.0-5) stable; urgency=low

  * add 05_copy_drivers to postinst.d
  * remove creation of 05_copydriver.cmd from setup.py
  * change sequence of driver integration

 -- uib GmbH <info@uib.de>  Thu, 17 Mar 2011 16:52:30 +0000

windows (4.0-4) stable; urgency=low

  * create_driver_links: do not link additional drivers
  * setup.py
     - starnet.cmd: copy work.cmd to ramdisk and execute
     - work.cmd: retry on setup.exe error

 -- uib GmbH <info@uib.de>  Wed, 16 Mar 2011 10:21:08 +0000

windows (4.0-3) stable; urgency=low

  * Added extract_driver_pack.py

 -- uib GmbH <info@uib.de>  Mon, 27 Sep 2010 16:20:28 +0000

windows (4.0-2) stable; urgency=low

  * delete all netboot product states

 -- uib GmbH <info@uib.de>  Tue, 31 Aug 2010 09:36:30 +0000

windows (4.0-1) stable; urgency=low

  * opsi 4.0




 -- uib GmbH <info@uib.de>  Tue, 29 Jun 2010 12:58:59 +0000
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: Error list index out of range

Beitrag von wolfbardo »

piet4220 hat geschrieben:This is the output of the two commands

root@Opsi:~# opsi-package-manager -l | grep win7

Code: Alles auswählen

   win7-x64                  4.0.1-5                   Windows 7 - x64 - Dansk
   win7-x86                  4.0.1-5                   Windows 7 - x86 - dansk
root@Opsi:~#

root@Opsi:~# dpkg -l | grep opsi

Code: Alles auswählen

ii  opsi-atftpd                        0.7.dfsg-1.7                 advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                      4.0.1.17-2                   OPSI config editor
ii  opsi-depotserver                   4.0.1.11-1                   opsi depotserver configuration package
ii  opsi-linux-bootimage               20110926-1                   opsi linux bootimage
ii  opsi-utils                         4.0.1.15-1                   opsi utils
ii  opsiconfd                          4.0.1.9-4                    opsi configuration service
ii  opsipxeconfd                       4.0.1.5-1                    opsi pxe configuration daemon
ii  python-opsi                        4.0.1.36-1                   opsi python library
root@Opsi:~#
I have done some testing and found that the error occurs when I change the default value for the license key. my goal is to install Windows without a license key.
Oddly enough it is only the 32 bit version of Windows that gives this error, the 64 bit version works fine. I even tried copying the contents of the control file from the 64 bit version but still god the same error.
ok.

Installing with an empty license key should always work.

So there might be an error in your repackaging of the win7-products

I would recommend that you start with the net-boot-packages from

http://download.uib.de/opsi4.0/testing/
win7_4.0.1-10.opsi
win7-x64_4.0.1-10.opsi

Patches for danish are welcome

together with the opsi-linuxbootimages from testing

regards,

Bardo Wolf


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


piet4220
Beiträge: 13
Registriert: 03 Nov 2011, 11:10

Re: Error list index out of range

Beitrag von piet4220 »

After upgrading the template to win7_4.0.1-10 and bootimage to 20111114-1 I get the following error when I try to install Windows 7 32bit.

Code: Alles auswählen

It was not possible to interpret or deal with the automatic response file for configuration step [specialize].
The settings specified in the answer file cannot be used.
The error was detected while processing settings for component [Microsoft-Windows-Shell-Setup]
There was no problem installing the same Windows 7 32bit repack when using the stock template 4.0.1-5 and bootimage 20110926-1, except when removing the line with the default license key option.
It also installs perfectly from USB, could this be a problem with the template?

I’ll test with the 64 bit version of Windows and template 4.0.1-10 later today to see if that gives the same error.

Also I’ll be glad to provide you with the Danish translations of the templates once I’m done.
If you need any other components translated to Danish please let me know.

I just tested with the Windows 7 64 bit install, it fails with the ssame error message when using template 4.0.1-10 but installs perfectly with template 4.0.1-5.

So I can't figure out why my 32 bit Windows 7 won't work with the 4.0.1-5 template when the default license option is removed, and why both 32 bit and 64 bit Windows 7 fails with the above error message when using template version 4.0.1-10

Any help is greatly appreciated
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: Error list index out of range

Beitrag von wolfbardo »

regarding errors in your unattend.xml I would recommend

- rename your custom\unattend.xml
- take opsi\unattend.xml.template as custom\unattend.xml
- test the win7-installation until its ok

- refine step by step the custom\unattend.xml

if you are interested in a translation for the opsi-configed you can send as info<at>uib.de a customized configed_XX.properties file based on configed_en.properties from

https://svn.opsi.org/
opsi-configed/trunk/classes/de/uib/messages

regards,

Bardo Wolf


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


piet4220
Beiträge: 13
Registriert: 03 Nov 2011, 11:10

Re: Error list index out of range

Beitrag von piet4220 »

I never made a custom xml, an unattend.xml might have been created by another application. I have added hotfixes to the install.wim file using Windows 7 Tool.

Do Opsi use any other unatend.xml besides the one in /custom? or is opsi not compatible with a modded install.wim?

/Piet
Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1411
Registriert: 01 Jul 2008, 12:10

Re: Error list index out of range

Beitrag von wolfbardo »

piet4220 hat geschrieben:I never made a custom xml, an unattend.xml might have been created by another application. I have added hotfixes to the install.wim file using Windows 7 Tool.

Do Opsi use any other unatend.xml besides the one in /custom? or is opsi not compatible with a modded install.wim?

/Piet
- using original MS win7-Media the unattended-Install with opsi uses custom/unattend.xml (Media from for instance OEMs may break using the custom/unattend.xml )
- if custom/unattend.xml and opsi/unattend.xml.template differs so please start with the opsi/unattend.xml.template as custom/unattend.xml
- I never used an modded install.wim (we are using a opsi-product for deploying hotfixes (some advertising: http://uib.de/en/opsi_support/index.html#subscriptions)

regards,
Bardo Wolf


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


Antworten