[Solved] CEntOS 6: Probleme nach OPSI-Update

Antworten
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

[Solved] CEntOS 6: Probleme nach OPSI-Update

Beitrag von uncle_scrooge »

Nach meinem heutigen Updateversuch funktioniert OPSI nicht mehr.

service opsiconfd restart

Code: Alles auswählen

Starting opsi config service..Traceback (most recent call last):
  File "/usr/bin/opsiconfd", line 12, in <module>
    from opsiconfd.opsiconfd import main
  File "/usr/lib/python2.6/site-packages/opsiconfd/opsiconfd.py", line 68, in <module>
    from OPSI.Backend.BackendManager import BackendManager
  File "/usr/lib/python2.6/site-packages/OPSI/Backend/BackendManager.py", line 45, in <module>
    from OPSI.Backend.Depotserver import DepotserverBackend
  File "/usr/lib/python2.6/site-packages/OPSI/Backend/Depotserver.py", line 39, in <module>
    from OPSI.Util.Product import ProductPackageFile
  File "/usr/lib/python2.6/site-packages/OPSI/Util/Product.py", line 34, in <module>
    from OPSI.Util.File.Archive import Archive
  File "/usr/lib/python2.6/site-packages/OPSI/Util/File/Archive/__init__.py", line 44, in <module>
    import magic
  File "/usr/lib/python2.6/site-packages/magic.py", line 96, in <module>
    _list = _libraries['magic'].magic_list
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 366, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 371, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib64/libmagic.so.1: undefined symbol: magic_list
..........   (failed).
service opsipxeconfd restart

Code: Alles auswählen

Starting opsi pxe configuration service..Traceback (most recent call last):
  File "/usr/bin/opsipxeconfd", line 47, in <module>
    from OPSI.Backend.BackendManager import BackendManager
  File "/usr/lib/python2.6/site-packages/OPSI/Backend/BackendManager.py", line 45, in <module>
    from OPSI.Backend.Depotserver import DepotserverBackend
  File "/usr/lib/python2.6/site-packages/OPSI/Backend/Depotserver.py", line 39, in <module>
    from OPSI.Util.Product import ProductPackageFile
  File "/usr/lib/python2.6/site-packages/OPSI/Util/Product.py", line 34, in <module>
    from OPSI.Util.File.Archive import Archive
  File "/usr/lib/python2.6/site-packages/OPSI/Util/File/Archive/__init__.py", line 44, in <module>
    import magic
  File "/usr/lib/python2.6/site-packages/magic.py", line 96, in <module>
    _list = _libraries['magic'].magic_list
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 366, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 371, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib64/libmagic.so.1: undefined symbol: magic_list
..........   (failed).
Selbst ein schnödes opsi-set-rights mag nicht mehr

Code: Alles auswählen

Traceback (most recent call last):
  File "/usr/bin/opsi-setup", line 45, in <module>
    from OPSI.Util.Task.CleanupBackend import cleanupBackend
  File "/usr/lib/python2.6/site-packages/OPSI/Util/Task/CleanupBackend.py", line 39, in <module>
    from OPSI.Backend.BackendManager import BackendManager
  File "/usr/lib/python2.6/site-packages/OPSI/Backend/BackendManager.py", line 45, in <module>
    from OPSI.Backend.Depotserver import DepotserverBackend
  File "/usr/lib/python2.6/site-packages/OPSI/Backend/Depotserver.py", line 39, in <module>
    from OPSI.Util.Product import ProductPackageFile
  File "/usr/lib/python2.6/site-packages/OPSI/Util/Product.py", line 34, in <module>
    from OPSI.Util.File.Archive import Archive
  File "/usr/lib/python2.6/site-packages/OPSI/Util/File/Archive/__init__.py", line 44, in <module>
    import magic
  File "/usr/lib/python2.6/site-packages/magic.py", line 96, in <module>
    _list = _libraries['magic'].magic_list
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 366, in __getattr__
    func = self.__getitem__(name)
  File "/usr/lib64/python2.6/ctypes/__init__.py", line 371, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/lib64/libmagic.so.1: undefined symbol: magic_list
Pakete, die installiert wurden (auf OPSI repository beschränkt):

Code: Alles auswählen

Installing:
 python-pycrypto                            x86_64                     2.6.1-10.1                                       opsi4                        498 k
     replacing  python-crypto.x86_64 2.1.0-5.2
