Error notification menu

  • Hi guys,


    i get an error on my raspberry pi 3 if i want to configure the e-mail notification. (omv 3.0.35)


    The XPath query '//system/notification/notifications/notification[id='cronapt']' does not return the requested number of 1 object(s).
    Fehler #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:172Stack 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}


    Thank you :)


    best regards
    trayntab

  • <notification>
    <notifications>
    <!--
    <xxx>0|1</xxx>
    -->
    <notification>
    <uuid>da9465e0-d519-481a-b05d-02045f63a3db</uuid>
    <id>monitprocevents</id>
    <enable>1</enable>
    </notification>
    <notification>
    <uuid>91da046b-2db4-42ca-a1d2-c60372de4be0</uuid>
    <id>monitloadavg</id>
    <enable>1</enable>
    </notification>
    <notification>
    <uuid>f38346dc-7d96-4739-8c51-fda3a4af83dc</uuid>
    <id>monitmemoryusage</id>
    <enable>1</enable>
    </notification>
    <notification>
    <uuid>02fa2733-7d7d-4947-863c-61abc6eb87a8</uuid>
    <id>monitcpuusage</id>
    <enable>1</enable>
    </notification>
    <notification>
    <uuid>4f6a676d-14e3-40ba-bfc9-15f43cac6dec</uuid>
    <id>monitfilesystems</id>
    <enable>1</enable>
    </notification>
    <notification>
    <uuid>1beaefb0-1b36-451a-ab17-e78c448a9bd8</uuid>
    <id>mdadm</id>
    <enable>1</enable>
    </notification>
    <notification>
    <uuid>6eddc6ec-6fe4-4d9b-820a-5521c4c09786</uuid>
    <id>smartmontools</id>
    <enable>1</enable>
    </notification>

  • I guess you are only missing the cronapt entry. Weird. Add the following to fix it:


    XML
    <notification>
    <uuid>021e5944-35fd-432e-935f-5273460a5b40</uuid>
    <id>cronapt</id>
    <enable>1</enable>
    </notification>

    omv 5.5.2 usul | 64 bit | 5.4 proxmox kernel | omvextrasorg 5.3.3
    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!

Participate now!

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