Unable to update OMV from package manager in fresh OMV 6 install

  • Hi, I recently started with a fresh install of OMV 6 to replace my OMV 5. Everything has been fine, but I noticed that I cannot update the OMV package itself either through CLI or GUI. I get the following permission error:


    Code
    Preparing to unpack .../openmediavault_6.0.28-3_all.deb ...
    Unpacking openmediavault (6.0.28-3) over (6.0.28-2) ...
    Setting up openmediavault (6.0.28-3) ...
    Generating public/private rsa key pair.
    Saving key "/root/.ssh/id_rsa" failed: Operation not permitted
    dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1
    Processing triggers for rsyslog (8.2102.0-2+deb11u1) ...
    Errors were encountered while processing: openmediavault


    Not sure how to proceed. Thanks!

    • Offizieller Beitrag

    Try.

    Code
    root@omvad3:~# ls -la .ssh
    total 20
    drwx------ 2 root root 4096 Mar  4 09:00 .
    drwx------ 5 root root 4096 Mar 18 11:59 ..
    -rw------- 1 root root  564 Mar  4 09:00 authorized_keys
    -rw------- 1 root root 3369 Mar  4 08:55 id_rsa
    -rw-r--r-- 1 root root  737 Mar  4 08:55 id_rsa.pub
    root@omvad3:~# 

    id_rsa is a file not a directory.

    • Offizieller Beitrag

    Not sure why it's being invoked now as a blocker to updating the OMV package and only the OMV package.

    That file should be there because OMV generates it. It is failing to generate it now since it isn't finding what it wants - https://github.com/openmediava…nmediavault.postinst#L159


    Try running: sudo ssh-keygen -t rsa -N "" -f /root/.ssh/id_rsa then sudo apt-get -f install

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    What is the output of: grep -w '/' /proc/mounts

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    What about: stat /root/.ssh

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Code
    root@Paragon:/srv# stat /root/.ssh
      File: /root/.ssh
      Size: 4096            Blocks: 8          IO Block: 4096   directory
    Device: 871h/2161d      Inode: 2621445     Links: 2
    Access: (0700/drwx------)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2022-06-02 08:48:02.116488652 -0400
    Modify: 2022-05-30 03:31:49.773284207 -0400
    Change: 2022-05-30 03:31:49.781284395 -0400
     Birth: 2022-05-30 03:31:49.773284207 -0400
    • Offizieller Beitrag

    What kind of media is the OS installed on? Can you rm -rfv /root/.ssh?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

    • Offizieller Beitrag

    OS installed on a new SSD. FWIW, I also have the flashmemory plugin installed.

    If you can't remove something as root, I suspect the media is bad even if new. What kind of ssd?

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • If you can't remove something as root, I suspect the media is bad even if new. What kind of ssd?

    This: https://www.amazon.com/gp/prod…_asin_title?ie=UTF8&psc=1 + a brand new SATA cable.


    I will say I've not noticed any other issue, and have noticed a significant performance increase (my old SSD was dying). I've had no complaints about OMV 6 or the install process, or re-setting up anything, from either a HDD or permissions failure up until this point. I've been able to install any other package fine. It's just this particular action blocking the installation script from installing the OMV update.


    I did just reboot, no dice. I tried googling this issue first, but surprisingly came up with very little on such a generic error message like "operation not permitted."

    • Offizieller Beitrag

    I will say I've not noticed any other issue

    This is a pretty big issue though. All it takes is for one file like this to be on a bad sector. Do you see any messages in dmesg when trying to delete it? If you can, I would boot the system with something like systemrescue, mount the filesystem, and try deleting it.

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

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    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!

  • Thanks, will keep fiddling with it and see what I can discover. Re: running from a rescue OS, I used to rely on the one-click install and run from the omv-extras repo--I'm assuming that's not available (yet) for OMV 6?

  • OK good news is I fixed it. I followed this thread:


    https://unix.stackexchange.com…even-when-running-as-root


    I'm not a Unix permissions guru by any means, but apparently there was an "immutable" flag set on the .ssh folder that had to be removed before it could be modified, even as root.


    I don't know how the -i flag got set on that folder. But hopefully it helps for someone else that may experience this issue in OMV 6. FWIW, I'm using flashmemory, symlink, mergerFS, and snapraid.

Jetzt mitmachen!

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