Seite 2 von 2

Re: Error Software inventory.

Verfasst: 15 Feb 2016, 12:35
von aszykmat
Hi,

In Config Editor I could change (in Help) log level to Debug mode and I see this error:

Code: Alles auswählen

[3] (INFO)     [lut 15  12:25:57.733  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]         Exception java.lang.IndexOutOfBoundsException: Index: -1, Size: 7716 
STACK:
     java.util.LinkedList.checkElementIndex(Unknown Source)
     java.util.LinkedList.get(Unknown Source)
     de.uib.opsidatamodel.DataStubNOM.getSWident(DataStubNOM.java:826)
     de.uib.opsidatamodel.OpsiserviceNOMPersistenceController.getSWident(OpsiserviceNOMPersistenceController.java:5973)
     de.uib.opsidatamodel.OpsiserviceNOMPersistenceController.getSoftwareAudit(OpsiserviceNOMPersistenceController.java:2553)
     de.uib.configed.ConfigedMain.setSoftwareInfoPage(ConfigedMain.java:3930)
     de.uib.configed.ConfigedMain.resetView(ConfigedMain.java:4134)
     de.uib.configed.ConfigedMain.setViewIndex(ConfigedMain.java:4339)
     de.uib.configed.gui.MainFrame$78.stateChanged(MainFrame.java:3120)
     javax.swing.JTabbedPane.fireStateChanged(Unknown Source)
     javax.swing.JTabbedPane$ModelListener.stateChanged(Unknown Source)
     javax.swing.DefaultSingleSelectionModel.fireStateChanged(Unknown Source)
     javax.swing.DefaultSingleSelectionModel.setSelectedIndex(Unknown Source)
     javax.swing.JTabbedPane.setSelectedIndexImpl(Unknown Source)
     javax.swing.JTabbedPane.setSelectedIndex(Unknown Source)
     javax.swing.plaf.basic.BasicTabbedPaneUI$Handler.mousePressed(Unknown Source)
     javax.swing.plaf.synth.SynthTabbedPaneUI$1.mousePressed(Unknown Source)
     java.awt.AWTEventMulticaster.mousePressed(Unknown Source)
     java.awt.Component.processMouseEvent(Unknown Source)
     javax.swing.JComponent.processMouseEvent(Unknown Source)
     java.awt.Component.processEvent(Unknown Source)
     java.awt.Container.processEvent(Unknown Source)
     java.awt.Component.dispatchEventImpl(Unknown Source)
     java.awt.Container.dispatchEventImpl(Unknown Source)
     java.awt.Component.dispatchEvent(Unknown Source)
     java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     java.awt.Container.dispatchEventImpl(Unknown Source)
     java.awt.Window.dispatchEventImpl(Unknown Source)
     java.awt.Component.dispatchEvent(Unknown Source)
     java.awt.EventQueue.dispatchEventImpl(Unknown Source)
     java.awt.EventQueue.access$500(Unknown Source)
     java.awt.EventQueue$3.run(Unknown Source)
     java.awt.EventQueue$3.run(Unknown Source)
     java.security.AccessController.doPrivileged(Native Method)
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
     java.awt.EventQueue$4.run(Unknown Source)
     java.awt.EventQueue$4.run(Unknown Source)
     java.security.AccessController.doPrivileged(Native Method)
     java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
     java.awt.EventQueue.dispatchEvent(Unknown Source)
     java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
     java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
     java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     java.awt.EventDispatchThread.run(Unknown Source)

[1] (ERROR)    [lut 15  12:25:57.733  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]         Error in setSoftwareInfoPage: java.lang.IndexOutOfBoundsException: Index: -1, Size: 7716
[5] (DEBUG)    [lut 15  12:25:57.755  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]          tab index could not be changed
[5] (DEBUG)    [lut 15  12:25:57.755  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]      de.uib.configed.gui.MainFrame    enableMenuItemsForClients, countSelectedClients 1
[5] (DEBUG)    [lut 15  12:25:57.755  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]      de.uib.opsidatamodel.OpsiserviceNOMPersistenceController   getConfigOptions() ready 
[3] (INFO)     [lut 15  12:25:57.756  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]      de.uib.configed.ConfigedMain    visualViewIndex 0, (old) viewIndex 0
[3] (INFO)     [lut 15  12:25:57.756  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]      de.uib.configed.ConfigedMain   setViewIndex anyDataChanged false
[5] (DEBUG)    [lut 15  12:25:57.756  2016]    [Thread[AWT-EventQueue-2,6,javawsApplicationThreadGroup]]      de.uib.configed.ConfigedMain   ---------------- saveIfIndicated : anyDataChanged, false

Regards,
Matt.

Re: Error Software inventory.

Verfasst: 17 Feb 2016, 11:09
von r.roeder
Hi,

arguing based on the code the error should come from a missing software entry in the overall list of installed software. But this should be fixed if you run sw_audit for the client, which as you said you did already. Try it again and look if it really works. If the error is still produced more log files are needed.

Regards
R. Röder

Re: Error Software inventory.

