crash omv-mkconf and omv-update

  • Hi,


    I have got a problem with omv-mkconf and omv-update.
    When I try to update this occurs:



    I have got the Version: 4.1.11
    Is there somebody who can help?



    Editing via the gui is not working anymore. Nothing works.
    I do not want to reinstall.



    cu

    • Offizieller Beitrag

    And your anwser to the sutuation is not very helpful.

    In Volker's defense, the errors you are getting are very unusual for a system that has not been tampered with.


    What is the output of the following:
    dpkg -l | grep -v ^ii
    dpkg -l | grep openm


    Also, why were you using omv-update? Was something not working in the web interface?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hi,


    thnx 4 the hint. Here is the answer:

    • Offizieller Beitrag

    Answering all of my questions will only help you.


    What is the output of: apt-get -f install

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    By the way, trying to edit anything using the gui, these tries are failing aswell.

    That is because python is in a bad state. No need to use the gui until the packages are fixed.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • here is the output:


  • ...
    Use 'apt autoremove' to remove them.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    3 not fully installed or removed.
    Need to get 192 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Get:1 http://ftp.de.debian.org/debian stretch/main amd64 python3 amd64 3.5.3-1 [21,6 kB]
    Get:2 http://ftp.de.debian.org/debian stretch/main amd64 python3-apt amd64 1.4.0~beta3 [170 kB]
    Fetched 192 kB in 0s (5.223 kB/s)
    Setting up python3.5 (3.5.3-1) ...
    Traceback (most recent call last):
    File "/usr/lib/python3.5/py_compile.py", line 6, in <module>
    import importlib._bootstrap_external
    File "/usr/lib/python3.5/importlib/__init__.py", line 57, in <module>
    import types
    File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
    File "/usr/lib/python3.5/functools.py", line 23, in <module>
    from weakref import WeakKeyDictionary
    File "/usr/lib/python3.5/weakref.py", line 109
    def remove(wr, selfref=ref(self)
    ^
    TabError: inconsistent use of tabs and spaces in indentation
    dpkg: error processing package python3.5 (--configure):
    subprocess installed post-installation script returned error exit status 1
    dpkg: dependency problems prevent configuration of python3:
    python3 depends on python3.5 (>= 3.5.3-1~); however:
    Package python3.5 is not configured yet.



    dpkg: error processing package python3 (--configure):
    dependency problems - leaving unconfigured
    dpkg: dependency problems prevent configuration of python3-apt:
    python3-apt depends on python3 (<< 3.6); however:
    Package python3 is not configured yet.
    python3-apt depends on python3 (>= 3.5~); however:
    Package python3 is not configured yet.
    python3-apt depends on python3:any (>= 3.3.2-2~); however:
    Package python3 is not configured yet.



    dpkg: error processing package python3-apt (--configure):
    dependency problems - leaving unconfigured
    Errors were encountered while processing:
    python3.5
    python3
    python3-apt
    Traceback (most recent call last):
    File "/usr/sbin/omv-mkaptidx", line 35, in <module>
    import apt
    File "/usr/lib/python3/dist-packages/apt/__init__.py", line 26, in <module>
    from apt.package import Package
    File "/usr/lib/python3/dist-packages/apt/package.py", line 28, in <module>
    import socket
    File "/usr/lib/python3.5/socket.py", line 53, in <module>
    from enum import IntEnum
    File "/usr/lib/python3.5/enum.py", line 3, in <module>
    from types import MappingProxyType, DynamicClassAttribute
    File "/usr/lib/python3.5/types.py", line 166, in <module>
    import functools as _functools
    File "/usr/lib/python3.5/functools.py", line 23, in <module>
    from weakref import WeakKeyDictionary
    File "/usr/lib/python3.5/weakref.py", line 109
    def remove(wr, selfref=ref(self)
    ^
    TabError: inconsistent use of tabs and spaces in indentation
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    • Offizieller Beitrag

    I hope you didn't say yes to removing all of those packages.


    I would try:


    apt-get install --reinstall python3.5 python3 python3-apt

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    File "/usr/lib/python3.5/weakref.py", line 109
    def remove(wr, selfref=ref(self)
    ^
    TabError: inconsistent use of tabs and spaces in indentation

    This error message clearly tells everyone that the file /usr/lib/python3.5/weakref.py is modified manually by someone who does not know that Python does not like incorrect indention. You'll find many posts in this forum about how to fix the Python weakref issue, because of this you simply have to count 1 and 1 together to get to my assumption. The Debian Python package would never be shipped with such an error.
    I am annoyed by such posts because the problems are self-inflicted and cost us only time.

  • Hi there,


    after the try mentioned by ryecoaaron, I had to install my nas again. Nothing was working after that. It was not that much work to do.


    After the new installation I had following things after startuíng omv-aptclean:



    Therefor there is still someting not ok with python3.5.


    Next ideas?




    8. Saving current package list...

    • Offizieller Beitrag

    after the try mentioned by ryecoaaron, I had to install my nas again. Nothing was working after that. It was not that much work to do.

    The command I gave you should not have done anything wrong. Your system was borked already.

    Therefor there is still someting not ok with python3.5.

    As posted many times on this forum, this is a bug in the python package but it doesn't affect anything other than that message. The following will fix it:


    wget -O /usr/lib/python3.5/weakref.py https://raw.githubusercontent.com/python/cpython/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6/Lib/weakref.py

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • The command I gave you should not have done anything wrong. Your system was borked already.

    As posted many times on this forum, this is a bug in the python package but it doesn't affect anything other than that message. The following will fix it:
    wget -O /usr/lib/python3.5/weakref.py https://raw.githubusercontent.com/python/cpython/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6/Lib/weakref.py

    To your first answer:


    Everything is OK. I did want to say, that your info was wrong.
    The python package has a bug. OK, when will this be fixed by a package? I can try your advice, but I would prefer the way of getting an update. But ... thnx 4 your help,

    Einmal editiert, zuletzt von tkaiser () aus folgendem Grund: Fixed formatting

    • Offizieller Beitrag

    Report it here: https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=libpython3.5-minimal;dist=unstable


    There is already an error report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909521
    Due the fact that this is reported 24 Sep 2018 it seems the Debian maintainer do not be in a hurry. If you comment the report it might increase the possibility that this bug gets more attention by the Debian project.

  • Report it here: https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=libpython3.5-minimal;dist=unstable


    There is already an error report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=909521
    Due the fact that this is reported 24 Sep 2018 it seems the Debian maintainer do not be in a hurry. If you comment the report it might increase the possibility that this bug gets more attention by the Debian project.


    What do I have to do at the debian bug tracker? How does it work? Do I have to write an email?


    Sorry, I never reported a debian bug. All issues I ever reported were reported at github.


    Regards Hoppel

    ----------------------------------------------------------------------------------
    openmediavault 6 | proxmox kernel | zfs | docker | kvm
    supermicro x11ssh-ctf | xeon E3-1240L-v5 | 64gb ecc | 8x10tb wd red | digital devices max s8
    ---------------------------------------------------------------------------------------------------------------------------------------

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!