Errors after running script (dleidert/openmediavault-upgrade) to upgrade from OMV4 to OMV5

  • I followed the instructions on this page to upgrade from OMV4 to OMV5. Unfortunately, there were some errors at the end of the script. I still have a screen session attached and have not rebooted the system. Just curious if my setup is salvageable or not. I really don't know where to go from here. Any help or advice would be greatly appreciated.


    Attached is my log file from the attempted upgrade.


    omv_release_upgrade_to_buster.2020-12-31-150829.txt


    EDIT: Did a lot of digging and determined the system was pretty hosed. Decided to do a fresh install. Thank you.

  • KM0201

    Approved the thread.
  • The first error I see is:

    /var/lib/dpkg/info/openmediavault-luksencryption.postrm: 6: .: Can't open /usr/share/openmediavault/scripts/helper-functions


    are you familiar with bash commands to check permissions for the referenced file?

    omv 5.6.20-1 (usul) on RPi4/4GB with Kernel 5.10.63 and WittyPi 3 V2 RTC HAT

    2x 6TB HDD formatted with ext4 in Icy Box IB-RD3662-C31 / hardware supported RAID1

    For Read/Write performance of SMB shares hosted on this hardware see forum here

  • The first error I see is:

    /var/lib/dpkg/info/openmediavault-luksencryption.postrm: 6: .: Can't open /usr/share/openmediavault/scripts/helper-functions


    are you familiar with bash commands to check permissions for the referenced file?

    I am. However, I did quite a bit of digging last night and determined the OMV got pretty hosed. I decided to just do a fresh install (this allowed me to make some changes I've been meaning to do anyways). Thank you anyways.

  • vimusr

    Added the Label resolved
  • I followed the instructions on this page to upgrade from OMV4 to OMV5. Unfortunately, there were some errors at the end of the script. I still have a screen session attached and have not rebooted the system. Just curious if my setup is salvageable or not.

    What I can see from your log is that for some (yet unknown) reason openmediavault didn't get upgraded during the dist-upgrade attempt and instead it got removed while openmediavault-omvextrasorg was attempted to be removed and then reinstalled. Because of this issue you got the error you saw. The system would have been salvageable though. I'm trying to recreate the exact conditions.

  • Because of this issue you got the error you saw.

    That is not fair to blame the plugin for this situation. As I said in the issue, this would have happened to any plugin (including core plugins) if they were removed after openmediavault itself was removed. Not being able to see the log to provide more input, the true issue is whatever caused the openmediavault package to be removed.

    omv 5.6.18 usul | 64 bit | 5.11 proxmox kernel | omvextrasorg 5.6.3 | kvm plugin 5.1.7
    omv-extras.org plugins source code and issue tracker - github


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

  • That is not fair to blame the plugin for this situation.

    There is a misunderstanding. I don't blame the plugin for the whole situation. Sorry if that is your impression. The situation is quite weird tbh. I just wanted to say that the error shown is the result of the linked issue. But the linked issue did not cause the real problem.


    So this is what happened on the users system (the log is BTW linked in thread opener):


    On the last apt-get upgrade (run.d/60-apt-upgrade) is says (lines 4828/4829):

    Code
    The following packages have been kept back:
    [..] openmediavault <some openmediavaut-plugins> [..]

    That's perfectly expected here. Up to here only small upgrades were done. In the next step, when apt-get dist-upgrade (run.d/80-apt-dist-upgrade) shall upgrade everything else apt now reports (line 5219):

    Code
    The following packages have been kept back:
    [..] <some openmediavaut-plugins> [..]

    The openmediavault package has vanished from any of the lists. Nothing happened to it though, no removal nor anything else. That doesn't make any sense to me. It is like apt suddenly not knowing about the upgradable version of openmediavault anymore. So the plugins cannot be upgraded either. Then the removal of resolvconf (post.d/10-reinstall-omvextras) forces the removal of omv4.

Participate now!

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