Server vergisst Produkt-Status

Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Server vergisst Produkt-Status

Beitrag von n.wenselowski »

Hallo MathiasM,

können Sie das Loglevel in /etc/opsi/opsiconfd.conf auf 7 erhöhen und den opsiconfd neu starten?

Code: Alles auswählen

sudo service opsiconfd restart[code]

Ist es möglich den Fehler gezielt zur reproduzieren?
Tauchen in /var/log/opsi/opsiconfd/opsiconfd.log eventuell Fehler-Meldungen auf?
Ist es möglich uns ein Logfile zukommen zu lassen, welches geschrieben wurde, als der Fehler wieder auftrat?


Gruß

N. Wenselowski

Code: Alles auswählen

import OPSI
MathiasM
Beiträge: 8
Registriert: 07 Aug 2013, 16:16

Re: Server vergisst Produkt-Status

Beitrag von MathiasM »

Hallo Herr Wenselowski,

ich habe das Loglevel auf 7 erhöht und den Dienst neugestartet. Leider kann ich den Fehler nicht reproduzieren, ich werde aber ab jetzt die Log-Dateien täglich kontrollieren und Sie benachrichtigen, falls mir etwas auffällt.

Ich habe im opsiconfd-Log tatsächlich Fehler gefunden. Diese liegen allerdings etwas zurück und enthalten keine verweise auf Rechner, sodass ich nicht nachvollziehen kann, worum es sich dabei handelt. Im folgenden ein Auszug aus dem Log, was die betreffenden Logeinträge zeigt:

Code: Alles auswählen

[2] [Oct 02 12:50:33] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:33]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 588 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 543 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 772 in 'stopProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 593 in 'unregisterProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 563 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      ==>>> 'NoneType' object has no attribute '_producer' (Logger.py|184)
[2] [Oct 02 12:50:33] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:33]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 581 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      ==>>> registering producer <OPSI.web2.stream.StreamProducer object at 0x40bf0d0> before previous one (<OPSI.web2.stream.StreamProducer object at 0x5284890>) was unregistered (Logger.py|184)
[2] [Oct 02 12:50:33] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:33]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 588 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 543 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 772 in 'stopProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 593 in 'unregisterProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 563 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      ==>>> 'NoneType' object has no attribute '_producer' (Logger.py|184)
[3] [Oct 02 12:50:33] [twisted] Unhandled error in Deferred: (Logger.py|190)
[2] [Oct 02 12:50:33] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:33]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 492 in '_processingReallyFailed' in file '/usr/lib/pymodules/python2.7/OPSI/web2/server.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      line 581 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:33]      ==>>> registering producer <OPSI.web2.stream.StreamProducer object at 0x5861790> before previous one (<OPSI.web2.stream.StreamProducer object at 0x5284890>) was unregistered (Logger.py|184)
[2] [Oct 02 12:50:43] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:43]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 588 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 543 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 772 in 'stopProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 593 in 'unregisterProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 563 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      ==>>> 'NoneType' object has no attribute '_producer' (Logger.py|184)
[2] [Oct 02 12:50:43] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:43]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 581 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      ==>>> registering producer <OPSI.web2.stream.StreamProducer object at 0x452e550> before previous one (<OPSI.web2.stream.StreamProducer object at 0x452e390>) was unregistered (Logger.py|184)
[2] [Oct 02 12:50:43] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:43]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 588 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 543 in 'registerProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 772 in 'stopProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 593 in 'unregisterProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 563 in 'unregisterProducer' in file '/usr/lib/python2.7/dist-packages/twisted/protocols/tls.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      ==>>> 'NoneType' object has no attribute '_producer' (Logger.py|184)
[3] [Oct 02 12:50:43] [twisted] Unhandled error in Deferred: (Logger.py|190)
[2] [Oct 02 12:50:43] Traceback: (Logger.py|183)
[2] [Oct 02 12:50:43]      line 551 in '_runCallbacks' in file '/usr/lib/python2.7/dist-packages/twisted/internet/defer.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 492 in '_processingReallyFailed' in file '/usr/lib/pymodules/python2.7/OPSI/web2/server.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 456 in 'writeResponse' in file '/usr/lib/pymodules/python2.7/OPSI/web2/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 726 in 'beginProducing' in file '/usr/lib/pymodules/python2.7/OPSI/web2/stream.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      line 581 in 'registerProducer' in file '/usr/lib/pymodules/python2.7/OPSI/web2/channel/http.py' (Logger.py|183)
[2] [Oct 02 12:50:43]      ==>>> registering producer <OPSI.web2.stream.StreamProducer object at 0x452e490> before previous one (<OPSI.web2.stream.StreamProducer object at 0x452e390>) was unregistered (Logger.py|184)
Vielleicht können Sie ja etwas damit anfangen, mir sagt es nichts :-)