Updating:
 cabextract                                 x86_64                     1.2-5.8                                          opsi4                         45 k
 duplicity                                  x86_64                     0.6.24-9.3                                       opsi4                        533 k
 opsi-atftp                                 x86_64                     0.7.dfsg-14.2                                    opsi4                         31 k
 opsi-configed                              noarch                     4.0.7.5.22-2.3                                   opsi4                        6.8 M
 opsi-depotserver                           noarch                     4.0.7.3-1.2                                      opsi4                         23 k
 opsi-linux-bootimage                       noarch                     20170720-1.2                                     opsi4                        212 M
 opsi-linux-support                         noarch                     4.0.7-5.3                                        opsi4                        3.3 k
 opsi-utils                                 noarch                     4.0.7.17-2.2                                     opsi4                         82 k
 opsiconfd                                  noarch                     4.0.7.13-1.2                                     opsi4                        100 k
 opsipxeconfd                               noarch                     4.0.7.8-3.2                                      opsi4                         19 k
 python-GnuPG-Interface                     x86_64                     0.3.2-4.8                                        opsi4                         25 k
 python-SQLAlchemy                          i686                       0.7.7-32.5                                       opsi4                        1.3 M
 python-SQLAlchemy                          x86_64                     0.7.7-32.5                                       opsi4                        1.4 M
 python-ldaptor                             x86_64                     0.0.43-16.4                                      opsi4                        155 k
 python-lockfile                            noarch                     0.9.1-2.2                                        opsi4                         20 k
 python-magic                               x86_64                     5.19-7.1                                         opsi4                        9.0 k
 python-opsi                                noarch                     4.0.7.45-3.2                                     opsi4                        1.5 M
 python-serial                              noarch                     2.4-12.2                                         opsi4                         62 k
 winexe                                     x86_64                     1.00.1-1.2                                       opsi4                        1.9 M
 zsync                                      x86_64                     0.6.2-5.2                                        opsi4                         75 k
Jemand eine Idee dazu?
Danke.
Zuletzt geändert von uncle_scrooge am 23 Okt 2017, 16:35, insgesamt 1-mal geändert.
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: CEntOS 6: Probleme nach OPSI-Update

Beitrag von n.wenselowski »

Hi,

ich vermute das Problem bei python-magic.
Scheinbar hat er da eine Version aus unserem Repo aufgenommen, die sollte aber bei CentOS nicht zum Einsatz kommen. :oops:
Ich habe nochmal das Löschen der Binaries angestoßen, hoffentlich sorgt das für Abhilfe.

Konkret würde ich jetzt versuchen das Paket neu zu installieren:

Code: Alles auswählen

yum clean all
yum makecache
yum reinstall python-magic

Viele Grüße

Niko

Code: Alles auswählen

import OPSI
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: CEntOS 6: Probleme nach OPSI-Update

Beitrag von uncle_scrooge »

python-magic war/ist in der Tat das Problem.
Das Löschen der binaries scheint wohl auf den mirrors noch nicht angekommen zu sein.
Ich kann yum aktuell nur per --disablerepo opsi4 davon überzeugen, die ältere Version aus base zu nehmen.
Aber dann tut OPSI wieder so, wie es soll.

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

Re: CEntOS 6: Probleme nach OPSI-Update

Beitrag von n.wenselowski »

Hi,

sorry für die Unnahmlichkeiten!
Ich habe nochmal am Paket gewackelt. Meine Tests waren zu 50% erfolgreich und ich vermute das hing in dem Fall tatsächlich davon ab auf welchem Mirror ich rausgekommen bin.

Falls das Problem weiter besteht bitte melden, ich kann dann nochmal versuchen fester zu wackeln :lol:


Gruß

Niko

Code: Alles auswählen

import OPSI
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: CEntOS 6: Probleme nach OPSI-Update

Beitrag von uncle_scrooge »

>>sorry für die Unnahmlichkeiten!
Alles gut! Ganz tiefenentspannt bleiben.

Da ich das Ganze auf einem Klon der Produktionsmaschine probiert habe, ist da nichts passiert.
Ich werde morgen ab und an mal nachschauen, ob sich auf den mirrors was getan hat. Und mich melden.
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: CEntOS 6: Probleme nach OPSI-Update

Beitrag von uncle_scrooge »

Ich fürchte, ihr müsst noch mal etwas heftiger rütteln.
Das Paket erfreut sich im OPSI4 repository immer noch bester Gesundheit.
(Ich hab keine Ahnung, wie SUSE ihre repositories aufgebaut hat. Aber nach dem Crash von openbuild vor ein paar Wochen gehe ich davon aus, daß da nur ein Storagesystem hinterhängt. Und da sollte euer Löschansinnen mittlerweile eigentlich schon angekommen sein.)
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: CEntOS 6: Probleme nach OPSI-Update

Beitrag von n.wenselowski »

uncle_scrooge hat geschrieben:Ich fürchte, ihr müsst noch mal etwas heftiger rütteln.
Wie Bruce Banner in seinen grünsten Tagen habe ich gerüttelt!

Bei mir klappts:

Code: Alles auswählen

[root@stb-40-srv-112 yum.repos.d]# yum info python-magic
...
Name        : python-magic
Version     : 5.04
Release     : 30.el6
From repo   : base
...
Bitte lass yum nochmal seine Repo infos vergessen und probiere es nochmal.


Gruß

Niko

Code: Alles auswählen

import OPSI
uncle_scrooge
Beiträge: 650
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: CEntOS 6: Probleme nach OPSI-Update

Beitrag von uncle_scrooge »

Sieht gut aus. Danke.

(private note:
Ich muß mich doch mal in die Unterstadt bequemen. Niko Wenselowski in grün stelle ich mir schon putzig vor. Und ich kann gut Leute aufregen, kann ich nämlich.)
Antworten