[RESOLVED] How do I update to OMV 5

    • Offizieller Beitrag

    Unless you have a reason, I wouldn't upgrade yet especially if you are using any third party plugins (omv-plugins.org).

    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

    From the command line as root:


    1. Run this script.
    2. omv-release-upgrade

    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!

  • Hello,


    we use OMV 0.4 for a while now. So we tried to migrate to 0.5.
    We run the script (last version from github), and try to migrate with this command : omv-release-upgrade. But we had a problem :

    Code
    W: Failed to fetch file:/archives/Packages.gz File not found E: Some index files failed to download, they have been ignored, or old ones used instead.


    But after that we see to OMV 5 is ready to update in update manager. So we run the update with the GUI.


    But after migration we have a problem.
    When we made a "check" in the "update manager", we have these errors :


    Code
    Failed to execute command 'export LANG=C; apt-get update 2>&1': Ign file: Release.gpg Ign file:/archives/ Translation-en Ign file: Release Ign file: Packages Err file: Packages File not found Hit http://ftp.belnet.be squeeze Release.gpg Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en Hit http://ftp.belnet.be squeeze-updates Release.gpg Hit http://security.debian.org squeeze/updates Release.gpg Ign http://security.debian.org/ squeeze/updates/contrib Translation-en Ign http://security.debian.org/ squeeze/updates/main Translation-en Ign http://security.debian.org/ squeeze/updates/non-free Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en Hit http://ftp.belnet.be squeeze Release Hit http://packages.openmediavault.org sardaukar Release.gpg Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en Hit http://ftp.belnet.be squeeze-updates Release Hit http://security.debian.org squeeze/updates Release Hit http://packages.openmediavault.org sardaukar Release Hit http://ftp.belnet.be squeeze/main Sources Hit http://ftp.belnet.be squeeze/non-free Sources Hit http://ftp.belnet.be squeeze/contrib Sources Hit http://ftp.belnet.be squeeze/main amd64 Packages Hit http://ftp.belnet.be squeeze/non-free amd64 Packages Hit http://ftp.belnet.be squeeze/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main Sources/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib Sources Hit http://security.debian.org squeeze/updates/main Sources Ign http://packages.openmediavault.org sardaukar/main amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free Sources Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free amd64 Packages Hit http://security.debian.org squeeze/updates/contrib Sources Hit http://security.debian.org squeeze/updates/non-free Sources Hit http://security.debian.org squeeze/updates/main amd64 Packages Hit http://security.debian.org squeeze/updates/contrib amd64 Packages Hit http://security.debian.org squeeze/updates/non-free amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages Hit http://packages.openmediavault.org sardaukar/main amd64 Packages W: Failed to fetch file:/archives/Packages.gz File not found E: Some index files failed to download, they have been ignored, or old ones used instead.


    Code
    Error #4000: exception 'OMVException' with message 'Failed to execute command 'export LANG=C; apt-get update 2>&1': Ign file: Release.gpg Ign file:/archives/ Translation-en Ign file: Release Ign file: Packages Err file: Packages File not found Hit http://ftp.belnet.be squeeze Release.gpg Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en Hit http://ftp.belnet.be squeeze-updates Release.gpg Hit http://packages.openmediavault.org sardaukar Release.gpg Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en Hit http://security.debian.org squeeze/updates Release.gpg Ign http://security.debian.org/ squeeze/updates/contrib Translation-en Ign http://security.debian.org/ squeeze/updates/main Translation-en Ign http://security.debian.org/ squeeze/updates/non-free Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en Hit http://ftp.belnet.be squeeze Release Hit http://ftp.belnet.be squeeze-updates Release Hit http://security.debian.org squeeze/updates Release Hit http://packages.openmediavault.org sardaukar Release Hit http://ftp.belnet.be squeeze/main Sources Hit http://ftp.belnet.be squeeze/non-free Sources Hit http://ftp.belnet.be squeeze/contrib Sources Hit http://ftp.belnet.be squeeze/main amd64 Packages Hit http://ftp.belnet.be squeeze/non-free amd64 Packages Hit http://ftp.belnet.be squeeze/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main Sources/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib Sources Hit http://security.debian.org squeeze/updates/main Sources Ign http://packages.openmediavault.org sardaukar/main amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free Sources Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages/DiffIndex Hit http://ftp.belnet.be squeeze-updates/contrib amd64 Packages Hit http://ftp.belnet.be squeeze-updates/non-free amd64 Packages Hit http://security.debian.org squeeze/updates/contrib Sources Hit http://security.debian.org squeeze/updates/non-free Sources Hit http://security.debian.org squeeze/updates/main amd64 Packages Hit http://security.debian.org squeeze/updates/contrib amd64 Packages Hit http://security.debian.org squeeze/updates/non-free amd64 Packages Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages Hit http://packages.openmediavault.org sardaukar/main amd64 Packages W: Failed to fetch file:/archives/Packages.gz File not found E: Some index files failed to download, they have been ignored, or old ones used instead.' in /usr/share/openmediavault/engined/rpc/apt.inc:258 Stack trace: #0 [internal function]: OMVRpcServiceApt->update(NULL, Array) #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)


    So what can we do to fix this ?
    Use a backup and return to 0.4 and try to migrate again, or something else ?


    Regards.
    Piet

  • First, it would be nice to see the whole apt-get update when the error occured before the upgrade.
    Second, my guess right now is that your used debian repo is down...


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Zitat von "davidh2k"

    First, it would be nice to see the whole apt-get update when the error occured before the upgrade.
    Second, my guess right now is that your used debian repo is down...


    Greetings
    David


    Sorry.


    here is the apt-get update result :



    and here is the sources.list


    and the openmediavault.list



    For the sources.list, I tried yesterday with the us repo, but result is the same.


    If you have a idea ... ?

  • Sorry, I'm at work and only have my iphone... its nasty to dig through those code boxes there... i just see one error which confuses me, never seen before:


    Code
    Err file: Packages
      File not found


    But before apt updated the sources... maybe you can throw that at google or another mod has an idea...


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

    • Offizieller Beitrag

    Error in the cleaning script. Run this command followed by an apt-get update


    Code
    echo "deb file:/var/cache/openmediavault/archives /" > /etc/apt/sources.list.d/openmediavault-local.list

    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!

  • That line is included since we spoke about it 1-2 weeks ago.


    untested: (can't test it atm, I'm not at home)
    maybe "touch /var/cache/openmediavault/archives/packages"
    Don't know if packages has to be upper or lower case.

    • Offizieller Beitrag

    A variable is commented out in the cleaning script so it writes

    Code
    deb file:/archives /


    instead of

    Code
    deb file:/var/cache/openmediavault/archives /


    to

    Code
    /etc/apt/sources.list.d/openmediavault-local.list


    Solo will be fixing later :)

    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!

  • Hello,


    thank very much for the helps.


    so we tried this :



    And we have the same error in the GUI or the error with apt-get update.


    And I can't come back to 0.4 because my backup disk with this backup is dead.



    update :
    we do this like mentioned by ryecoaaron

    Code
    echo "deb file:/var/cache/openmediavault/archives /" > /etc/apt/sources.list.d/openmediavault-local.list


    and apt-get update is ok now.
    and the check in the GUI is ok too.


    So the problem is coming from the "cleaning" script.


    Thank very much for the help.


    And I want to be sure that the upgrade of 0.4 to 0.5 is ok.
    There is a way to do this?

  • Zitat von "tekkbebe"

    You are right and it is an easy fix. I would just inquire here if the cleaning script has been updated before you upgrade. Then download the fixed version for use before you upgrade.


    thank, but I already do the upgrade :) with the last github version of the cleaning package (yesterday)


    And I want to be sure that the upgrade of 0.4 to 0.5 is ok.
    There is a way to do thi s?

  • mentioned by ryecoaaron:

    Code
    echo "deb file:/var/cache/openmediavault/archives /" > /etc/apt/sources.list.d/openmediavault-local.list
  • Zitat von "Solo0815"

    mentioned by ryecoaaron:

    Code
    echo "deb file:/var/cache/openmediavault/archives /" > /etc/apt/sources.list.d/openmediavault-local.list


    Hello, sorry but I don't understand... I already execute this code ...

    • Offizieller Beitrag

    The only way to tell if the upgrade worked is if you can login to the web interface. Otherwise, it will give you an error during the upgrade.

    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!


  • I can't see any error in the code. Can you please check what this command gives you on the CLI?

    Code
    . /etc/default/openmediavault
    echo $OMV_CACHE_DIR


    it should give "/var/cache/openmediavault". It works on my system. The variables are commented out because they are set in /etc/default/openmediavault and imported with ". /etc/default/openmediavault". After that they are available ... or sometimes not :shock:

    • Offizieller Beitrag

    Did you see my other post here? 0.4 doesn't have it but 0.5 does.

    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!

Jetzt mitmachen!

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