Migration from OMV 6 to OMV 7 failed, encountered some issues. How to resolve them?

  • Migration from OMV 6 to OMV 7 failed, encountered some issues. How to resolve them?


    After executingomv-release-upgrade, I encountered the following error messages.


    Additionally, I noticed that the omv commands have been removed, and I cannot re-execute omv-release-upgrade.


    The OMV 6 console is also inaccessible. How can I resolve this issue?




  • DeYu666

    Set the Label from OMV 6.x to OMV 7.x
  • omv system was restored because when removing the openmediavault-borgbackup package, dpkg encountered an issue, specifically it could not find the required script file /usr/share/openmediavault/scripts/helper-functions.


    Therefore, I had to manually delete the related files and directories.


    Code
    sudo rm -rf /var/lib/dpkg/info/openmediavault-borgbackup.*
    sudo rm -rf /usr/share/openmediavault/scripts/helper-functions
    sudo dpkg --configure -a

    Repair dependencies


    Code
    apt --fix-broken install


    Execute the following command:

    Code
    sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | sudo bash

    After that, omv is back to normal.


    Next, I am going to execute the upgrade command, hoping I can succeed.

  • chente

    Approved the thread.
  • help!!!

    When I execute the upgrade script [tt]sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/fix6to7upgrade | sudo bash[/tt], I get the following error:


    However, there are no php8.2 related services in the system:


    Code
    :~/upgrade# ph
    phar             phar.phar7.4     php-cgi7.4       php-fpm7.4
    phar7.4          php              php-cgi.default  phpquery
    phar7.4.phar     php7.4           phpdismod        
    phar.phar        php-cgi          phpenmod     


    How can I continue the upgrade process?

  • Alright, I've solved the previous issue. We need to follow the steps in another article titled Is there a guide to in place upgrade? to proceed:


    Code
    sudo omv-salt stage run deploy
    sudo omv-upgrade


    Of course, when executing [tt]omv-upgrade[/tt], you may still encounter errors similar to the first issue:


    Code
    dpkg: error processing package openmediavault-autoshutdown (--remove): installed openmediavault-autoshutdown package post-removal script subprocess returned error exit status 2



    To solve it similar to the first issue:


    Code
    sudo rm -rf /var/lib/dpkg/info/openmediavault-autoshutdown.*
    sudo rm -rf /usr/share/openmediavault/scripts/helper-functions
    sudo dpkg --configure -a


    Then execute:

    Code
    sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/fix6to7upgrade | sudo bash


    This should upgrade successfully from OMV6 to OMV7.

Participate now!

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