Vielen Dank schon einmal für Ihre Hilfe und Grüße,
M. Merscher
Nils
Beiträge: 185
Registriert: 16 Sep 2011, 08:59

Re: Server vergisst Produkt-Status

Beitrag von Nils »

Hallo zusammen,

ich "hänge" mich hier mal an den Fall dran, da auch ich dieses Phänomen in unserer Umgebung beobatet habe.
Auch von mir ein paar Daten zu unserem Server:

Code: Alles auswählen

df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3        48G   11G   35G  23% /
udev            2,0G  4,0K  2,0G   1% /dev
tmpfs           791M  5,2M  786M   1% /run
none            5,0M     0  5,0M   0% /run/lock
none            2,0G     0  2,0G   0% /run/shm
/dev/sda1       184M   55M  121M  31% /boot
/dev/sdb1       443G  183G  261G  42% /opt

Code: Alles auswählen

ii  opsi-atftpd                      0.7.dfsg-2.1                      advanced TFTP server - opsi version with pcre, fifo and max-blksize patches
ii  opsi-configed                    4.0.3.3.4-1                       OPSI config editor
ii  opsi-depotserver                 4.0.3.2-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
ii  whoopsie                         0.1.33                            Ubuntu crash database submission daemon

Code: Alles auswählen

   7-zip                     9.20-1                    7-Zip
   activate-win              1.0-6                     Windows Activation
   adobeflash                11.8.800.168-1            Adobe Flash Player
   adobereader               11.0.04-1                 Adobe Reader
   basic-client              1.0-1                     Leitprodukt fuer buero pcs
   ccleaner                  4.05.4250-1               CCleaner
   cdburnerxp                4.5.2.4255-1              CDBurner XP
   config-win-base           4.0.1-1                   Windows Customizing
   dopdf                     7.3.387-1                 DoPDF
   dotnetfx                  4-2                       Microsoft .NET Framework
   firefox                   24.0-1                    Mozilla Firefox
   hardcopy                  2011.06.07-2              Hardcopy
   hwaudit                   4.0.5-1                   Client Hardwareinventarisierung
   hwinvent                  4.0-1                     Hardware Inventarisierung
   imageresizer              3.0.4442-1                Image Resizer
   intranet                  1.0-1                     Intranet
   java                      6.43-1                    Java Runtime Environment
   java7                     7.0.40-1                  Java Runtime Environment
   javavm                    1.6.0.33-2                Oracle Java Runtime Environment
   jedit                     5.0.0-3                   jEdit programmer's text editor
   libreoffice               3.4-1                     LibreOffice
   lotusnotes                8.5.3-22                  IBM Lotus Notes
   memtest86                 3.5b-1                    Memtest86+
   networklocation           1.0-1                     networklocation
   notepadplusplus           6.4.5-1                   Notepad++
   notes-single-logon        2.0-1                     Notes single logon feature
   ntfs-restore-image        4.0-1                     NTFS Image zurückschreiben
   ntfs-write-image          4.0-1                     NTFS Image erstellen
   nx-welcome                1.0-1                     NX-Welcomepage
   octopusdesk               460.6-5                   Octopus Desk 250
   openoffice                4.0.0-1                   Apache OpenOffice
   opsi-adminutils           4.0.3-1                   some administration tools (not only) for opsi
   opsi-client-agent         4.0.3.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.6-1                winst
   opsi-winst-test           4.11.3.5-1                opsi-winst test
   pdf24creator              5.4.0-1                   pdf24-creator
   pdfcreator                1.6.2-1                   PDFCreator
   pdfxchange                2.5.210-1                 PDF-XChange Viewer
   photoscape                3.6.2-1                   PhotoScape
   printkey                  5.10-3                    PrintKey2000
   prodks                    2.0.30-2                  proDKS
   proxysetting              1.0-1                     Proxy-Setting
   quicklook                 1.0-1                     QuickLook
   shutdownwanted            1.0-4                     shutdown wanted
   stickies                  7.1e-1                    Stickies
   swaudit                   4.0.2-1                   Client software inventory
   tulox-engl                1.46-1                    tulox Englisch-Wörterbuch
   tulox-franz               1.46-1                    tulox Französisch-Wörterbuch
   umgebungsvariablen        1.0-1                     Umgebungsvariablen setzen
   vlc                       2.0.8-1                   VideoLAN
   win2003                   4.0.3-1                   Windows 2003 Standard Edition - x86 - deutsch
   win2003-r2-x64            4.0.3-1                   Windows Server 2003 R2 - x64 - english
   win2008                   4.0.3-2                   Windows Server 2008 - x86
   win2008-r2                4.0.3-2                   Windows Server 2008 R2 - x64
   win2008-x64               4.0.3-2                   Windows Server 2008 - x64
   win2012                   4.0.3-2                   Windows Server 2012
   win2k                     4.0.3-1                   Windows 2000 professional - x86 - deutsch
   win7                      4.0.3-2                   Windows 7 - x86
   win7-x64                  4.0.3-2                   Windows 7 - x64
   win8                      4.0.3-2                   Windows
   win8-x64                  4.0.3-2                   Windows
   winvista                  4.0.3-2                   Windows Vista - x86
   winvista-x64              4.0.3-2                   Windows Vista - x64
   winvista-x64-msdn         4.0.3-2                   Windows Vista MSDN - x64
   winxppro                  4.0.3-1                   Windows XP professional - x86 - deutsch
   winxppro-x64              4.0.3-1                   Windows XP professional - x64 - deutsch
   wipedisk                  1.0-2                     Festplatte oder Partitionen loeschen
   wsusoffline               20120208.73-9             WSUS offline installer
   xpconfig                  2.6-1                     XP Cusotimizing
