OMV6 Error 500 when trying to install plugins

  • Hi tried to install a couple plugins but getting this message:


    500 internal server error the storage area for state information for each package resource is held by another process.

    Please try again later


    OMV\AssertException: The storage area for state information for each package resource is held by another process. Please try again later. in /usr/share/php/openmediavault/system/apt.inc:43

    Stack trace:

    #0 /usr/share/openmediavault/engined/rpc/pluginmgmt.inc(228): OMV\System\Apt::assertNotLocked()

    #1 [internal function]: Engined\Rpc\PluginMgmt->install(Array, Array)

    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)

    #3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('install', Array, Array)

    #4 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('Plugin', 'install', Array, Array, 1)

    #5 {main}


    Is there a fix?

    Thanks

  • votdev

    Hat das Label OMV 6.x (RC1) hinzugefügt.
  • OK, that's a little bit too long. Go to CLI and check if there is any apt, apt-get or dpkg process running.


    Code
    # ps aux | grep apt
    # ps aux | grep dpkg

    Kill them or reboot the system.

    Here is the results

    Code
    root@raspberrypi:/# ps aux | grep apt
    root     30223  0.0  0.0   6780   568 pts/0    S+   10:28   0:00 grep apt
    root@raspberrypi:/# ps aux | grep dpkg
    root     30332  0.0  0.0   6780   596 pts/0    S+   10:28   0:00 grep dpkg
    root@raspberrypi:/# kill 30223
    bash: kill: (30223) - No such process
    root@raspberrypi:/# kill 30332
    bash: kill: (30332) - No such process
    root@raspberrypi:/# kill 6780
    bash: kill: (6780) - No such process

    I have reboot several times but running in the same error.


  • Can you try (as root) apt-get update on the cli to see, if you get the same error?

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • I need the output of the commands. If no program is locking the file, you can remove it.


    Check if any process is using one of the lock files:


    Code
    sudo lsof /var/lib/dpkg/lock
    sudo lsof /var/lib/apt/lists/lock
    sudo lsof /var/cache/apt/archives/lock


    If there is a pid using one of the files, kill it (there should not be one, as you rebooted)


    Remove the lock files:

    Code
    sudo rm /var/lib/apt/lists/lock
    sudo rm /var/cache/apt/archives/lock
    sudo rm /var/lib/dpkg/lock


    Reconfigure packages:


    Code
    sudo dpkg --configure -a

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Code
    root@raspberrypi:/# sudo lsof /var/lib/dpkg/lock
    root@raspberrypi:/# sudo lsof /var/lib/apt/lists/lock
    root@raspberrypi:/# sudo lsof /var/cache/apt/archives/lock
    root@raspberrypi:/# sudo rm /var/lib/apt/lists/lock
    root@raspberrypi:/# sudo rm /var/cache/apt/archives/lock
    root@raspberrypi:/# sudo rm /var/lib/dpkg/lock
    root@raspberrypi:/# sudo dpkg --configure -a
    root@raspberrypi:/# 

    There is no output.

    just execute all the cmd but stil not able to install plugins.

    Same error code 500

    • Offizieller Beitrag

    Try:


    sudo omv-aptclean

    sudo apt-get install openmediavault-resetperms

    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!

  • Try:


    sudo omv-aptclean

    sudo apt-get install openmediavault-resetperms

    But still the same.

    Unable to install plugins error 500

    • Offizieller Beitrag

    But still the same.

    Unable to install plugins error 500

    Can you try to install a plugin from the command line that isn't installed already? And did you try ctrl-shift-R when looking at the plugins tab?

    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!

  • Can you try to install a plugin from the command line that isn't installed already? And did you try ctrl-shift-R when looking at the plugins tab?

    I will like to try to install openmediavault-diskstats 6.0-5

    The problem is that I don't know how to install it via terminal

    Please could you point out the cmd?

    Thanks

    • Offizieller Beitrag

    Please could you point out the cmd?

    Same as the resetperms command I had you run. sudo apt-get install openmediavault-diskstats

    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

    Can you install other plugins via the web interface now? Did you try ctrl-shift-R if you can't?

    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!

Jetzt mitmachen!

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