The XPath query '//system/notification/notifications/notification[id='cronapt']' does not return the requested number of 1 object(s).

  • Hello


    I have upgraded my system to 3.0.29


    I have been able to fix most of the errors I have encountered, but I can't fix this one, when I go in the Notification section


    Any idea ?


    Code
    Erreur #0:
    exception 'InvalidArgumentException' with message 'The XPath query '//system/notification/notifications/notification[id='cronapt']' does not return the requested number of 1 object(s).' in /usr/share/php/openmediavault/config/database.inc:172
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/notification.inc(66): OMV\Config\Database->getByFilter('conf.system.not...', Array, 1)
    #1 [internal function]: OMVRpcServiceNotification->get(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
    #4 /usr/sbin/omv-engined(525): OMV\Rpc\Rpc::call('Notification', 'get', Array, Array, 1)
    #5 {main}

    English isn't my native language, so, sorry if I make mistakes ^^


    OMV 7.0.3-1 | Linux 6.1.0-18-amd64 | openmediavault-omvextrasorg 7.0

  • I have purged all plugins before the upgrade and reinstalled them after
    I hope it isn't a plugin problem ^^

    English isn't my native language, so, sorry if I make mistakes ^^


    OMV 7.0.3-1 | Linux 6.1.0-18-amd64 | openmediavault-omvextrasorg 7.0

    • Offizieller Beitrag

    What is the output of: omv-showkey notification

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    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 for your rapidity


    Code
    root@nasmaison:~# omv-showkey notification
        <notification>
          <notifications></notifications>
        </notification>

    English isn't my native language, so, sorry if I make mistakes ^^


    OMV 7.0.3-1 | Linux 6.1.0-18-amd64 | openmediavault-omvextrasorg 7.0

    • Offizieller Beitrag

    I wouldn't keep changing things while we are trying to fix it...


    Try enabling/disabling one of the notifications in the System -> Notification -> Notifications tab. Save and apply.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    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 have also an error when I try to remove NUT plugin


    I have found that this command doesn't work


    Code
    root@nasmaison:/var/lib/dpkg/info# monit restart collectd
    Action failed -- There is no service by that name

    I don't know if this can help you

    English isn't my native language, so, sorry if I make mistakes ^^


    OMV 7.0.3-1 | Linux 6.1.0-18-amd64 | openmediavault-omvextrasorg 7.0

  • Not sure if this is correct way to solve this but I had the same error (looks like it's the result of one of 3.0.x minor version upgrades). Solved it by installing OMV from scratch on a new VM and copying the full <notification> section from new /etc/openmediavault/config.xml. There are some uuid's in there but these seem random and not referenced anywhere, so my old installation works again.

  • I can try this. Thanks


    Can you send me the full <notification> section if you haven't delete your VM ? :)

    English isn't my native language, so, sorry if I make mistakes ^^


    OMV 7.0.3-1 | Linux 6.1.0-18-amd64 | openmediavault-omvextrasorg 7.0

    • Offizieller Beitrag

    # omv-showkey notifications

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    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

    Read this entire thread. There are multiple things you need to replace.

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    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!

  • It's ok, I have made a mistake with the notification key you posted
    And I have fixed everything in the config file

    English isn't my native language, so, sorry if I make mistakes ^^


    OMV 7.0.3-1 | Linux 6.1.0-18-amd64 | openmediavault-omvextrasorg 7.0

  • Hello,


    i have the same error with notifications


    Code
    Fehler #0:
    exception 'OMV\Config\DatabaseException' with message 'The XPath query '//system/notification/notifications/notification[id='cronapt']' does not return the requested number of 1 object(s).' in /usr/share/php/openmediavault/config/database.inc:172
    Stack trace:
    #0 /usr/share/openmediavault/engined/rpc/notification.inc(66): OMV\Config\Database->getByFilter('conf.system.not...', Array, 1)
    #1 [internal function]: OMVRpcServiceNotification->get(Array, Array)
    #2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(124): call_user_func_array(Array, Array)
    #3 /usr/share/php/openmediavault/rpc/rpc.inc(84): OMV\Rpc\ServiceAbstract->callMethod('get', Array, Array)
    #4 /usr/sbin/omv-engined(516): OMV\Rpc\Rpc::call('Notification', 'get', Array, Array, 1)
    #5 {main}



    Curios is i become a mail when new packages are available. This mail comes twice
    What is my mistake? I have no idea. Please help

Jetzt mitmachen!

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