Seite 1 von 2

error : local variable 'result' referenced before assignment

Verfasst: 18 Feb 2013, 12:03
von aellert
Hi,

I'm trying to deploy OS windows 7 pro on a laptop via netboot and here is the error message i get during initial hwaudit :

Code: Alles auswählen

local variable 'result' referenced before assignment
Here is the relevant logs found in /var/log/opsi/bootimage/<hostname>.log

Code: Alles auswählen

[7] [Feb 18 10:19:48] Processing class 'COMPUTER_SYSTEM' (Posix.py|2515)
[6] [Feb 18 10:19:48] Condition found, try to check the Condition (Posix.py|2529)
[2] [Feb 18 10:19:49] Traceback: (Logger.py|742)
[2] [Feb 18 10:19:49]      line 1387 in '<module>' in file '/usr/local/bin/master.py' (Logger.py|742)
[2] [Feb 18 10:19:49]      line 132 in '<module>' in file '/tmp/setup.py' (Logger.py|742)
[2] [Feb 18 10:19:49]      line 2483 in 'auditHardware' in file '/usr/lib/pymodules/python2.6/OPSI/System/Posix.py' (Logger.py|742)
[2] [Feb 18 10:19:49]      line 2551 in 'hardwareExtendedInventory' in file '/usr/lib/pymodules/python2.6/OPSI/System/Posix.py' (Logger.py|742)
[2] [Feb 18 10:19:49]      ==>>> local variable 'Write failed: Broken pipe assignment (master.py|1435)
JSONRPC.JSONRPCBackend instance at 0x8a0058c> (master.py|1438)
I managed successfully to deploy Windows on other laptop (same models).
I don't know what is going wrong with this one... Any clue ?

Thanks for you help

PS : i'm running last stable opsi version on an up to date Debian squeeze server.

Re: error : local variable 'result' referenced before assign

Verfasst: 18 Feb 2013, 14:26
von ueluekmen
Hi,

can you post the output from:

Code: Alles auswählen

opsi-package-manager -l

Re: error : local variable 'result' referenced before assign

Verfasst: 18 Feb 2013, 19:13
von aellert
Here is the output :

Code: Alles auswählen

