OMV5 setup notifications don't work

  • Hi have freshly installed OMV5.0.5 today and have a small problem,


    i can't save the notification settings - i don't get a error msg on screen but the apply changes bar will show up again every time i hit accept.


    have tried many different email servers/email combinations with the same result.


    my syslog shows the following msg:

    anyone has a clue how i can fix this?!? every thing else is working like a charm - including docker&portainer (man was hard to get into it but now its ok :) )

  • I am having a similar problem on OMV5, both on an Nanopi M4 and a Odroid H2. In my case the save is accepted. I just don't receive a test email. I have a main and a backup email listed and nothing comes to either email. I have done this numerous times on OMV4 installs without any issues.


    This is my syslog:

    Code
    Sep 9 16:06:39 m4omv5 rsyslogd: [origin software="rsyslogd" swVersion="8.1901.0" x-pid="1452" x-info="https://www.rsyslog.com"] rsyslogd was HUPed
    Sep 9 16:06:45 m4omv5 postfix/pickup[24313]: 5576E27C510: uid=0 from=<root>
    Sep 9 16:06:45 m4omv5 postfix/cleanup[26214]: 5576E27C510: message-id=<20190909210645.5576E27C510@m4omv5.local>
    Sep 9 16:06:45 m4omv5 postfix/qmgr[24315]: 5576E27C510: from=<my.smtp.server>, size=418, nrcpt=4 (queue active)
    Sep 9 16:06:45 m4omv5 postfix/smtp[25757]: SMTPS wrappermode (TCP port 465) requires setting "smtp_tls_wrappermode = yes", and "smtp_tls_security_level = encrypt" (or stronger)
    Sep 9 16:06:45 m4omv5 postfix/pipe[26216]: 5576E27C510: to=<openmediavault-notification@localhost.localdomain>, relay=omvnotificationfilter, delay=0.14, delays=0.07/0.02/0/0.05, dsn=2.0.0, status=sent (delivered via omvnotificationfilter service)

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • Post your settings. I just duplicated my omv4 settings and everything works well. I am using gmail which seems to work better than most.

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

  • Not much to see. I have obfuscated my user name and emails. Like you I copied my omv4 settings. Just before posting this, I switched to gmail smtp and no different.
    Screen Shot 2019-09-09 at 9.05.39 PM.png

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • Well, I'll be blessed. On a whim I changed the port setting to 587 and it worked like a charm. AT&T plainly specifies port 465 and I have four OMV4 machines currently running notifications that way. Thanks for poking me a bit to help get me there.

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • Now if I just knew what the messages meant.

    Rsync makes true backup and restoration stupid easy, and it's built right in to OMV. Use this command in a Scheduled Job: rsync -av --delete /srv/dev-disk-by-label-NAMEofSOURCEdisk/ /srv/dev-disk-by-label-NAMEofDESTINATIONdisk/
    OMV Version: Ver. 5 (current) - Hardware: NanoPi M4, running Nextcloud, Plex, & Heimdall - Acer Aspire T180, running backup - Odroid XU4, running Pi-Hole (DietPi) - Testing/Playing: Odroid HC2, Odroid XU4, Raspberry Pi 3B+, Odroid XU4, and HP dx2400.

  • changing the port dosn't solve anything here, i will always get the php error - but only if i'm saving the notification setup...


    other changes will be saved without problem...


    always the same error in syslog:



  • You need to collect the PHP error message from syslog. Without this info we can not identify which plugin or internal module raises the error.

  • Can you post the output of /var/lib/openmediavault/dirtymodules.json please.


    You can also start omv-engined in debug mode:


    Add OMV_DEBUG_PHP="yes" to /etc/default/openmediavault
    $ monit stop omv-engined
    $ omv-engined -d -f
    Then press the apply button in the UI.


    After that there should be a line on stderr
    Deploying configuration for module 'foo'


    before the daemon crashes.

  • Code
    root@openmediavault:~# cat /var/lib/openmediavault/dirtymodules.json
    [
    "cronapt",
    "postfix",
    "mdadm",
    "monit",
    "nut",
    "smartmontools"


    hope you can find something


    thanks in advice

  • Thx for the debug infos. Sadly i can not reproduce this behaviour nor do not i see anything in the code when i review it. This would make me wonder because the code is part of OMV since many years now and i never saw such an behaviour nor get reports from users.
    Currently i have no idea how to proceed.

  • P.S. can you please re-post the output of /var/lib/openmediavault/dirtymodules.json, you cut the output somewhere.

    have attached the file as it is.



    After doing another review i've found that might cause the problem, theoretical, but as said i never experienced any problem here.
    github.com/openmediavault/open…8a0c90a8890858695c4277444

    have patched the file but it behaved like before - takes abt 1-2 minutes and then the apply bar comes back again immediately :(


    have had never an problem with this - using the same credentials since ages...


    //add.: have taken a look at postfix and it isn't even configured - the setupfiles are almost blank...

  • Thx for the debug infos. Sadly i can not reproduce this behaviour nor do not i see anything in the code when i review it. This would make me wonder because the code is part of OMV since many years now and i never saw such an behaviour nor get reports from users.
    Currently i have no idea how to proceed.


    @votdev this silly bug has bugged me so long that i have invested a few hours and i have found the cause of the problem.


    as soon as i install the NUT plugin from plugins email doesnt work anymore and the apply loop begins!


    have reproduced this many times on two different HP Proliant servers.


    the NUT plugin doesnt need to be conf'd or active and the ups isn't even connected - an install of the plugin is enough to get the loop - so i hope you can find the problem bc i need the nut plugin ;)


    //add.: after removing the plugin email loop is gone again :) so seem that this plugins kills something :D

  • I'm also hitting this email notification settings issue on omv5
    And yes, I've got NUT installed* - I will uninstall it and try my email settings again. Thanks for the pointer.
    Do we know if the email notifications get broken, once set without NUT installed, by then installing NUT again?


    * Also noticed that NUT is not producing any graph/stats on the system status pages. This was working for my UPS on omv2 (yes I've jumped a few versions :p ).


    Thanks Antony


    omv5 with SnapRaid / MergerFS working nicely.

  • Do we know if the email notifications get broken, once set without NUT installed, by then installing NUT again?

    have tried it on my testing device if you remove the plugin every thing works as long as you do not reinstall it!


    if you reinstall the nut plugin its broken again...


    no clue why i havent received any feedback from @votdev have also created a bugreport in the git repo no response also :(


    https://github.com/openmediavault/openmediavault/issues/448

Participate now!

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