Verfasst: 09 Mär 2016, 15:31
von aszykmat
Hi,

Maybe this log resolved my situation:

Code: Alles auswählen

3] [Mar 09 15:27:54] Failed to update rrd: /var/lib/opsiconfd/rrd/opsiconfd.rrd: illegal attempt to update using time 1457533674 when last update time is 1457533674 (minimum one second step) (statistics.py|224)
[7] [Mar 09 15:28:19] [twisted] Exception rendering: (Logger.py|244)
[2] [Mar 09 15:28:19] Traceback: (Logger.py|233)
[2] [Mar 09 15:28:19]      line 577 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 456 in 'writeResponse' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 726 in 'beginProducing' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/stream.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 588 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/channel/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 557 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 772 in 'stopProducing' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/stream.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 593 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/channel/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 577 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      ==>>> 'NoneType' object has no attribute '_producer' (Logger.py|234)
[7] [Mar 09 15:28:19] [twisted] Exception rendering error page: (Logger.py|244)
[2] [Mar 09 15:28:19] Traceback: (Logger.py|233)
[2] [Mar 09 15:28:19]      line 577 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 456 in 'writeResponse' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 726 in 'beginProducing' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/stream.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 581 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/channel/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      ==>>> registering producer <OPSI.web2.stream.StreamProducer object at 0x7f4169b42bd0> before previous one (<OPSI.web2.stream.StreamProducer object at 0x7f41083efe90>) was unregistered (Logger.py|234)
[7] [Mar 09 15:28:19] [twisted] Original exception: (Logger.py|244)
[2] [Mar 09 15:28:19] Traceback: (Logger.py|233)
[2] [Mar 09 15:28:19]      line 577 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 456 in 'writeResponse' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 726 in 'beginProducing' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/stream.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 588 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/channel/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 557 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 772 in 'stopProducing' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/stream.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 593 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/channel/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 577 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      ==>>> 'NoneType' object has no attribute '_producer' (Logger.py|234)
[3] [Mar 09 15:28:19] [twisted] Unhandled error in Deferred: (Logger.py|241)
[2] [Mar 09 15:28:19] Traceback: (Logger.py|233)
[2] [Mar 09 15:28:19]      line 577 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 492 in '_processingReallyFailed' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/server.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 456 in 'writeResponse' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 726 in 'beginProducing' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/stream.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      line 581 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/OPSI/web2/channel/http.py' (Logger.py|233)
[2] [Mar 09 15:28:19]      ==>>> registering producer <OPSI.web2.stream.StreamProducer object at 0x7f4169b42f50> before previous one (<OPSI.web2.stream.StreamProducer object at 0x7f41083efe90>) was unregistered (Logger.py|234)
[3] [Mar 09 15:28:19] Failed to update rrd: /var/lib/opsiconfd/rrd/opsiconfd.rrd: illegal attempt to update using time 1457533699 when last update time is 1457533699 (minimum one second step) (statistics.py|224)
[3] [Mar 09 15:28:54] Failed to update rrd: /var/lib/opsiconfd/rrd/opsiconfd.rrd: illegal attempt to update using time 1457533734 when last update time is 1457533734 (minimum one second step) (statistics.py|224)

Re: Error Software inventory.

Verfasst: 10 Mär 2016, 13:51
von n.wenselowski
Hi,

interesting failure. Could be trouble with Twisted.

What does your dispatch.conf look like?

Code: Alles auswählen

grep -v "#" /etc/opsi/backendManager/dispatch.conf
What OS are you running on and what version of opsiconfd, python-opsi and python-twisted are you using?


Kind regards

Niko

Re: Error Software inventory.

Verfasst: 10 Mär 2016, 14:05
von aszykmat
Hi Niko,

Dispatch.conf:

Code: Alles auswählen

backend_.*         : mysql, file, opsipxeconfd
host_.*            : file, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.*     : file, opsipxeconfd
audit.*            : mysql
.*                 : file
OPSI is running on Ubuntu 14.04.3 (Image from OPSI download and update to newest version).

Version packages:
opsiconfd 4.0.6.11-2
python-opsi: 4.0.6.34-1
python-twisted: 13.2.0-1ubuntu1

All packages are regularly updated.


Thank you for help.

Regards,
Matt.

Re: Error Software inventory.

Verfasst: 23 Mär 2016, 15:37
von aszykmat
Hi,

Any solution this problem ?

Regards,
Matt.

Re: Error Software inventory.

Verfasst: 24 Mär 2016, 14:50
von ueluekmen
Hi,

have you tried the normal Fixing-All-Commands:

Code: Alles auswählen

opsi-setup --init-current-config
opsi-set-rights
/etc/init.d/opsiconfd restart
/etc/init.d/opsipxeconfd restart

Re: Error Software inventory.

Verfasst: 31 Mär 2016, 12:29
von n.wenselowski
Hi,

it's hard to debug :?

My take on this would be: check what data a client inserts at a audit. Then check if the data can be retrieved.
A guess from my side would be that there may be an identifier that is the same if you ignore the case and this could lead to trouble.


Kind regards

Niko