Plus ein paar weitere, zum Teil unternehmensintern entwickelte Anwendungen.

Code: Alles auswählen

 opsi-setup --cleanup-backend
wurde auch bei uns zwischenzeitlich immer wieder mal ausgeführt.

Sollten weitere Infos zur Analyse erforderlich sein, bitte ich um eine kurze Info.

Vielen Dank im Voraus für ihre Bemühungen und ein schönes Wochenende.
Viele Grüße
Nils
MathiasM
Beiträge: 8
Registriert: 07 Aug 2013, 16:16

Re: Server vergisst Produkt-Status

Beitrag von MathiasM »

Hallo Nils,

für mich wären noch ein paar Details interessant, um den Fehler einzugrenzen:

- Auf was für einem Server läuft der opsiconfd? (Distribution, RAID?)
- Wird das Dateibackend genutzt?
- Anzahl der Clients, evtl. Depots

Vielen Dank schon mal im Voraus!

Mit freundlichen Grüßen,
M. Merscher
Nils
Beiträge: 185
Registriert: 16 Sep 2011, 08:59

Re: Server vergisst Produkt-Status

Beitrag von Nils »

Hallo Mathias,

danke für deine Antwort.

- Der Server läuft in einer ESX-Umgebung unter Ubuntu ("Linux opsisrv02 3.2.0-54-generic #82-Ubuntu SMP Tue Sep 10 20:08:42 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux").
- Es wird kein RAID genutzt.
- Derzeit werden etwa 300 Clients verwaltet.
-- Wir haben "nur" ein Depot.

