OMV Extras not updated and problem with the update

  • Hello,


    I have decided to make a test to see if my system could be upgraded to OMV6 in the future and I encountered two problems.

    To avoid breaking something that works I made a P2V here are the steps I did


    1) I made a copy of a running OMV5 (dd to a KVM virtual machine)


    2) I did omv-release-upgrade

    I had problems with dkm After doing tests with apt --fix-broken install I saw it was a problem with systemd

    (I had problems with systemd in a previous update a few month ago).

    So I remade a copy of my virtual disk to start from scratch and I did


    rm -R /usr/bin/systemd*

    rm -R /usr/lib/systemd*


    Then I did


    omv-release-upgrade


    The upgrade was fine (it boots but a lot of plugins are still in version 5)

    The first boot has a problem (unknown parameter 'memory_recursiveprot')

    and after proc: Bad value for 'hidepid'

    After 2 minutes the problem disappears(a few other error with hidepidbut faster )


    I did


    apt list openmediavault-omvextrasorg -a


    and I saw that the version 5 was still installed so I did (a reinstall of the plugin like you said in a thread)


    wget -O - https://github.com/OpenMediaVa…ckages/raw/master/install | bash


    and now version 6 was correctly installed


    but I see

    KVM 5.1.7

    zfs 5.0.6


    Is there something I am missing?

    I did an apt clean in the GUI (under omv-extras)


    Thank you

    Marc

    • Official Post

    Is there something I am missing?

    Just updating omv-extras doesn't automatically update the plugins. Do you have updates to the version 6 of the plugins in the Updates tab after install omv-extras 6? What I don't understand is why omv-extras isn't being upgraded. Without the output from your upgrade, not sure how to make that better.

    omv 7.1.1-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.1.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


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


    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!

  • Hello,


    Thank you for your answer.


    I have have made all the updates / upgrades / clean I saw


    In the plugin list there are only version 5.X.Y plugins (and nut version 6)

    Doing

    apt list *kvm*

    gives

    libicsharpcode-nrefactory-ikvm5.0-cil/stable,stable 5.3.0+20130718.73b6d0f-4.1 all

    librust-kvm-bindings-dev/stable,stable 0.1.1-1+b1 amd64

    librust-kvm-ioctls-dev/stable,stable 0.2.0-1+b1 amd64

    nova-compute-kvm/stable,stable 2:22.0.1-2 all

    openmediavault-kvm/unknown,now 5.1.7 all [residual-config]

    pve-qemu-kvm-dbg/stable 5.2.0-6 amd64

    pve-qemu-kvm/stable 5.2.0-6 amd64

    qemu-kvm/now 1:3.1+dfsg-8+deb10u8 amd64 [residual-config]


    so I think that there is a problem (version 6 plugin should at least be shown) but i don't know what I did wrong.


    Thank you

    Marc

    • Official Post

    Post the output of:

    cat /etc/apt/sources.list.d/omvextras.list

    sudo omv-salt deploy run omvextras

    omv 7.1.1-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.1.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


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


    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!

  • Hello,


    cat /etc/apt/sources.list.d/omvextras.list

    gives

    deb https://openmediavault-plugin-…github.io/packages/debian usul main

    deb https://openmediavault-plugin-…github.io/packages/debian usul-testing main

    deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable

    deb http://linux.teamviewer.com/deb stable main

    I also have


    cat /etc/apt/sources.list.d/openmediavault.list

    deb http://packages.openmediavault.org/public/ usul partner

    deb https://openmediavault.github.io/packages/ usul partner


    cat /etc/apt/sources.list.d/pvekernel.list

    has

    deb http://download.proxmox.com/debian buster pve-no-subscription


    that is wrong too


    Should I do something such as

    sed -i 's/usul/shaitan/g' /etc/apt/sources.list.d/*

    and

    sed -i 's/buster/bullseye/g' /etc/apt/sources.list.d/*


    EDIT : added

    sudo omv-salt deploy run omvextras

    gives


    openmediavault.Home:

    ----------

    ID: omvextrasbaserepo

    Function: pkgrepo.managed

    Name: deb https://openmediavault-plugin-…github.io/packages/debian usul main

    Result: True

    Comment: Package repo 'deb https://openmediavault-plugin-…github.io/packages/debian usul main' already configured

    Started: 11:00:31.706629

    Duration: 125.618 ms

    Changes:

    ----------

    ID: deb https://openmediavault-plugin-…github.io/packages/debian usul-testing main

    Function: pkgrepo.managed

    Result: True

    Comment: Package repo 'deb https://openmediavault-plugin-…github.io/packages/debian usul-testing main' already configured

    Started: 11:00:31.832414

    Duration: 114.156 ms

    Changes:

    ----------

    ID: deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable

    Function: pkgrepo.managed

    Result: True

    Comment: Package repo 'deb [arch=amd64] https://download.docker.com/linux/debian bullseye stable' already configured

    Started: 11:00:31.946747

    Duration: 168.159 ms

    Changes:

    ----------

    ID: deb http://linux.teamviewer.com/deb stable main

    Function: pkgrepo.managed

    Result: True

    Comment: Package repo 'deb http://linux.teamviewer.com/deb stable main' already configured

    Started: 11:00:32.115090

    Duration: 113.689 ms

    Changes:

    ----------

    ID: configure_apt_pref_omvextras

    Function: file.managed

    Name: /etc/apt/preferences.d/omvextras.pref

    Result: True

    Comment: File /etc/apt/preferences.d/omvextras.pref is in the correct state

    Started: 11:00:32.231281

    Duration: 39.42 ms

    Changes:

    ----------

    ID: refresh_database_apt

    Function: module.run

    Result: True

    Comment: pkg.refresh_db: Success

    Started: 11:00:32.271392

    Duration: 4442.047 ms

    Changes:

    ----------

    pkg.refresh_db:

    ----------

    file:/var/cache/openmediavault/archives InRelease:

    False

    file:/var/cache/openmediavault/archives Packages:

    True

    file:/var/cache/openmediavault/archives Release:

    False

    file:/var/cache/openmediavault/archives Translation-en:

    False

    http://download.proxmox.com/debian/pve buster InRelease:

    None

    http://ftp.be.debian.org/debian bullseye InRelease:

    None

    http://ftp.be.debian.org/debian bullseye-updates InRelease:

    None

    http://ftp.debian.org/debian bullseye InRelease:

    None

    http://httpredir.debian.org/debian bullseye-backports InRelease:

    None

    http://linux.teamviewer.com/deb stable InRelease:

    None

    http://packages.openmediavault.org/public usul InRelease:

    None

    http://repository.veeam.com/ba…/agent/dpkg/debian/public stable InRelease:

    None

    http://security.debian.org/debian-security bullseye-security InRelease:

    None

    https://download.docker.com/linux/debian bullseye InRelease:

    None

    https://openmediavault-plugin-…github.io/packages/debian usul InRelease:

    None

    https://openmediavault-plugin-…github.io/packages/debian usul-testing InRelease:

    None

    https://openmediavault.github.io/packages usul InRelease:

    None


    Summary for openmediavault.Home

    ------------

    Succeeded: 6 (changed=1)

    Failed: 0

    ------------

    Total states run: 6

    Total run time: 5.003 s




    Thank you

    Marc

    • Official Post

    Should I do something such as

    Yes. Even your omv repos are still OMV 5.x. Something went very wrong. So, run your sed commands and then apt-get update and apt-get dist-upgrade.

    omv 7.1.1-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.1.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


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


    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!

  • Hello,

    It is working perfectly thank you

    As it is a virtual machine, it is not really a problem.

    Perhaps it is because it comes from version 4


    Marc


    EDIT : After correcting with sed update... all is fine but if I remove the extras and I add them again, the usul version is back some there is another problem.

  • EDIT : I mave made other tests (sed before..., removel of differents packages, removal of sources files ) and while the script is running the sources are correct . During the upgrade script (omv-release-upgrade) something breaks because before clicking on OK the sources are back to usul.

    I am not good enough in linux to be of more help, but I can only guess something such as the upgrade of openmediavault restores wrong sources (.list) files.


    Thank you

    Marc

    • Official Post

    I am not good enough in linux to be of more help, but I can only guess something such as the upgrade of openmediavault restores wrong sources (.list) files.

    If the upgrade fails, the system might think it is still buster and/or usul. When the saltstack code is run after the upgrade, it will change the sources .list files back to buster and usul instead of bullseye and shaitan. The big question is what in the upgrade failed. Without the output of the upgrade, that is difficult to know.

    omv 7.1.1-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.1.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


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


    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!

  • Hello,


    Thank you for the time.

    Doing sed before the upgrade still restores the files without the sed.

    Is there a way to see the output of the upgrade? (such as >file.txt or something like that?)

    It is a virtual machine so it is no big deal for me launching tests that last two hours.


    Thank you

    Marc

    • Official Post

    Is there a way to see the output of the upgrade? (

    It is on the screen when you run the upgrade.

    omv 7.1.1-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.1.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


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


    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!

  • Hello,


    I have made a test with a redirection (that moves too fast and it lasts two hours to do the upgrade)

    I have the following lines with errors (I think it is the only relevant ones)

    I have uploaded the log too in case something I though useless would be useful.

    Code
    [ERROR   ] /lib/python3/dist-packages/salt/modules/network.py does not exist
    [ERROR   ] /lib/python3/dist-packages/salt/fileserver/roots.py does not exist
    [ERROR   ] {'out': 'highstate', 'ret': {'openmediavault.Home': {'file_|-patch_network_module_pr_59829_|-/lib/python3/dist-packages/salt/modules/network.py_|-patch': {'name': '/lib/python3/dist-packages/salt/modules/network.py', 'changes': {}, 'result': False, 'comment': '/lib/python3/dist-packages/salt/modules/network.py does not exist', '__sls__': 'omv.patch.default', '__run_num__': 0, 'start_time': '08:45:22.207953', 'duration': 1.153, '__id__': 'patch_network_module_pr_59829'}, 'file_|-patch_fileserver_root_pr_60536_|-/lib/python3/dist-packages/salt/fileserver/roots.py_|-patch': {'name': '/lib/python3/dist-packages/salt/fileserver/roots.py', 'changes': {}, 'result': False, 'comment': '/lib/python3/dist-packages/salt/fileserver/roots.py does not exist', '__sls__': 'omv.patch.default', '__run_num__': 1, 'start_time': '08:45:22.209225', 'duration': 0.835, '__id__': 'patch_fileserver_root_pr_60536'}}}}
    • Official Post

    [ERROR ] /lib/python3/dist-packages/salt/modules/network.py does not exist
    [ERROR ] /lib/python3/dist-packages/salt/fileserver/roots.py does not exist

    You need to install usrmerge. Quite a few threads about this.

    omv 7.1.1-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.14 | compose 7.2.1 | k8s 7.1.1-1 | cputemp 7.0.2 | mergerfs 7.0.5 | scripts 7.0.8


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


    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!

  • Hello,

    After the change it works if I remove some packages but as it is a P2V and I have no zfs pool mounted it is possible (some packages such as docker can't upgrade). I will make other tests but it is correct.

    Thank you very much

  • marc_al

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!