[RESOLVED] How do I update to OMV 5

    • Re: How do I update to OMV 5

      Unless you have a reason, I wouldn't upgrade yet especially if you are using any third party plugins (omv-plugins.org).
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Re: How do I update to OMV 5

      From the command line as root:

      1. Run this script.
      2. omv-release-upgrade
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Re: How do I update to OMV 5

      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 :

      Source Code

      1. 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 :

      Source Code

      1. 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.


      Source Code

      1. 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
    • Re: How do I update to OMV 5

      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!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Re: How do I update to OMV 5

      "davidh2k" wrote:

      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 :

      Source Code

      1. root@NAS-OMV:~# apt-get update
      2. Ign file: Release.gpg
      3. Ign file:/archives/ Translation-en
      4. Ign file:/archives/ Translation-en_US
      5. Ign file: Release
      6. Ign file: Packages
      7. Err file: Packages
      8. File not found
      9. Hit http://ftp.belnet.be squeeze Release.gpg
      10. Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en
      11. Ign http://ftp.belnet.be/debian/ squeeze/contrib Translation-en_US
      12. Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en
      13. Ign http://ftp.belnet.be/debian/ squeeze/main Translation-en_US
      14. Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en
      15. Ign http://ftp.belnet.be/debian/ squeeze/non-free Translation-en_US
      16. Hit http://ftp.belnet.be squeeze-updates Release.gpg
      17. Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en
      18. Ign http://ftp.belnet.be/debian/ squeeze-updates/contrib Translation-en_US
      19. Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en
      20. Hit http://security.debian.org squeeze/updates Release.gpg
      21. Ign http://security.debian.org/ squeeze/updates/contrib Translation-en
      22. Ign http://security.debian.org/ squeeze/updates/contrib Translation-en_US
      23. Ign http://security.debian.org/ squeeze/updates/main Translation-en
      24. Ign http://security.debian.org/ squeeze/updates/main Translation-en_US
      25. Hit http://packages.openmediavault.org sardaukar Release.gpg
      26. Ign http://security.debian.org/ squeeze/updates/non-free Translation-en
      27. Ign http://security.debian.org/ squeeze/updates/non-free Translation-en_US
      28. Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en
      29. Ign http://packages.openmediavault.org/public/ sardaukar/main Translation-en_US
      30. Ign http://ftp.belnet.be/debian/ squeeze-updates/main Translation-en_US
      31. Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en
      32. Ign http://ftp.belnet.be/debian/ squeeze-updates/non-free Translation-en_US
      33. Hit http://ftp.belnet.be squeeze Release
      34. Hit http://security.debian.org squeeze/updates Release
      35. Hit http://packages.openmediavault.org sardaukar Release
      36. Hit http://ftp.belnet.be squeeze-updates Release
      37. Hit http://ftp.belnet.be squeeze/main Sources
      38. Hit http://ftp.belnet.be squeeze/non-free Sources
      39. Hit http://ftp.belnet.be squeeze/contrib Sources
      40. Hit http://ftp.belnet.be squeeze/main amd64 Packages
      41. Hit http://security.debian.org squeeze/updates/main Sources
      42. Ign http://packages.openmediavault.org sardaukar/main amd64 Packages
      43. Hit http://ftp.belnet.be squeeze/non-free amd64 Packages
      44. Hit http://ftp.belnet.be squeeze/contrib amd64 Packages
      45. Hit http://security.debian.org squeeze/updates/contrib Sources
      46. Hit http://security.debian.org squeeze/updates/non-free Sources
      47. Hit http://security.debian.org squeeze/updates/main amd64 Packages
      48. Hit http://security.debian.org squeeze/updates/contrib amd64 Packages
      49. Hit http://security.debian.org squeeze/updates/non-free amd64 Packages
      50. Hit http://ftp.belnet.be squeeze-updates/main Sources/DiffIndex
      51. Hit http://ftp.belnet.be squeeze-updates/contrib Sources
      52. Hit http://ftp.belnet.be squeeze-updates/non-free Sources
      53. Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages/DiffIndex
      54. Hit http://ftp.belnet.be squeeze-updates/contrib amd64 Packages
      55. Hit http://ftp.belnet.be squeeze-updates/non-free amd64 Packages
      56. Hit http://packages.openmediavault.org sardaukar/main amd64 Packages
      57. Hit http://ftp.belnet.be squeeze-updates/main amd64 Packages
      58. W: Failed to fetch file:/archives/Packages.gz File not found
      59. E: Some index files failed to download, they have been ignored, or old ones used instead.
      Display All



      and here is the sources.list

      Source Code

      1. deb http://ftp.belnet.be/debian/ squeeze main non-free contrib
      2. deb-src http://ftp.belnet.be/debian/ squeeze main non-free contrib
      3. deb http://security.debian.org/ squeeze/updates main contrib non-free
      4. deb-src http://security.debian.org/ squeeze/updates main contrib non-free
      5. # squeeze-updates, previously known as 'volatile'
      6. deb http://ftp.belnet.be/debian/ squeeze-updates main contrib non-free
      7. deb-src http://ftp.belnet.be/debian/ squeeze-updates main contrib non-free


      and the openmediavault.list

      Source Code

      1. deb http://packages.openmediavault.org/public sardaukar main
      2. # deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar main
      3. ## Uncomment the following line to add software from the proposed repository.
      4. # deb http://packages.openmediavault.org/public sardaukar-proposed main
      5. # deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar-proposed main
      6. ## This software is not part of OpenMediaVault, but is offered by third-party
      7. ## developers as a service to OpenMediaVault users.
      8. # deb http://packages.openmediavault.org/public sardaukar partner
      9. # deb http://downloads.sourceforge.net/project/openmediavault/packages sardaukar partner
      Display All



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

      If you have a idea ... ?
    • Re: How do I update to OMV 5

      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:

      Source Code

      1. Err file: Packages
      2. 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!

      I host parts of the omv-extras.org Repository, the OpenMediaVault Live Demo and the pre-built PXE Images. If you want you can take part and help covering the costs by having a look at my profile page.
    • Re: How do I update to OMV 5

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

      Source Code

      1. echo "deb file:/var/cache/openmediavault/archives /" > /etc/apt/sources.list.d/openmediavault-local.list
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Re: How do I update to OMV 5

      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.
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work
    • Re: How do I update to OMV 5

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

      Source Code

      1. deb file:/archives /

      instead of

      Source Code

      1. deb file:/var/cache/openmediavault/archives /

      to

      Source Code

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

      Solo will be fixing later :)
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Re: How do I update to OMV 5

      Hello,

      thank very much for the helps.

      so we tried this :

      Source Code

      1. root@NAS-OMV:~# apt-get clean
      2. root@NAS-OMV:~# dpkg --configure -a
      3. root@NAS-OMV:~# apt-get upgrade
      4. Reading package lists... Done
      5. Building dependency tree
      6. Reading state information... Done
      7. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      8. root@NAS-OMV:~# apt-get -f install
      9. Reading package lists... Done
      10. Building dependency tree
      11. Reading state information... Done
      12. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
      Display All


      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

      Source Code

      1. 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?
    • Re: How do I update to OMV 5

      "tekkbebe" wrote:

      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?
    • Re: How do I update to OMV 5

      mentioned by ryecoaaron:

      Source Code

      1. echo "deb file:/var/cache/openmediavault/archives /" > /etc/apt/sources.list.d/openmediavault-local.list
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work
    • Re: How do I update to OMV 5

      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 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • Re: How do I update to OMV 5

      "ryecoaaron" wrote:

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

      Source Code

      1. deb file:/archives /

      instead of

      Source Code

      1. deb file:/var/cache/openmediavault/archives /

      to

      Source Code

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

      Solo will be fixing later :)

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

      Source Code

      1. . /etc/default/openmediavault
      2. 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:
      "Glowing days. Don't cry because they are over. Smile because they happened." - Confucius

      Server: 1x 32GB SSD (system) - 5x 2TB Data - 1x 2TB Snapraid-Parity - latest OMV 1.x
      No Support through PM
      Tutorials --- Howto install OMV-Extras --- Upgrade/Update-Problems --- If autoshutdown doesn' -work
    • Re: How do I update to OMV 5

      Did you see my other post here? 0.4 doesn't have it but 0.5 does.
      omv 4.1.15 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.13
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!