openmediavault-writecache plugin can cause apt-get errors.

  • I frequently need to run dpkg --configure -a.

    The message is as follows:

    .

    Code
    E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
    
    root@nuc:~# dpkg --configure -a
    Setting up openmediavault-writecache (8.0.1) ...
    Updating configuration database ...
    Processing triggers for openmediavault (8.0-12) ...
    Updating workbench configuration files ...
    Restarting engine daemon ...
  • axiauk

    Added the Label OMV 8.x
    • Official Post

    Not sure what would cause this. I have seen this once in hundreds of installs and many more syncs but I blamed that on a weird package install failure.


    Post the output of:

    Code
    sudo omv-writecache unmount
    sudo dpkg --configure -a
    sudo apt-get update
    sudo apt-get dist-upgrade
    sudo omv-writecache mount
    sudo omv-writecache flushrotate

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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!

  • I am seeing this just about every time I am installing an updated plugin.


    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LC_ALL=C.UTF-8; export LANGUAGE=; export DEBIAN_FRONTEND=noninteractive; apt-get --yes --allow-downgrades --allow-change-held-packages --fix-broken --fix-missing --auto-remove --allow-unauthenticated --show-upgraded --option DPkg::Options::="--force-confold" dist-upgrade 2>&1' with exit code '100': E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

    • Official Post

    am seeing this just about every time I am installing an updated plugin.

    All I can think is the shutdown was being forced and not syncing. Until you run the commands to fix, nothing will the dpkg problem. The latest plugin should fix the shutdown issue.

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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!

  • All I can think is the shutdown was being forced and not syncing. Until you run the commands to fix, nothing will the dpkg problem. The latest plugin should fix the shutdown issue.

    I installed the latest, so we'll see.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

    • Official Post

    I installed the latest, so we'll see.

    I am also running the saltstack code during install. This could be causing a flush during install. I am going to remove it and just mark the module dirty. Then people can apply the changes (will just run the saltstack code) while dpkg is not installing a package. I am going to push this change shortly.

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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.

    --
    Google is your friend and Bob's your uncle!


    A backup strategy is worthless unless you have a verified to work by testing restore strategy.


    OMV AMD64 7.x on headless Chenbro NR12000 1U Intel Xeon CPU E3-1230 V2 @ 3.30GHz 32GB ECC RAM.

    OMV AMD64 8.x on headless Tyan Thunder SX GT86C-B5630 1U Server with Intel Xeon Silver 4110 CPU @ 2.10GHz & 32GB DDR4 ECC RAM.

  • Not sure what would cause this. I have seen this once in hundreds of installs and many more syncs but I blamed that on a weird package install failure.


    Post the output of:

    Code
    sudo omv-writecache unmount
    sudo dpkg --configure -a
    sudo apt-get update
    sudo apt-get dist-upgrade
    sudo omv-writecache mount
    sudo omv-writecache flushrotate






    Code
    sudo omv-writecache flushrotate
    2025-12-13 23:49:49 - Lock file /run/omv-writecache.lock created and locked.
    2025-12-13 23:49:49 - SCRIPT_START: omv-writecache flushrotate
    2025-12-13 23:49:49 - UNKNOWN_CMD: flushrotate
    Unknown command
    2025-12-13 23:49:49 - Lock file /run/omv-writecache.lock released.
    • Official Post

    Oops, that last command was supposed to be:


    sudo omv-writecache rotateflush


    What is the output of: dpkg -l | grep openme


    I'm guessing the install of the new version of writecache had a problem with the saltstack run the plugin used to run. With the changes in writecache 8.0.4, I think you should be ok now.

    omv 8.0.6-2 synchrony | 6.17 proxmox kernel

    plugins :: omvextrasorg 8.0.2 | kvm 8.0.2 | compose 8.1.2 | cterm 8.0 | borgbackup 8.0.2 | cputemp 8.0 | mergerfs 8.0 | scripts 8.0.1 | writecache 8.1


    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
  • axiauk

    Added the Label resolved

Participate now!

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