# opsi-package-manager -l
------------------------------
- ivsfrsrv-opsi.ivsdomain.fr -
------------------------------
   Product ID                Version                   Name                                                                                                                                                               
   =======================================================================================================================================================================================================================
   7-zip                     9.20-3                    7-zip                                                                                                                                                              
   acrobat_reader            10.1.5-9                  Acrobat Reader 10.x                                                                                                                                                
   activate-win              1.0-6                     Windows Activation                                                                                                                                                 
   adobe_flash               11.5.502.146-3            Adobe Flash player                                                                                                                                                 
   ati-vostro_3350           1.0-1                     ati-vostro_3350                                                                                                                                                    
   beyondcompare3            3.3.5-1                   BeyondCompare3                                                                                                                                                     
   blackberry                7.0-1                     BlackBerry Desktop Software                                                                                                                                        
   chrome                    24.0.1312.56-6            Google Chrome                                                                                                                                                      
   config-win-base           4.0.1-1                   Windows Customizing                                                                                                                                                
   cygwin                    20120806-1                Cygwin                                                                                                                                                             
   dell-fingerprint          5.20-3                    dell-fingerprint                                                                                                                                                   
   dell_client_system_update 1.3.0-2                   Dell Client System Update                                                                                                                                          
   dopdf                     7.3.381-6                 doPDF                                                                                                                                                              
   dotnetframework4.0        20120221-1                dotNETFramework4.0                                                                                                                                                 
   faststone_capture         5.3-2                     FastStone Capture                                                                                                                                                  
   filezilla                 3.5.3-2                   FileZilla                                                                                                                                                          
   fineprint                 6.25-2                    Fine Print 6                                                                                                                                                       
   firefox                   18.0.1-3                  Firefox                                                                                                                                                            
   google_drive              1.7.4018.3496-2           Google Drive                                                                                                                                                       
   google_sync_outlook       3.2.353.947-2             Google Sync for Outlook                                                                                                                                            
   google_talk               1.0.0.104-1               Google Talk                                                                                                                                                        
   gvim                      7.3.46-1                  gvim                                                                                                                                                               
   hwaudit                   4.0.5-1                   Client Hardwareinventarisierung                                                                                                                                    
   hwinvent                  4.0-1                     Hardware Inventarisierung                                                                                                                                          
   javavm                    1.6.0.33-2                Oracle Java Runtime Environment                                                                                                                                    
   javavm_7                  1.7.0u11-3                JRE 7                                                                                                                                                              
   jedit                     4.5.2-2                   jEdit programmer's text editor                                                                                                                                     
   logmein_rescue            7.1.1257-1                Console d'assistance LogMeIn Rescue                                                                                                                                
   memtest86                 3.5b-1                    Memtest86+                                                                                                                                                         
   notepadpp                 6.1.5-1                   Notepad++                                                                                                                                                          
   ntfs-restore-image        4.0-1                     NTFS Image zurückschreiben                                                                                                                                         
   ntfs-write-image          4.0-1                     NTFS Image erstellen                                                                                                                                               
   office_2010               2010-2                    Microsoft Office 2010 SP1                                                                                                                                          
   opsi-adminutils           4.0.2.1-4                 some administration tools (not only) for opsi                                                                                                                      
   opsi-client-agent         4.0.2.1-2                 opsi.org client agent                                                                                                                                              
   opsi-template             4.0.2-2                   opsi template product                                                                                                                                              
   opsi-template-with-admin  4.0.2-2                   opsi template for installs with logged in admin                                                                                                                    
   opsi-winst                4.11.3.3-1                winst                                                                                                                                                              
   opsi-winst-test           4.11.3-3                  opsi-winst test                                                                                                                                                    
   paint_net                 3.5.10-2                  Paint.net                                                                                                                                                          
   pdf_tk_builder            3.6-1                     PDF TK Builder                                                                                                                                                     
   powerbroker_desktop       5.3.0.314-1               BeyondTrust - PowerBroker Desktops Client                                                                                                                          
   putty                     0.62-1                    Putty                                                                                                                                                              
   python2.x                 2.7.3-1                   Python2.x                                                                                                                                                          
   qtsdk                     1.2.1-1                   QtSDK                                                                                                                                                              
   qtvisualstudioaddin       1.1.11-1                  QtVisualStudioAddIn                                                                                                                                                
   real_vnc                  4.6.3-2                   Real VNC Enterprise Edition                                                                                                                                        
   sage_comptabilite         7.0.1-1                   Sage 100 Comptabilité pour SQL Server i7                                                                                                                           
   sage_direct               3.8.0.14-1                Sage Direct                                                                                                                                                        
   sage_etafi                7.0.0-1                   Sage 100 Etats comptables et fiscaux i7                                                                                                                            
   sage_excel_powerpivot     2010-1                    Excel Power Pivot                                                                                                                                                  
   sage_gest_com             2.29-1                    Sage 100 Gestion commerciale i7 pour SQL Server                                                                                                                    
   sage_immo                 7.0.1-1                   Sage 100 Immobilisations pour SQL Server i7                                                                                                                        
   sage_moyen_paiement       7.0.1-1                   Sage 100 Moyens de paiement pour SQL Server i7                                                                                                                     
   sage_sql_admin_client     17.01-1                   Outil d'administration client pour SQL Server                                                                                                                      
   setup_common              1.0-3                     meta package to setup install of common corporate packages                                                                                                         
   setupqtdevenv             1.0-1                     setupQtDevEnv                                                                                                                                                      
   sfr_3g                    3.4-1                     sfr_3g                                                                                                                                                             
   shutdownwanted            1.0-4                     shutdown wanted                                                                                                                                                    
   sliksvn                   1.7.5-1                   SlikSVN                                                                                                                                                            
   swaudit                   4.0.2-1                   Client software inventory                                                                                                                                          
   tortoisehg                2.4.2-1                   TortoiseHg                                                                                                                                                         
   tortoisesvn               1.7.8-1                   TortoiseSVN                                                                                                                                                        
   tortoisesvn-1.6           1.6.16-1                  TortoiseSVN                                                                                                                                                        
   visio_2010                2010-1                    Microsoft Visio 2010 Pro SP1                                                                                                                                       
   visualjsharpredist        2.0-1                     VisualJ#Redist                                                                                                                                                     
   visualstudio2005sp1       2005-1                    Microsoft Visual Studio 2005 SP1                                                                                                                                   
   visualstudio2010sp1       10.0.40219-3              VisualStudio2010SP1                                                                                                                                                
   vlc                       2.0.3-2                   VLC                                                                                                                                                                
   vmware_vsphereclient      5.0-1                     VMWare vSphere Client                                                                                                                                              
   win2003                   4.0.2-1                   Windows 2003 Standard Edition - x86 - deutsch                                                                                                                      
   win2003-r2-x64            4.0.2-1                   Windows Server 2003 R2 - x64 - english                                                                                                                             
   win2008                   4.0.2-1                   Windows Server 2008 - x86                                                                                                                                          
   win2008-r2                4.0.2-1                   Windows Server 2008 R2 - x64                                                                                                                                       
   win2008-x64               4.0.2-1                   Windows Server 2008 - x64                                                                                                                                          
   win2k                     4.0.2-1                   Windows 2000 professional - x86 - deutsch                                                                                                                          
   win7                      4.0.2-1                   Windows 7 - x86                                                                                                                                                    
   win7-x64                  4.0.2-1                   Windows 7 - x64                                                                                                                                                    
   windomain                 1.0-3                     Join NT Domain                                                                                                                                                     
   winmerge                  2.2.14-1                  WinMerge                                                                                                                                                           
   winvista                  4.0.2-1                   Windows Vista - x86                                                                                                                                                
   winvista-x64              4.0.2-1                   Windows Vista - x64                                                                                                                                                
   winxppro                  4.0.2-1                   Windows XP professional - x86 - deutsch                                                                                                                            
   winxppro-x64              4.0.2-1                   Windows XP professional - x64 - deutsch                                                                                                                            
   wipedisk                  1.0-2                     Festplatte oder Partitionen loeschen