Unsere Backendkonfiguration ist wie folgt:
backend_.* : file, mysql, opsipxeconfd
host_.* : file, mysql, opsipxeconfd
productOnClient_.* : file, opsipxeconfd
configState_.* : file, opsipxeconfd
license.* : mysql
softwareLicense.* : mysql
audit.* : mysql
.* : file
Ich hoffe, dir mit diesen Infos weiterzuhelfen. Solltest du weitere Daten benötigen, so lass es mich gerne wissen.

Viele Grüße und einen erfolgreichen Start in die neue Woche.
Nils
MathiasM
Beiträge: 8
Registriert: 07 Aug 2013, 16:16

Re: Server vergisst Produkt-Status

Beitrag von MathiasM »

Hallo Nils,

vielen Dank für deine Antwort. Leider haben unsere Server relativ wenig gemeinsam. Ich hatte gehofft, durch ähnliche Konfigurationen das Problem eventuell eingrenzen zu können. Ein Punkt fällt mir aber auf: Wenn ich die Backend-Config richtig verstanden hab, werden auch bei dir die Informationen zu Produktstati in normalen Dateien gespeichert. Ob es vielleicht ein problem des File-Backends ist?

Leider müssen wir - oder zumindest ich - die Überprüfung dieser Möglichkeit wohl den Profis überlassen ;-)

Viele Grüße,
Mathias Merscher
Nils
Beiträge: 185
Registriert: 16 Sep 2011, 08:59

Re: Server vergisst Produkt-Status

Beitrag von Nils »

Hallo Mathias,

trotzdem vielen Dank für den Versuch, genaueres herauszufinden.
Deine Vermutung mit dem Filebackend könnte sein. Ich habe dies jedoch bisher nicht genauer untersucht.

Ich schließe mich dir aber gerne an, was die Überprüfung durch die Profis angeht. Mal schauen, was sie herausfinden. Sollten hierzu weitere Infos nötig sein, bitte ich um eine kurze Nachricht.

Nochmals vielen Dank und einen schönen Tag.
Viele Grüße
Nils
Getöse
Beiträge: 5
Registriert: 31 Jan 2013, 15:09

Re: Server vergisst Produkt-Status

Beitrag von Getöse »

Hallo zusammen,

gab es bei den hier genannten Fällen eine Eklärung/Lösung für das "Verschwinden" der Produkt-Informationen im configed?

Wir haben auch ein file-backend und nachdem ich letzte Woche opsi-setup --cleanup-backend ausgeführt habe, fehlen bei grob geschätzt 90% der Clients fast alle Produkt-Infos im configed.
Ist ein bissi ärgerlich ...

Viele Grüße
Nils
Beiträge: 185
Registriert: 16 Sep 2011, 08:59

Re: Server vergisst Produkt-Status

Beitrag von Nils »

Hallo Getöse,

bisher habe ich keine Info bzgl. einer Erklärung / Lösung. :(
Selbstverständlich bin aber auch ich weiterhin sehr daran interessiert. ;)

Viele Grüße
Nils
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Server vergisst Produkt-Status

Beitrag von n.wenselowski »

Hallo zusammen,

wir möchten das Problem angehen und würden uns deshalb über Mithilfe freuen.

Uns macht es die Arbeit leichter, wenn wir ein Backup (Config-Dateien, dispatch.conf und file.conf) eines betroffenen File-Backends bekommen könnten, mit dem Stand von vor --cleanup-backends.
Wenn uns jemand dieses zur Verfügung stellen möchte, dann bitte gepackt an info(at)uib.de senden und auf diesen Thread verweisen.

Bis dahin würde ich, wie in den Schulungen empfohlen, vor dem Aufräumen der Backends definitiv ein Backup erstellen.


Gruß

Niko

Code: Alles auswählen

import OPSI
Antworten