Re: error : local variable 'result' referenced before assign

Verfasst: 26 Feb 2013, 12:52
von aellert
up ?

Re: error : local variable 'result' referenced before assign

Verfasst: 26 Feb 2013, 23:08
von ueluekmen
Hi,

sorry for the delay, but we are really busy at the moment.

Your win-packages are up2date. Please check your OS-Packages.

Please post:

Code: Alles auswählen

dpkg -l | grep opsi
If you use the current versions, please send the bootimage.log to info(at)uib.de. Please write a link to this thread in the mail.

regards

Re: error : local variable 'result' referenced before assign

Verfasst: 22 Apr 2013, 18:27
von zaber
I am having the same issue on one of my workstations. What was the resolution if there was one please?

Re: error : local variable 'result' referenced before assign

Verfasst: 23 Apr 2013, 11:22
von ueluekmen
We have no answer for the last question. Which os-packages are installed on the server?
ueluekmen hat geschrieben:dpkg -l | grep opsi

Re: error : local variable 'result' referenced before assign

Verfasst: 23 Apr 2013, 16:29
von zaber
I my case the output of `dpkg -l | grep opsi` is:

Code: Alles auswählen

ii  opsi-atftpd                              0.7.dfsg-2.1                                      advanced TFTP server - opsi version with pcr
ii  opsi-configed                            4.0.3.2.1-1                                       OPSI config editor
ii  opsi-depotserver                         4.0.3.1-1                                         opsi depotserver configuration package
ii  opsi-linux-bootimage                     20130207-1                                        opsi linux bootimage
ii  opsi-utils                               4.0.3.1-1                                         opsi utils
ii  opsiconfd                                4.0.3.1-1                                         opsi configuration service
ii  opsipxeconfd                             4.0.3.1-1                                         opsi pxe configuration daemon
ii  python-opsi                              4.0.3.1-1                                         opsi python library
Shall I start a new thread as I am not the OP?

Re: error : local variable 'result' referenced before assign

Verfasst: 24 Apr 2013, 09:18
von wolfbardo
Please post also the output from

Code: Alles auswählen

opsi-package-manager -l
regards,
Bardo Wolf

Re: error : local variable 'result' referenced before assign

Verfasst: 24 Apr 2013, 12:43
von d.oertel
Hi,

what I see from this thread is:
- your packages are up to date.
- the problem ist specific for one laptop (it works on other boxes , even of the same type)

you may send us the complete bootimage log, but without a support contract
(Did we told you about our wonderful support contracts before ?: http://www.uib.de/en/opsi_support/index.html)
it may be that we do not find the time to analyze this problem.

One thing you may check is the possibility of an BIOS Update.

regards

d.oertel